• 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: keep dialog open beyond time out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keep dialog open beyond time out


  • Subject: Re: keep dialog open beyond time out
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 27 Mar 2008 13:56:24 -0700

On Mar 27, 2008, at 9:20 AM, Miguel Ortiz-Lombardía wrote:

I have written a script that performs some lengthy work and at the end of it pops up a dialog with some information. Because it takes long to end, I normally leave the computer doing it unattended. The problem is that when I'm back the dialog has closed after an "apple event timed out" error . I can avoid the error by wrapping the dialog as here:

try
display dialog "Hello..."
on error
-- continue
end try

But the problem is that this way, although I don't get the error message, the dialog closes anyway and I loose that information. I could write it to a file, I know, but I would prefer to keep it in the dialog. Is there a way, then, to keep a dialog open indefinitely?

With stock AppleScript, no -- or at least, not unless you want to either keep the application running (and blocked) indefinitely or rewrite the whole thing in Studio. However, this is the kind of problem Growl <http://growl.info> was designed to solve.



--Chris Nebel AppleScript Engineering

_______________________________________________
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
References: 
 >keep dialog open beyond time out (From: "Miguel Ortiz-Lombardía" <email@hidden>)

  • Prev by Date: Quark frustration: setting rule below on paragraphs
  • Next by Date: Re: 3 random typefaces intermixed
  • Previous by thread: Re: keep dialog open beyond time out
  • Next by thread: Quark frustration: setting rule below on paragraphs
  • Index(es):
    • Date
    • Thread