• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is there anything wrong with these two scripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Is there anything wrong with these two scripts?
      • From: Martin Crisp <email@hidden>
    • Re: Is there anything wrong with these two scripts?
      • From: Rafael Marquez <email@hidden>
  • Prev by Date: Idle interval too long...
  • Next by Date: Re: Is there anything wrong with these two scripts?
  • Previous by thread: Idle interval too long...
  • Next by thread: Re: Is there anything wrong with these two scripts?
  • Index(es):
    • Date
    • Thread