Photoshop: PS will not open a file from AppleScript

  • 2
  • Problem
  • Updated 3 years ago
  • Solved
  • (Edited)

Photoshop CS5 will not execute a simple open command

Steps to re-create problem:

Try to execute the following script

set myFile to choose file
tell application "Adobe Photoshop CS5"
open myFile
end tell

This will error, unless I do the following:

set myFile to choose file
set myFile to myFile as list
tell application "adobe photoshop CS5"
open (item 1 of myFile)
end tell

oddly enough the above will work

Expected behavior:

Photoshop should just open the file with the first code snippit I provided.
Photo of levguerchoig


  • 2 Posts
  • 0 Reply Likes
  • frustrated

Posted 7 years ago

  • 2
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 13617 Posts
  • 1540 Reply Likes
Official Response
Try the solutions here:

Let me know if that answers your question/solves your problem.