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

10.3: Make remote AppleScripts work with iTunes System
I have done several unsuccessful trials at controlling iTunes on my second Mac via AppleScript. Although I had switched on "Remote Apple Events" in the Sharing preference pane, I always got something like "Can't authenticate user." The solution was to switch on "Allow events from Mac OS 9" (which becomes a selectable option when you check the Remote Apple Events checkbox) as well, and provide a password when prompted. After doing that, then this will work fine:

  tell application "iTunes" of machine "eppc://cube.local"
    playpause
  end tell
It seems that you may switch off Mac OS 9 support afterwards, because only the password is essential.
    •    
  • Currently 2.14 / 5
  You rated: 1 / 5 (7 votes cast)
 
[10,282 views]  

10.3: Make remote AppleScripts work with iTunes | 7 comments | Create New Account
Click here to return to the '10.3: Make remote AppleScripts work with iTunes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Make remote AppleScripts work with iTunes
Authored by: hareball on Dec 09, '03 10:19:01AM
Somewhere on this site there is a itunes command that runs in the term. I've got it running at home on my TiBook. Anyway, i just ssh in from any of my boxes in the house and use my itunes command to say, goto the next track, increase the volume, pause, etc, etc. Ah... here it is... Enjoy!

[ Reply to This | # ]
10.3: Make remote AppleScripts work with iTunes
Authored by: DougAdams on Dec 09, '03 10:58:02AM
This article at my site explains how to control iTunes on a remote machine. It has several downloadable sample scripts (in UPM format).

Doug
Doug's AppleScripts for iTunes

[ Reply to This | # ]
10.3: Make remote AppleScripts work with iTunes
Authored by: tinb on Dec 16, '03 10:45:43AM

I have been on your great site several times to find this remote stuff. But I must be blind not to find it! The shared/remote thing is the exact purpose of my trials - you have done it already.

Cheers,

Robert



[ Reply to This | # ]
10.3: Make remote AppleScripts work with iTunes
Authored by: thiophene on Dec 09, '03 03:08:46PM

I control iTunes remotely with "iHam on iRye iServer". It's a handy little app with a couple quirks (ie it takes a while to load your list for large collections), but it gives you nearly all of the functionality of iTunes.



[ Reply to This | # ]
10.3: Make remote AppleScripts work with iTunes
Authored by: p4ul13 on Dec 10, '03 04:06:27PM
I have been using those applescripts through ssh to control iTunes from my winXP laptop downstairs. I have been trying to create a webpage that will run on the mac and run my scripts that way, but am having little luck. I have cgi-bin activated in apache, and I have perl-scripts which succeed in running my applescripts through SSH, but refuse to run through a browser.

Any thoughts?

[ Reply to This | # ]

10.3: Make remote AppleScripts work with iTunes
Authored by: e1en0r on Jan 08, '04 03:49:57PM

my guess is that apache is running as user www and therefore doesn't have permission to control the itunes user's stuff.



[ Reply to This | # ]
10.3: Make remote AppleScripts work with iTunes
Authored by: mproud on Dec 11, '03 01:31:10AM

VNC is the non-scripting way :D



[ Reply to This | # ]