Article View: adobe.scripting.indesign
Article #19469Re: Export as EPS
From: Shane Stanley
Date: Tue, 10 Dec 2002 10:40
Date: Tue, 10 Dec 2002 10:40
29 lines
1742 bytes
1742 bytes
You have a couple of problems there. > tell application "InDesign 2.0" > activate > set myDoc to active document > tell active document > save myDoc You don't need to put "save myDoc" inside "tell active document" -- it's effectively doubling up, and will cause problems. > set thePath to file path > export document format "EPSType" to thePath The export command formats aren't strings, and the word document doesn't belong unless you're specifying a document outside a "tell document x" structure. The command also needs a full path including file name; a folder path isn't enough. Try something like this: tell application "InDesign 2.0.2" set myDoc to active document set thePath to full name of myDoc export myDoc format EPS type to thePath & ".eps" end tell -- Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<BA1C0FD4.47240%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-08!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de6ee2d.-1@WebX.la2eafNXanI> <1de6ee2d.1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,7d8c3b6927133215 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-12-10 03:08:38 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-08!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Export as EPS Message-ID: <BA1C0FD4.47240%sstanley@myriad-com.com.au> Date: Tue, 10 Dec 2002 02:40:37 -0800 References: <1de6ee2d.-1@WebX.la2eafNXanI> <1de6ee2d.1@WebX.la2eafNXanI> Lines: 33 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