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: Charles Arthur <email@hidden>
- Date: Sun, 29 Dec 2002 12:37:11 +0000
On Sat, 28 Dec 2002 19:21:51 -0800, Paul Berkowitz <email@hidden>
wrote:
>
The problem does not arise without both the 'store script _and_ the quit
>
handler. With only one of those, there's no problem. (I.e. without 'store
>
script', the main script stores its own properties in its own shell
>
correctly. Without the quit handler, both scripts get saved correctly.) 'on
>
quit' must interrupt the normal process where the script stores its own
>
resource into the default file, and then when it goes back to where its was
>
(which is all the 'continue quit' apparently does) - in this case finishing
>
the last called handler and the run handler, since it's all over - and then
>
really quits, that's where it gets confused and stores its own resource in
>
the updaterScriptFile instead of into its own shell.
>
>
Thank for your thoughts. My workaround is not to load and store
>
updaterScript at all, and to let the user make an educated guess as to the
>
time the main script last ran, if he ever needs to. This whole thing is a
>
little refinement that will rarely be needed. It would be nicer, though.
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).
Seems akin to a solution to having your cake and eating it to me.
best
Charles
----------------------------
http://www.ukclimbing.com : 1100+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. And there's even a cool shop attached.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
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.