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!
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:
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.
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
Any ideas why? This would be really cool to have it work.