by ʇolɐǝz ǝɥʇ qoq

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to use Applescript to automate a task in photoshop.

When attempting to open a file:

tell application "Adobe Photoshop CS5"

    -- Open the first image
    set filePath to alias "Users:jameshale:Pictures:DSC_1273.jpg"
    with timeout of 5 seconds
        open filePath as Camera RAW
    end timeout

end tell

The result is an error:

error "Adobe Photoshop CS5 got an error: Can’t get alias \"Users:jameshale:Pictures:DSC_1273.jpg\"." number -1728

What am I doing wrong?


share|improve this question
While you happen to be trying to automate Photoshop, this is really more of an AppleScript question and is probably better suited for a different StackExchange site such as SuperUser or the Mac site. – ahockley Jan 19 '11 at 18:28
up vote 4 down vote accepted

Applescript in Photoshop CS5 is pretty broken according to this thread.

Try this:

tell application "Adobe Photoshop CS5"
    set theImage to "/Users/jedrek/Pictures/temp.jpg"
    with timeout of 5 seconds
        open alias theImage as Camera RAW
    end timeout
end tell
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.