Skip to main content
Known Participant
April 29, 2010
Answered

Applescript keeps stopping for user interaction

  • April 29, 2010
  • 1 reply
  • 759 views

I use this great applescript for turning my indesign layers into photoshop layers:

http://www.zenodesign.com/scripts/PagestoPSLayers.zip

It asks for a folder to put a temporary pdf, then asks some preferences (indesing pdf export preset, color mode, pagenumber, resolution and anti-alias on or off). Then the script should run fine untill all indesign layers are nicely turned into rasterized photoshop layers.

This used to work perfectly untill today i had to use the script again. For some reason the script keeps stopping for user interaction.

Photoshop gives me the "Open" dialog box, then the "Import PDF" dialog box (not using the settings that the script asked for), the same "Open" and "Import PDF" dialog boxes for the next layer, then a dialog box to name a duplicated layer, the "Close document" dialog box, the "Preferences" dialog box, "Canvas Size" dialog box... you get the point.

All stuff the script should do automatically.

I'm not into scripting myself but it used to run fine without presenting me all these dialog boxes. Any help appreciated!

This topic has been closed for replies.
Correct answer Larry G. Schneider

Try putting this statement first

tell application "Adobe Photoshop"

set display dialogs to never

end tell

and then add the same at the end but say

set display dialogs to always

1 reply

Larry G. Schneider
Community Expert
Larry G. SchneiderCommunity ExpertCorrect answer
Community Expert
April 29, 2010

Try putting this statement first

tell application "Adobe Photoshop"

set display dialogs to never

end tell

and then add the same at the end but say

set display dialogs to always

dmtetardAuthor
Known Participant
April 30, 2010

You're the man!

Problem solved. Thanks.