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

iTunes 4.5, Fast User Switching and AppleScript Apps
I use iTunes on my desktop computer but spend most of my time working on my PowerBook. I have a couple of scripts on my PowerBook to pause and play iTunes on the desktop machine. Now that iTunes 4.5 will still play while switched to another user I wondered what would happen with my scripts. On the desktop computer, I left iTunes playing and then switched to another user. On my PowerBook, I ran my AppleScript to pause the music. iTunes on the desktop paused the music playing. My play script then started it again.

Next I wondered what would happen if I ran the scripts on the desktop computer but from the active account. When AppleScript asked me to authenticate I gave the username and password for the account where iTunes was playing. It did exactly as it had done on my PowerBook, controlling iTunes in the other account.

The code is quite simple:
tell application "itunes" of machine "eppc://g3desktop.local." to pause
Of course, this requires any account on the desktop computer to have my password if I want to control it on the same machine, but I was just interested in controlling iTunes from my PowerBook.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[4,998 views]  

iTunes 4.5, Fast User Switching and AppleScript | 2 comments | Create New Account
Click here to return to the 'iTunes 4.5, Fast User Switching and AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
iTunes 4.5, Fast User Switching and AppleScript
Authored by: e1en0r on May 22, '04 01:25:36PM
i've written a web-based iTunes interface using php and applescript that works surprisingly well. you can choose artists, albums, playlists, play / pause, change volume, skip tracks, etc. it has a few problems with weird characters though. the only downside is apache has to be running as the user whose account is logged in with itunes. but as the computer's only purpose is to play music, and is only accessible from my apartment i'm not really worried about security. if you're interested in more features when controlling iTunes from your powerbook it might be something to look into.

[ Reply to This | # ]
iTunes 4.5, Fast User Switching and AppleScript
Authored by: Fofer on May 23, '04 01:56:19AM

I was contemplating using NetTunes or OvoLab Remote... but this looks interesting. Elenor, are you sharing your work? If so, I'd love a link.



[ Reply to This | # ]