Re: BUG: Store script Perversity - it's the Quit handler!
Re: BUG: Store script Perversity - it's the Quit handler!
- Subject: Re: BUG: Store script Perversity - it's the Quit handler!
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 29 Dec 2002 09:44:54 -0800
On 12/29/02 4:37 AM, "Charles Arthur" <email@hidden> wrote:
>
Why not build it as an Applescript Studio app and set LSUIElement to 0 (or
>
maybe 1, I can't recall which) so that it won't give you an icon in the
>
Dock? This is what I did with my (now not updated for ages) app iTunes
>
Watcher.
>
>
You can then set it so that it will quit when it's done, not when the user
>
says wants it to be (unless they go into the Terminal or Process Watcher,
>
but you can't save people from their stupid selves). You can incorporate
>
OSAXen into the application that gets built (as part of its package).
Because I want them to be able to quit it midstream if they want to. They
have to be able to bring the script app to the front to do so, so it has to
be in the Dock. Then it's more intuitive to select Quit in the Dock - since
it's offered there - than to expect them to remember to command-.
And that's in fact exactly what everyone does when they want to quit. The
quit handler, which intercepts that Quit, sets the global variable quitNow
to true, which raises an error wherever they are in the script run repeat
loops that sends them to an error handler that takes care of everything
neatly and then does a -128 error to get out. All that works just fine when
needed, thank you.
>
>
Seems akin to a solution to having your cake and eating it to me.
I already have that. This is irrelevant to the fact that a quit handler when
quitting normally at the end of a run should not interfere with the script
storing itself in its own shell and not in some other innocent file.
It needs more than just storing another script object and a quit handler,
however. That does not replicate on its own, nor when I load a third script
nor when I use 24U Appearance osax as well. Nor when I add some useless
fluff to make the script 120K length. There's some other thing which must be
needed as well, and I don't know what it is yet.
--
Paul Berkowitz
_______________________________________________
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.