Re: Automator bug?
Re: Automator bug?
- Subject: Re: Automator bug?
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 31 Oct 2005 20:25:13 -0800
- Thread-topic: Automator bug?
Title: Re: Automator bug?
On 10/31/05 6:00 PM, "Bill Briggs" <email@hidden> wrote:
display dialog "Enter your password." default answer "" hidden answer true
compiles fine in the normal Script Editors, but in Automator in an AppleScript action it errors saying it "expected end of line, etc. but found property", and it then highlights the word "hidden". It will compile this much okay;
display dialog "Enter your password." default answer ""
but once you add the "hidden answer true" portion it errors on compile. Other optional parameters of display dialog can also trigger errors in compiling in an Automator action. I'm trying to use a password filed in the display dialog but it looks like a non-starter. Anyone able to make it work. I'm running 10.4.2
AppleScript Studio has its own 'display dialog' which overrides that of Standard Additions. Back in earlier OS's it was better than SA's since it both displayed and accepted input in Unicode. (In fact, it was in fact in order to do so that it was created, since all text in AS is Unicode). But in Panther, not only does the standard display dialog also handle Unicode, it also has the 'hidden answer' parameter which has not been added to AS's.
The workaround is to use a 'display dialog' in a tell block directed at a non-AS application, such as the Finder, which you'll have to activate to get the dialog to the front, E.g.
tell app "Finder"
activate
display dialog "Enter your password." default answer "" hidden answer true
end tell
set thePassword to text returned of result
tell me to activate -- or just 'activate'
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden