• 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: Philip Aker <email@hidden>
  • Date: Mon, 18 May 2009 08:23:16 -0700

On 2009-05-17, at 21:13:22, Paul Scott wrote:

Indeed. But you somehow stripped out and left unaswered my underlying question.

> How do I get a dialog title?

You should be able to run the plain vanilla 'display dialog' wrapped in:

tell AppleScript
	display dialog …
end tell

or run it from a separately loaded script.

Alternately, construct your own panel window in Interface Builder and give it a title.



This works in Script Editor:


display dialog "Enter new password:" default answer "" with title "Password Prompt" with hidden answer


but it won't compile in AppleScript Studio unless I use this:


display dialog "Enter new password:" default answer "" with title with hidden


What gives? It's like there's two different compilers, and one of 'em (guess which) is broken.


There are indeed different capabilities for 'display dialog' in Script Editor and Studio apps.
Look at the behaviors defined in 'AppleScriptKit.sdef' for differences (or the AppleScript Studio Reference).

Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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
  • Follow-Ups:
    • Re: Display Dialog with Title
      • From: Paul Scott <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>)

  • Prev by Date: Re: AppleScript Dictionary in AppleScript Studio
  • 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