Re: iTunes playpause vs. mute
Re: iTunes playpause vs. mute
- Subject: Re: iTunes playpause vs. mute
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 07 Feb 2003 11:04:14 -0800
On 2/7/03 10:26 AM, "Pete Dako" <email@hidden> wrote:
>
ell application "iTunes" to playpause
>
>
AHH... thanx, David .
>
>
It was that "to" that threw me. I had tried dumping the "end tell"
>
without adding "to" and got the "expected end of line but found
>
identifier"error message ... neato!
>
So... "playpause" is an "identifier" then is it?
>
I was thinking of it being a "verb" or a "command" hmmm. Well putting
>
the "to" in there at least makes sense , somewhat like English
>
grammar... but this "identifier" nomenclature is a bit cryptic, isn't
>
it? What's up with that? --PETE
You can download the AppleScript Language Guide in .pdf format from the
AppleScript web page at Apple and read all about AppleScript syntax.
'playpause' is most certainly _not_ an identifier (variable) when it is used
with the correct syntax. It is an application 'event' (i.e. command). But
since you had not used correct syntax (the preposition 'to' before an event
when used in the same line as a 'tell application' command, or else on its
own line inside a tell/end tell block) AppleScript would see it only as a
variable name, which cannot follow a 'tell application' command on the same
line without the "to". So it errored.
--
Paul Berkowitz
_______________________________________________
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.