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
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 openfileend 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