• 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: INDESIGN: Storing Application-Specific Object References Externally
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: INDESIGN: Storing Application-Specific Object References Externally
  • Next by Date: Re: Can AS change the system beep?
  • Previous by thread: Re: UNIX heads; can I do this? (Bill Briggs)
  • Next by thread: Re: Apple iPhone - 2 questions
  • Index(es):
    • Date
    • Thread