Re: BUG: Store script Perversity - correction
Re: BUG: Store script Perversity - correction
- Subject: Re: BUG: Store script Perversity - correction
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 28 Dec 2002 13:15:37 -0800
It's doing it again. This is very serious. Something is corrupting my applet
such that 'store script updaterScript in updaterScriptFile replacing yes'
instead writes the entire 100K main script to the other file, with updated
properties, deleting the other script entirely and not updating its own
properties either. Very, very, very bad bug.
Paul Berkowitz
On 12/28/02 12:41 AM, I wrote:
>
After trying many other things, I discovered that there was no problem
>
when running the script in Script Debugger. I copied and pasted the source
>
text into a fresh script window and saved it as an application No problems
>
now. It must have been a corrupt file. Somehow.
>
>
Paul Berkowitz
>
>
On 12/27/02 10:48 PM, I wrote:
>
>
> I'm completely baffled. And once again I _cannot_ replicate with a short
>
> script. But I've repeated it now about 100 times with a long script (100
>
> K text).
>
>
>
> At the end of the main script run, it loads and stores another, short
>
> script:
>
>
>
>
> Instead of storing the new 'recordedSync' property in updaterScriptFile ,
>
> and saving its own changed properties when it quits, it stores ITSELF -
>
> the entire 100 K script - in updaterScriptFile! And not in the usual
>
> fashion - when I open updaterScriptFile in Script Debugger, it's as if I
>
> pasted in the main script and compiled it! The original Updater Script is
>
> completely lost. (Fortunately I had a backup.) Furthermore, all the
>
> properties of the main script have been properly updated in this perverse
>
> transfer to updaterScriptFile, but in the main script itself, no property
>
> has been updated. The properties there are back to what they were before
>
> the main script run!
>
>
>
> So the whole main script instance in memory has been saved to the wrong
>
> file. What in God's name is going on? The bug is with 'store script': if
>
> I remove that line then the main script saves all its own changed
>
> properties in itself, as it should.
>
>
>
> Is this yet another bug with long scripts? As I say, I can't replicate
>
> with two tiny scripts here: there's no problem.
>
>
>
>
>
>
>
--
>
Paul Berkowitz
>
--
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.