• 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: Data Storage and Load Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Data Storage and Load Script


  • Subject: Re: Data Storage and Load Script
  • From: jj <email@hidden>
  • Date: Thu, 06 Jan 2005 22:22:55 +0100

> I'm working from the Neuberg book (pgs.175,176)
>
> The goal is to pass a variable between two scripts. From script a to script b
> without launching b.
> It seems like store script fits the bill, but perhaps it might be simpler to
> do the "open file for access, write variable, close file
> . routine"

OS X loves now ".plist" files, which are easilly accesible using a "do shell
script" call and the util "defaults". For more complex structures (records,
script objects, etc.) I prefer the "store" method or, better, the read/write
commands, which will store the info in the data fork of a file (eg, "write
foo to x as record", "read file x as record").


jj

--
http://www.macscripter.net/
http://www.osaxen.com/


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Data Storage and Load Script (From: Eric Geoffroy <email@hidden>)

  • Prev by Date: Re: Set File Creation date
  • Next by Date: choose url problem
  • Previous by thread: Data Storage and Load Script
  • Next by thread: Re: Applescript-users Digest, Vol 2, Issue 9
  • Index(es):
    • Date
    • Thread