Yesterday I came across a problem where the Photoshop warning shown below often caused an automated image workflow to stop.
The warning only appears with a small amount of our images. Unfortunately it cannot be suppressed by using the «set display dialog to never» command.
But as the workflow needs to run continuously without any user interaction, we urgently needed a solution for this problem. And that is how we now skip the warnings:
on run
tell application "AppleScript Utility"
set GUI Scripting enabled to true
end tell
set imgfilepath to "Macintosh HD:Users:martin:Desktop:0907092015033031.jpg"
tell application "Adobe Photoshop CS"
activate
ignoring application responses
open (imgfilepath as alias)
end ignoring
-- the delay might need to be adjusted depending on the
-- image size
delay 4
my hitenter()
end tell
end run
on hitenter()
tell application "System Events"
key code 36
end tell
end hitenter
Maybe someone else can also make good use of it
Happy Scripting!