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 15:33:38 -0800
Tested: the same bug occurs when all scripts were saved as applications with
SE 2.0 beta. The original "Updater" script (4K text, 72 K as application) is
completely erased, and what's there now when opened in SE 2 or SD 3 is
instead the main script (110K text, 544 K as application) with updated
properties, while the real main script did not save the changed properties.
It's evidently an AppleScript bug: when the main script is large it seems to
get confused as to which script object it's supposed to store in the
specified file, although it understands which script object's properties to
modify well enough until has to store the script. Bad.
As implied below, I'm hoping that a whole raft of bugs that only show up
with long scripts and that we've usually reported to Mark Alldritt, who then
spends lots of time discovering, proving, documenting and reporting them as
AppleScript bugs, will now get tested by Apple engineers and testers with
your own long scripts.
I can provide my script if desired, but 99.9% of it must be extraneous to
the bug. But which 99.9%? Lots of mud to wade through...
Paul Berkowitz
On 12/28/02 2:40 PM, I 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.
>
>>
>
>
>
>
>
--
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.