I’m trying to get Photoshop to open a PDF file from a path created earlier in the script. After much frustration I made a new script to simplify the issue and now I’m at a loss.
The following with Acrobat works:
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
set savePath to "Customers:C:CAMP:A:207019 CAMP - Adkins Three 6x11 Card OK 201021 OK:jpeg:207019 CAMP - Adkins 3 OK 201021 OK Front.pdf"
set workFile to alias savePath
tell application id "com.adobe.Acrobat.Pro"
open workFile
end tell
However if I substitute “com.adobe.Photoshop” for Acrobat the script generates an error:
Adobe Photoshop CC 2019 got an error: File some object wasn’t found.
Adding parameters to the open command yields a different error message:
Adobe Photoshop CC 2019 got an error: Can’t get alias “Customers:C:CAMP:A:207019 CAMP - Adkins Three 6x11 Card OK 201021 OK:jpeg:207019 CAMP - Adkins 3 OK 201021 OK Front.pdf”.
But I think it’s essentially saying the same thing. Or maybe not. Can anyone help me understand what’s going on here?
Thanks.