Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bluefloyd8

macrumors newbie
Original poster
Dec 28, 2008
2
0
I wrote the following script which allows me to have two sets of Desktop files which I can toggle between. The script runs on a trigger in Quicksilver
Please dont try any of this code unless you understand it fully!
Code:
# This script is set to run on a trigger in Quicksilver
try
	do shell script "rm -r ~/DesktopSpaces/Desktop1/*"
end try
try
	do shell script "mv ~/DesktopSpaces/Desktop2/* ~/DesktopSpaces/Desktop1/."
end try
try
	do shell script "mv ~/Desktop/* ~/DesktopSpaces/Desktop2/."
end try
try
	do shell script "mv ~/DesktopSpaces/Desktop1/* ~/Desktop/."
end try

This works fine, but I want to do it more elegantly. I was thinking of using symbolic links. To do it, I tried the following:
Code:
rm -r Desktop
ln -s DesktopSpaces/Desktop2 Desktop
This actually worked. However, when I try to change that desktop (by removing the file and doing a link on Desktop1 directory) nothing changes.

Any ideas why? This would be really cool to have it work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.