Article View: adobe.scripting.indesign
Article #16462Re: Export text as RTF
From: Shane Stanley
Date: Thu, 04 Sep 2003 23:11
Date: Thu, 04 Sep 2003 23:11
45 lines
2545 bytes
2545 bytes
On 5/9/03 3:06 AM +1000, Ton Kuypers, tkuypers@pandora.be, wrote: > Shane, in particular, uses a newsreader to follow traffic here, and he's > going to have to use extra steps to just read your message. Surprisingly, it's come through with all the styling intact. But that's probably the luck of the newsreader. > tell application "InDesign 2.0.2" > tell parent of story 1 of active document > export format RTF to "Users:ton:Desktop:test.rtf" without showing options > end tell > end tell > Result: --> InDesign 2.0.2 got an error: parent of story 1 of active document > doesn't understand the export message. You don't export the parent of a story -- here, you should use "story 1 of active document". > > tell application "InDesign 2.0.2" > tell parent story of active document > export format RTF to "Users:ton:Desktop:test.rtf" without showing options > end tell > end tell > Result: --> InDesign 2.0.2 got an error: Can't get parent story of active > document . The parent story property is used when you refer to a text frame, like "parent story of text frame 1"; it's meaningless with a document. > > tell application "InDesign 2.0.2" > tell story 1 of active document > export format RTF to "Users:ton:Desktop:test.rtf" without showing options > end tell > end tell > Result: --> InDesign 2.0.2 got an error: Can't make > "Users:ton:Desktop:test.rtf" into a �class kfil�. I think this might be your real problem: that looks like a bogus path to me, unless your disk is called "Users". It should be something like: "Macintosh HD:Users:ton:Desktop:test.rtf". -- Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<BB7E03A4.64B50%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!62.132.236.44.MISMATCH!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccd31fc.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,7ccfabd828ab110a X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-09-04 16:37:53 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!62.132.236.44.MISMATCH!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Export text as RTF Message-ID: <BB7E03A4.64B50%sstanley@myriad-com.com.au> Date: Thu, 4 Sep 2003 16:11:01 -0700 References: <2ccd31fc.-1@webx.la2eafNXanI> Lines: 55 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit