• 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: Persistance of Properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Persistance of Properties


  • Subject: Re: Persistance of Properties
  • From: Paul Skinner <email@hidden>
  • Date: Mon, 15 Oct 2001 14:28:29 -0400

on 10/15/01 12:36 PM, Irwin Poche wrote:

> One of the obstacles I've encountered developing scripts is that all data
> stored in properties is lost as changes are made to the script.
>
> Is there a relatively easy way to specify that the properties are to be
> saved in a file other than the script itself ? One way would be to loop
> through the properties themselves, but I'm hoping for something simpler.
>
> -Irwin

A hard coded loop before quitting would suffice, but if you want the
simplest way, and don't mind spending a little money check out ScriptBase
from main Event. It is a system wide database that you put into your
scripting additions folder and can address from any script in any editor.

So instead of ...
property bigOldListOfData:{a big old list of stuff...}

you can do...
set bigOldListOfData to object "bigOldListOfData" in drawer
"propertyStorage"

and later, before you quit...
set object "bigOldListOfData" in drawer "propertyStorage" to
bigOldListOfData


--
Paul Skinner


  • Follow-Ups:
    • Re: Persistence of Properties
      • From: Jolly Roger <email@hidden>
References: 
 >Persistance of Properties (From: Irwin Poche <email@hidden>)

  • Prev by Date: Persistance of Properties
  • Next by Date: ANNOUNCE: Script Debugger 3.0.1 Update
  • Previous by thread: Persistance of Properties
  • Next by thread: Re: Persistence of Properties
  • Index(es):
    • Date
    • Thread