Article View: adobe.scripting.indesign
Article #16648[AS] System Events: PDF dialog instead of EPS
From: Thomas Lundin
Date: Fri, 22 Aug 2003 08:46
Date: Fri, 22 Aug 2003 08:46
40 lines
1875 bytes
1875 bytes
I'm trying to mock-up a script that does export EPS-files.
Using System Events scripting, the two script examples below works, but the dialogue presented on my mac is not the EPS Export Options, it leads to the PDF dito.
Any ideas?
Test 1)
tell application "InDesign 2.0.2" to activate
tell application "System Events"
tell application process "InDesign 2.0.2"
keystroke "e" with {command down}
tell window "Export"
tell pop up button 1
click
tell menu 1
if the name of every menu item contains "EPS" then
click menu item "EPS"
end if
end tell
end tell
click button "Save"
end tell
end tell
end tell
Test 2)
tell application "InDesign 2.0.2" to activate
tell application "System Events"
tell application process "InDesign 2.0.2"
keystroke "e" with {command down}
click pop up button 1 of window "Export"
keystroke (ASCII character 31) -- down arrow
keystroke (ASCII character 31) -- down arrow
keystroke return
click button "Save" of window "Export"
end tell
end tell
/Thomas
Technical Details
Message-ID:
<2ccd091e.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!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,2e0aaedd442e6ac4,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-22 02:08:13 PST From: "Thomas Lundin" <thomas.lundin@memo.ikea.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [AS] System Events: PDF dialog instead of EPS Message-ID: <2ccd091e.-1@webx.la2eafNXanI> Date: Fri, 22 Aug 2003 01:46:18 -0700 Lines: 42 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit