• 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: osascript and dialogs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: osascript and dialogs
      • From: Joshua See <email@hidden>
  • Prev by Date: (no subject)
  • Next by Date: [ANN] Defaults Manager
  • Previous by thread: osascript and dialogs
  • Next by thread: Re: osascript and dialogs
  • Index(es):
    • Date
    • Thread