Re: BUG: Store script Perversity - correction
Re: BUG: Store script Perversity - correction
- Subject: Re: BUG: Store script Perversity - correction
- From: Tim Bumgarner <email@hidden>
- Date: Sat, 28 Dec 2002 18:20:36 -0500
Ah, right, should have noticed the size. It was a good time to make my
point though, about identifying which script editor one is using ;-)
Tim
On Saturday, December 28, 2002, at 05:40 PM, Paul Berkowitz wrote:
True. I'm talking about a 100K text-source script here, so it's not the
older Script Editor by definition.
I'm using Script Debugger 3.0.5 to make the script application. But
there's
no bug when I run it in Script Debugger, only when I run it as an
application.
I can try saving it as an application in Script Editor 2.0 beta, and
see if
it happens with those applets too. I suppose it could be an SD bug,
rather
than an AppleScript bug (?). At least with the advent of SE 2.0, I
guess
Apple testers will also be doing testing of long scripts when working
on new
releases of AS?
--
Paul Berkowitz
From: Tim Bumgarner <email@hidden>
Date: Sat, 28 Dec 2002 17:32:43 -0500
To: Paul Berkowitz <email@hidden>
Cc: Applescript-Users <email@hidden>
Subject: Re: BUG: Store script Perversity - correction
Hi Paul,
Which script editor are you using? With the beta release of the new
script editor, it will be important for people on this list to state
which version of the editor they are using when they report problems.
Thanks,
Tim Bumgarner
AppleScript Engineer
On Saturday, December 28, 2002, at 04:15 PM, Paul Berkowitz wrote:
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.
_______________________________________________
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.
_______________________________________________
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.