Mac OS X
Q: AppleScript "exists application" can't continue error -1708
I was trying to create an applescript to autosave painting in Clip Studio Paint by making it pressing cmd+s every 60 seconds.
The code is very simple
set isRunning to true delay 300 repeat while isRunning if (path to frontmost application) is (path to application "CLIP STUDIO PAINT") then tell application "CLIP STUDIO PAINT" tell application "System Events" keystroke "s" using command down end tell end tell delay 60 end if tell application "System Events" if not (exists application "CLIP STUDIO PAINT") then set isRunning to false end tell end repeat
but when I run it, I got an error
Script Error
"CLIP STUDIO PAINT got an error: Can't continue exists"
Does anyone know why and does anybody know how to fix it?
Posted on Sep 17, 2016 5:32 AM