Re: Display Dialog with Title
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