set variable to a command?
set variable to a command?
- Subject: set variable to a command?
- From: "David A. Cox" <email@hidden>
- Date: Wed, 19 Nov 2003 09:06:41 -0800 (PST)
I am stuck on something simple, and I don't know why I can't get my head
around what is wrong.
I want to set a variable to a command name in a script for itunes, and I
can't seem to get the command to execute.
This works:
tell application "iTunes"
play
end tell
This does not:
set command to "play"
tell application "iTunes"
command
end tell
I have fiddled around with different syntax ways of saying the same thing,
but I seem to fail each time. I am using the latest OS and iTunes. I am
sure I am just missing something super basic, but I can't seem to see
it....
DAC
_______________________________________________
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.