• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: BUG: Store script Perversity - correction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG: Store script Perversity - correction


  • Subject: Re: BUG: Store script Perversity - correction
  • From: Tim Bumgarner <email@hidden>
  • Date: Sat, 28 Dec 2002 17:32:43 -0500

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.

  • Follow-Ups:
    • Re: BUG: Store script Perversity - correction
      • From: Paul Berkowitz <email@hidden>
    • Re: BUG: Store script Perversity - correction
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: BUG: Store script Perversity - correction (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Every Character of a Name
  • Next by Date: Re: BUG: Store script Perversity - correction
  • Previous by thread: Re: BUG: Store script Perversity - correction
  • Next by thread: Re: BUG: Store script Perversity - correction
  • Index(es):
    • Date
    • Thread