Re: Date Modified
Re: Date Modified
- Subject: Re: Date Modified
- From: Michael Terry <email@hidden>
- Date: Sun, 22 Feb 2004 12:51:16 -0800
On Feb 22, 2004, at 11:40 AM, Paul Berkowitz wrote:
When this issue first came up here, I vaguely recall Chris Nebel
speculating
that maybe some day the idea of retained script properties will go
away.
*That's already the case for AppleScript Studio apps, of course) and
that we
might be thinking of saving values to external user defaults instead. I
think that would be pretty good, myself. I wonder how it will work for
compiled scripts as opposed to script applications - I guess they'd
have to
have prefs files just like applications do.
It would be a shame if you couldn't save script properties in scripts
anymore. A huge number of scripts are simple affairs, and the
complexity for creating these types of scripts should not be increased.
I have a script library which manages preference saving for most of my
scripts, but often this is overkill. And think how great it was as a
newbie not to have to screw around with external files when you wanted
to save a value between runs.
A lot (most?) scripts aren't full blown applications, nor are they
intended for commercial, or other, distribution. The best practices for
such scripts should be different, and simplicity should rule over
"correctness", in my opinion.
In writing this, I just realized that I personally have a more
significant reason to see that this behavior not go away. I'm mostly
done with a library loader which depends on this attribute of
AppleScript. It uses the fact that initialized globals become
properties of the top-level script to install handlers at compile
and/or run time. If storing properties goes away, then the loader will
no longer be able to save self-contained scripts I can distribute,
which was my main purpose in writing it. If storing properties goes
away, Apple better be darned sure to fix 'path to me' or enable scripts
to automatically see library scripts contained in the new script bundle
format. Even then, my system has the advantage of being backward
compatible.
Mike
_______________________________________________
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.