• 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: Saving property values over changes to script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Saving property values over changes to script (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: URL Access scripting
  • Next by Date: Re: Script to Copy/Paste Entourage Message Bodies
  • Previous by thread: Re: Saving property values over changes to script
  • Next by thread: Speech LIstener
  • Index(es):
    • Date
    • Thread