🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16557

Re: [AS] System Events: PDF dialog instead of EPS

#16557
From: Thomas Lundin
Date: Mon, 25 Aug 2003 11:48
40 lines
1894 bytes
I'm after a batch conversion of Indd-documents, with no user interaction.
Tried the idea with using "export document", Applescript:

tell application "InDesign 2.0.2"
	activate
	export document 1 format "EPS" to "OSX:Users:Common:Desktop:Conversion:EPS_TEST.EPS" with showing options
end tell

tell application "System Events"
	tell application process "InDesign 2.0.2"
		tell window "Export"
			delay 5
			if the value of check box "Spreads" is 0 then
				click check box "Spreads"
			end if
			tell tab group 1
				tell radio button 2
					click
				end tell
			end tell

			click radio button 1 -- "Ranges:"
			tell pop up button 5 -- Postscript
				click
				tell menu 1
					if the name of every menu item contains "Level 2" then
						click menu item "Level 2"
					end if
				end tell
			end tell
			click button "Export"
		end tell
	end tell
end tell

There is no responce at all from Indesign with this script, or similar scripts that tries to control the interface of Indesign via System Events.

After a timeout, the first export call envokes an time out error.

:( 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-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd091e.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2e0aaedd442e6ac4
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-08-25 05:08:04 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-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] System Events: PDF dialog instead of EPS
Message-ID: <2ccd091e.1@webx.la2eafNXanI>
Date: Mon, 25 Aug 2003 04:48:42 -0700
References: <2ccd091e.-1@webx.la2eafNXanI>
Lines: 44
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit