Re: InDesign jumping to forground
Re: InDesign jumping to forground
- Subject: Re: InDesign jumping to forground
- From: Wayne Melrose <email@hidden>
- Date: Thu, 12 Jul 2012 16:45:05 +1000
Thanks for the reply
No it's actually within an ASobjC application. but as a standard script or even as an app it also makes InDesign jump to the foreground.
hi Wayne,
maybe it makes a difference if you run it, or as an app or as an open script or in ID itself (probably how you run it now)
best, \\J
Hi all,
I have a script that opens InDesign documents and exports them to PDF.
I have a few users that are using this script. The idea is that InDesign runs in the background and allows the user to keep working in other programs. This works fine for most users, however there are some where InDesign jumps to the foreground when it opens each document.
I turn off user interaction as I start, and turn it back on when I finish, however it still doesn't seem to solve the issue. I've also attempted to 'hide' InDesign with system events, on those computers I'm having trouble on, it still happens.
I have ALSO tried turning the InDesign window off, also no help.
Anyone got any thoughts?
Here's a simplified
version of the script.
(InDesign CS5 and Snow Leopard)
set strFolderPath to ( choose folder with prompt "Choose InDesign documents folder") as stringset strOutputFolder to choose folder with prompt "Choose PDF export folder" set lstSelectedFiles to paragraphs of ( do shell script "ls " & ( quoted form of ( POSIX path of ( strFolderPath)))) setUserInteration (false)tell application "System Events" set visible of process "Adobe InDesign CS5" to falseend tellset intIndex to 0 repeat with strFilepath in lstSelectedFiles set intIndex to intIndex + 1 set strCurrentFilePathHFS to (strFolderPath & (strFilepath as string) as string)
tell application "Adobe InDesign CS5"
open strCurrentFilePathHFS without showing window export document 1 format PDF type to ((strOutputFolder & intIndex & ".pdf") as string) without showing options close front document saving no end tell
end repeatsetUserInteration (true)on setUserInteration (blnUserInteraction ) tell application "Adobe InDesign CS5.5" tell script preferences if blnUserInteraction then set user interaction level to interact with all else set user interaction level to never interact end if end tell end tellend setUserInteration
|
_______________________________________________
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