Re: INDESIGN: Storing Application-Specific Object References Externally
Re: INDESIGN: Storing Application-Specific Object References Externally
- Subject: Re: INDESIGN: Storing Application-Specific Object References Externally
- From: has <email@hidden>
- Date: Thu, 14 Jun 2007 19:28:49 +0100
Rick Gordon wrote:
What would be ideal would be to have a way where one script could
collect a list of object references specific to the InDesign object
model which would remain accessible for the next script to access,
and I'm not sure how to go about implementing this.
on writedata(thedata, fileref)
script DataStore
property p : thedata
end script
store script DataStore in fileref replacing yes
end writedata
on readdata(fileref)
return p of (load script fileref)
end readdata
set fileref to "/Users/has/datastore.scpt" as POSIX file
set thedata to {ref1:document 1 of application "TextEdit"}
writedata(thedata, fileref)
readdata(fileref)
--> {ref1:document 1 of application "TextEdit"}
HTH
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden