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


Click here to return to the 'great idea, but hey, use cron!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
great idea, but hey, use cron!
Authored by: wealthychef on May 13, '02 05:25:14PM

You are right. I pared my example to this, and it still didn't work. Anybody know why?
#!/bin/sh

echo "tell application \"iTunes\" to play (some track of playlist \"Library\" whose artist is \"Alanis Morissette\")" | /usr/bin/osascript

If I run this from the prompt, no problems, it works. If I run it from a cron job, I get the following error:

syntax error: Can't get the application's event dictionary. (-2709)



[ Reply to This | # ]