Data Storage and Load Script
Data Storage and Load Script
- Subject: Data Storage and Load Script
- From: Eric Geoffroy <email@hidden>
- Date: Thu, 06 Jan 2005 12:13:15 -0800
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"
script a
set unfISBN to "073570007" -- This is the value I want stored.
set thePath to "Macintosh HD:var:tmp:myPrefs"
script myPrefs
property bISBN : ""
end script
set bISBN of myPrefs to unfISBN
store script myPrefs in file thePath replacing yes
script b
set myPrefs to load script file "Macintosh HD:var:tmp:ArchivePrefs" _______________________________________________
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