Re: Saving property values over changes to script
Re: Saving property values over changes to script
- Subject: Re: Saving property values over changes to script
- From: John Delacour <email@hidden>
- Date: Wed, 26 Mar 2003 18:50:08 +0000
- Mac-eudora-version: 6.0a13
At 12:10 pm +0100 26/3/03, Emmanuel wrote:
At 3:51 AM -0500 26/03/03, email@hidden wrote:
Now if you edit the script you lose the current values of the
properties?......I'm tempted to manually save and restore to
a file as I can then inspect and edit the values outside the script.
There may be a solution, but only pre-OSX. Are you under OSX?
I would use the same device in any OS. Load and save prefs to a
companion script.
---Applet
property prefs: {} as record
set slavePath to ":slave"
set slave to load script file slavePath
set my prefs to slave's prefs
---do stuff
set somekey of my prefs to something -- etc.
-- do stuff
set slave's prefs to my prefs
store script slave in alias slavePath with replacing
---Slave
property prefs: {} as record
--END
_______________________________________________
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.