Hello All,
I am converting an applescript to run in Leopard that is currently running in Tiger. I want it to run Photoshop CS3 as a background process. However, in Leopard you cannot launch Photoshop CS2 or 3 and open a file without an “activate”.
This is the script I am running:
property psdFile : "/path to file"
tell application "Adobe Photoshop CS3"
open file psdFile
end tell
This is the error I am getting:
Adobe Photoshop CS3 got an error: General Photoshop error occurred. This functionality may not be available in this version of Photoshop. - The object “current document” is not currently available.
So if I put an activate in, it will work fine, but I don’t want to do that. I want it to run in the background. Is there a way around this? Also if the application has already been open and activated and deactivated then the script will run fine. It is only during the initial launch of the app that this error occurs.
Thank you!