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 12:09:49 -0800
On 12/29/02 9:44 AM, I wrote:
>
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.
I still haven't discovered that yet. But I've proved definitively that the
bug occurs at the very instant the the script finally quits, after leaving
the quit handler, not at the 'store script' step.
I inserted a series of display dialogs which allowed me to halt the script
1) just after 'store script', 2) before entering the quit handler, 3) at the
start of the quit handler, 4) just before 'continue quit', and 5) AFTER
'continue quit'. On all 5 halt occasions I opened up the little stored
script, and it was fine: still 76K as an application, 4K source, it had been
properly stored with the correct updated property. It was OK even in step 5.
Once I dismissed that final dialog and the main script quit, the stored
script was now 548K as an application and had been replaced by the updated
main script. Disappeared.
--
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.