I know I'm missing something incredibly simple here, but I can't figure out what it is. If I use the following script:
tell application "Adobe Photoshop CS5.1"
open file "path:to:some:file"
end tell
it works no problem, but if I try to use the "choose file" dialog everything falls apart:
tell application "Adobe Photoshop CS5.1"
set myFile to choose file
open myFile
end tell
I get an error
error "Adobe Photoshop CS5.1 got an error: File some object wasn’t found." number -43
What am I missing here?
as POSIX fileonto thechoose file? Your first script suggests that theopencommand only takes file references in a certain way.