Opening Photoshop doc.

This shouldn’t be that difficult, but I can’t open a file in photoshop I tried:


tell application "Adobe Photoshop 7.0"
	set doc to alias "Path:to:file"
	open doc
end tell

but got the following error: “Adobe Photoshop 7.0 got an error: alias “Path:to:file” doesn’t understand the open message.”
Then I looked in the dictionary and saw that it opens a list of aliases. so I tried:


tell application "Adobe Photoshop 7.0"
	set doc to alias "Path:to:file"
	open {doc}
end tell

but I got the same error.
What am I doing wrong?

Well, I feel stupid now. There was a dialog box already open in Photoshop, so it got the error. Both of what I wrote above actually work. Sorry for wasting your time that you took to read this. :oops: :oops: