Re: osascript and dialogs
Re: osascript and dialogs
- Subject: Re: osascript and dialogs
- From: Christopher Nebel <email@hidden>
- Date: Tue, 10 Jun 2003 09:27:05 -0700
On Tuesday, June 10, 2003, at 08:01 AM, matt neuburg wrote:
The following puts the computer into a bizarre state:
Yes, Matt? cat > textfile
display dialog "Hello, world!"
[^D]
Yes, Matt? osacompile -o compiledfile textfile
Yes, Matt? osascript compiledfile
The dialog appears, but refuses to let me click on it. Appending "&"
doesn't help - in fact, it makes it worse, since there's now
absolutely no
way to get rid of the dialog short of killing osascript. What's the
problem here? Thx - m.
It's a bug. In fact, it's not supposed to work at all -- osascript
should fail with a "no interaction allowed" error. (It's got no UI.)
Tell some other application (e.g., Finder) to display the dialog.
--Chris Nebel
Apple Development Tools
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.