• 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
Re: Is there anything wrong with these two scripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there anything wrong with these two scripts?


  • Subject: Re: Is there anything wrong with these two scripts?
  • From: Jim Krenz <email@hidden>
  • Date: Sun, 30 Mar 2003 23:36:52 -0800

On Sunday, March 30, 2003, at 03:07 pm, Martin Crisp wrote:

Script #1 (wake up script):

tell application "iTunes"
activate
tell source "Library"
tell playlist "current"
play some track
end tell
end tell
end tell

This worked fine for me (after changing 'current' to a playlist
that exists in my iTunes setup). But I wuld have written it this
way:

tell application "iTunes" to play some track of playlist "current"

Wow, that is a lot better then my original AppleScript. I guess I have a lot to learn. I'll try your single line AppleScript, and see if the same error occurs.

So, how does one learn to write AppleScripts like that? Experience? Trial and error?

Thanks,

Jim
_______________________________________________
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.

References: 
 >Re: Is there anything wrong with these two scripts? (From: Martin Crisp <email@hidden>)

  • Prev by Date: Non-AppleScript access to GUI scripting (System Events) plug-in?
  • Next by Date: Re: Non-AppleScript access to GUI scripting (System Events) plug-in?
  • Previous by thread: Re: Is there anything wrong with these two scripts?
  • Next by thread: Saving people
  • Index(es):
    • Date
    • Thread