Re: Problems with "load script" revisited
Re: Problems with "load script" revisited
- Subject: Re: Problems with "load script" revisited
- From: Christopher Nebel <email@hidden>
- Date: Fri, 8 Mar 2002 16:22:51 -0800
On Thursday, January 31, 2002, at 07:32 AM, christian vick wrote:
'store script' seems to have a bug in OS X (AS 1.8.1 and 1.8.2b1). I
have a
script which saves prefs in a script object and the resulting file is
usually few KB in size. Under OS X the file is about 220 KB and in some
cases it contained the _whole_ source code of the script.
I was unable to strip the script to the relevant parts, it seems the
problem
happens only under very special circumstances. Your hint with the
unicode
text might be valuable - I don't think I saved unicode in the prefs
but I
will recheck it.
You aren't using AppleScript 1.6 on Mac OS 9, are you? Because there's
a really serious bug in 1.6 where Unicode text doesn't actually get
saved in a script (e.g., a property set to a Unicode text value). If
you reload the script immediately, everything is fine, but otherwise
you'll probably crash.
This was fixed in AppleScript 1.7, but of course it has the side effect
of making your stored scripts larger, because it's now saving everything
that it ought to.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.