Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: INDESIGN: Storing Application-Specific Object References Externally



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.