• 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
Re: (no subject)That
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)That


  • Subject: Re: (no subject)That
  • From: Dana Hill <email@hidden>
  • Date: Wed, 19 Oct 2011 12:01:46 -0400
  • Acceptlanguage: en-US
  • Thread-topic: (no subject)That

Why not this instead? You don't need to involve "Finder" at all.


tell application "Adobe InDesign CS5.5"
set user interaction level of script preferences to never interact


set openfile to choose file with prompt "Choose an Indesign document:"
--tell application "Finder"
open openfile
--end tell



tell document 1
export to (choose file name with prompt "Did you 'map styles to XML tags' and untag all items that should not be in the final XML file immediately before running this script? If not, please quit and complete those steps. Then run the script again.

If you have completed the steps above, please choose the place you would like the XML saved. Be sure to click on a file with the emarketer_2000xxx code so the right name is assigned.") & ".xml" as string format XML
end tell
end tell




On Oct 19, 2011, at 11:32 AM, <email@hidden> wrote:

hi Dana,


you mean like this? Still hangs, now on the line "set user interaction..."


set openfile to choose file with prompt "Choose an Indesign document:"
tell application "Finder"
open openfile
end tell


tell application "Adobe InDesign CS4"
set user interaction level of script preferences to never interact
tell document 1
-- do something
end tell
end tell



set user interaction level of script preferences to never interact


That usually does it for me.






On Oct 19, 2011, at 11:16 AM, Alex Zavatone wrote:

Can't you say something like "without interaction" or "without user dialogs"??
On Oct 19, 2011, at 10:14 AM, email@hidden wrote:


hi all,



Does anyone know how to tackle the following?
This works only if I don't get a message about missing assets or whatever popup interrupt the page from opening
When I get a message before the page opens the scripts will hang...


set openfile to choose file with prompt "Choose an Indesign document:"
tell application "Finder"
open openfile
end tell
tell application "Adobe InDesign CS4"
tell document 1
-- do something
end tell
end tell


many thanks,
Jan







http://lists.apple.com/archives/applescript-users This email sent to email@hidden
References: 
 >RE: Re: (no subject)That (From: email@hidden)

  • Prev by Date: Set column width in list view
  • Next by Date: RE: Re: (no subject)That
  • Previous by thread: RE: Re: (no subject)That
  • Next by thread: RE: Re: (no subject)That
  • Index(es):
    • Date
    • Thread