Photoshop: PS will not open a file from AppleScript

  • 2
  • Problem
  • Updated 4 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 8 years ago

  • 2
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14992 Posts
  • 2090 Reply Likes
Official Response
Try the solutions here:

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