Hi Jan,
One more thing:
If you're worried about the user forgetting to check for missing links, you could always add something like the following as the last step in your script:
tell myDocument
set linksmissingcount to 0 set linksneedingupdatingcount to 0
try set themissinglinks to name of every link whose status is link missing set linksmissingcount to count of themissinglinks end try try set thelinksneedingupdating to name of every link whose status is link out of date set linksneedingupdatingcount to count of thelinksneedingupdating end try
display dialog "There are " & linksmissingcount & " links missing in this document." & return & return & "There are " & linksneedingupdatingcount & " links needing updating in this document."
end tell
hi Dana,
yes you are right...
So this means now that the user needs to look for missing links, as he/she will not be notified anymore.
would be nice to keep the message without blocking the script process.
many thanks for all who reacted. \\j
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 tellend 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 openfileend tell tell application "Adobe InDesign CS4" tell document 1 -- do something end tell end tell many thanks, Jan < pstyle="text-align: left;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 76.3px; text-indent: -76.3px; font: normal normal normal 12px/normal 'Lucida
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
|