• 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: set variable to a command?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set variable to a command?


  • Subject: Re: set variable to a command?
  • From: Arthur Knapp <email@hidden>
  • Date: Thu, 20 Nov 2003 13:51:37 -0500

From: Michelle Steiner <email@hidden>
Subject: Re: set variable to a command?
Date: Thu, 20 Nov 2003 09:08:57 -0700

On Nov 20, 2003, at 8:20 AM, Arthur Knapp wrote:
Does iTunes have its own "run script" command? It is hard to see how
the terminology gets mapped to the right iTunes's AppleEvent inside of
"run script."

"run script" is an Applescript command. In the case at hand
run script command
equates to
run script "play"

Right, and that's what I don't understand. My experience is that "run script" compiles within its own "context," meaning that:

run script "play"

should be exactly the same as if you typed the word "play" all by itself into a new script editor window and then clicked the run button. Generally, when a script compiles, it figures out terminology based on the current tell-statement:

tell application "iTunes" --> compiler searches iTunes's terminology...
play --> ... for "play" and finds <<event hookPlay>> as mentioned by Paul B.


"My country, right or wrong: if right, to be kept right; and if wrong,
to be set right."
Senator Carl Schurz of Missouri, 1899

P.S. I love this quote! It's nice to see a right-wing expression placed into its proper left-wing context. :)

{ Arthur J. Knapp;
<mailto:email@hidden>;

What...? Oh...!
}
_______________________________________________
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: set variable to a command?
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Read text error
  • Previous by thread: Re: set variable to a command?
  • Next by thread: Re: set variable to a command?
  • Index(es):
    • Date
    • Thread