Re: Display Dialog with Title
Re: Display Dialog with Title
- Subject: Re: Display Dialog with Title
- From: Chris Page <email@hidden>
- Date: Mon, 18 May 2009 16:04:59 -0700
On May 18, 2009, at 9:42 AM, Paul Scott wrote:
I couldn't get 'tell AppleScript' to work, nor 'tell application
"AppleScript"' although interestingly, the latter popped up an open
dictionary dialogs when syntax checking the code -- but only once.
“application "Foo"” isn't part of the “tell” command, it's an object
specifier that refers to an application by name. When you compile an
object specifier that refers to an application by name, it looks it up
by name and if it can't find the application, it prompts you to do so.
There is no application named “AppleScript”, so it prompts you.
If you don't select an application for it when prompted, it will
compile the script anyway and then the script will lookup the
application by name at runtime instead. It won't prompt you again
until you start fresh and attempt to compile it from source again.
You'll see the same behavior if you just write
application "Foo"
on a line by itself, without a “tell”.
The syntax for “tell” is just
tell foo
...
end tell
where “foo” is some object or object specifier to which it directs
messages.
--
Chris Page
The other, other AppleScript Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden