Is there anything wrong with these two scripts?
Is there anything wrong with these two scripts?
- Subject: Is there anything wrong with these two scripts?
- From: Jim Krenz <email@hidden>
- Date: Sat, 29 Mar 2003 18:25:27 -0800
Hello,
I am using two AppleScripts to make iTunes act like an alarm clock. The
scripts are being run from a utility (Youpi Key) at scheduled times.
With Youpi Key, I am getting an error with the second script. Either it
quits iTunes, restarts it, and then quits again, or I get the following
error: "Applescript error number -609. iTunes got an error.. Connection
is invalid."
If I run the two scripts as compiled applications with Cron, then
neither error shows up. So I suspect that this is indeed a bug on Youpi
Key's part.
I am trying to troubleshoot this with the Youpi Key author, and I want
to make sure that I don't have any errors in my AppleScripts. Here they
are:
Script #1 (wake up script):
tell application "iTunes"
activate
tell source "Library"
tell playlist "current"
play some track
end tell
end tell
end tell
Script #2 (go away script):
tell application "iTunes"
quit
end tell
***
Please let me know if there are any errors in syntax, etc., as I am an
AppleScript newbie.
Thanks!
Jim
Jim Krenz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.