Article View: adobe.scripting.indesign
Article #17404What am I doing?
From: Richard Ronnback
Date: Sun, 08 Jun 2003 16:59
Date: Sun, 08 Jun 2003 16:59
16 lines
1586 bytes
1586 bytes
Ok, so I had this really clever idea that I could store my find and change preferences in a file and load them when I needed. Fine, I get the find preferences and manage to write them to disk, or so I thought. The problem is that I have no idea what the gibberish in the file is, let alone how to load it back again Can someone that knows AppleScript for real explain to a cut-and-paste-scripter what's going on? tell application "InDesign 2.0.2" set myFindPrefs to properties of find preferences set theFile to (choose file name with prompt "Where do you want to store your Find settings") as string set fileRef to (open for access file (theFile) with write permission) set eof fileRef to 0 write myFindPrefs to fileRef close access fileRef end tell
Technical Details
Message-ID:
<1de973af.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c96d2f46ce21a187,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-08 10:07:40 PST From: "Richard Ronnback" <richard.ronnback@telia.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!38.144.126.70.MISMATCH!feed3.newsreader.com!newsreader.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: What am I doing? Message-ID: <1de973af.-1@WebX.la2eafNXanI> Date: Sun, 8 Jun 2003 09:59:49 -0700 Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit