• 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: Display Dialog with Title
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Display Dialog with Title (From: Paul Scott <email@hidden>)
 >Re: Display Dialog with Title (From: Philip Aker <email@hidden>)
 >Re: Display Dialog with Title (From: Paul Scott <email@hidden>)
 >Re: Display Dialog with Title (From: Philip Aker <email@hidden>)
 >Re: Display Dialog with Title (From: Paul Scott <email@hidden>)

  • Prev by Date: Re: Display Dialog with Title
  • Next by Date: Re: AppleScript Dictionary in AppleScript Studio
  • Previous by thread: Re: Display Dialog with Title
  • Next by thread: Re: Display Dialog with Title
  • Index(es):
    • Date
    • Thread