Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to cycle between sets of Desktop items' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to cycle between sets of Desktop items
Authored by: designr on Jul 14, '06 08:36:19AM
Here's the script I used:

tell application "System Events"
  if not (exists application process "iTunes") then
    set short_name to do shell script ("id -un")
    tell application "Finder"
      if (exists folder "Music:ServerMusic:") then
        set the_path to POSIX path of file "Music:ServerMusic:"
        do shell script "ln -fhs '" & the_path & "' '/Users/" & short_name & "/Music'"
      else
        do shell script "ln -fhs '/Users/Shared/LocalMusic/' '/Users/" & short_name & "/Music'"
      end if
    end tell
  end if
end tell
tell application "iTunes" to activate
The two folders were "ServerMusic" on a server share called "Music" and "LocalMusic" in the /Users/Shared/ folder.

[ Reply to This | # ]