• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
InDesign C3: Cross-media export?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InDesign C3: Cross-media export?


  • Subject: InDesign C3: Cross-media export?
  • From: email@hidden
  • Date: Wed, 7 May 2008 18:14:27 -0400 (EDT)

<pre>  &lt; for the HTML folks

I'm trying to automatically export a newspaper laid out in InDesign.
I'm very new to Applescript (being more of a web person than a indesign
person).

I've tried two approaches, one like:

	set argvd to {":Volumes:Thor:AAA voice:2008 VOICES:03 March 2008:layout_mar08:  done:10_sin_mar08.indd", 2, 3}

	repeat with xx in argvd
		tell application "Adobe InDesign CS3"
			activate
			set myDocument to open file (xx as string)
			display dialog (xx as string) & " now working."
		end tell
		tell application "System Events"
			tell process "InDesign"
				set frontmost to true
				-- click menu item "Show All Menu Items" of menu "File" of menu bar item "File" of menu bar 1
				click menu item "XHTML / Dreamweaver..." of menu "Cross-media Export" of menu item "Cross-media Export" of menu "File" of menu bar item "File" of menu bar 1
				delay 5
				click button 1 of sheet 1 of window "Save As"
				delay 5
				display dialog "Now here."
			end tell
		end tell
	end repeat

If I run that as is, the click button 1 of sheet 1 of windows "Save
AS" errors out (for various likely looking things involving sheet and
not involving sheet).  If I comment it out, the script runs with no
error, but doesn't export anything to XHTML.

My other approach is

	repeat with xx in argvd
		tell application "Adobe InDesign CS3"
			activate
			display dialog (xx as string) & " now working."
			set myDocument to open file (xx as string)
			select menu item "XHTML / Dreamweaver..." of submenu "Cross-media Export" of submenu "File" of menu 1

		end tell
	end repeat

This brings up the export window, and lets me click on it, but the
applescript doesn't seem to return to the script until after I click
or it times out, so the amateurish things I tried to click on the "OK"
button don't even run.

Thanks for any help, advice, or pointers to the FM.


--Chris

</pre>


--
Chris Austin-Lane - 301-270-6524
http://www.takoma.com/apparently for humor (updated in April, 2008)
I burn my candle at both ends//It will not last the night.//
But ah my foes and oh my friends// It gives a lovely light.

Text copyright 2008 Chris Austin-Lane; All rights reserved.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: InDesign C3: Cross-media export?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: How to maximize Safari windows?
  • Next by Date: Re: InDesign C3: Cross-media export?
  • Previous by thread: Re: How to maximize Safari windows?
  • Next by thread: Re: InDesign C3: Cross-media export?
  • Index(es):
    • Date
    • Thread