Skip to main content
October 15, 2008
Question

[CS3][JS] Open options

  • October 15, 2008
  • 6 replies
  • 1305 views
I'm dealing with a situation where Photoshop will not open a file using open() because of the error "Cannot open the file because the open options are incorrect". The problem arises because the files have no extension or the wrong extension! I cannot work out how to specifically tell Photoshop to open the file as a certain type. I know what type the files are (mostly TIFFS) before the open command runs.

Tried Action Manager but it did not provide any insight on how to force the open command to, for example, 'open as TIFF'. Any help would be much appreciated.
This topic has been closed for replies.

6 replies

Participating Frequently
November 18, 2009

I was having a similar situation with the app.open command via javascript (.jsx). The script had been working fine but I started getting erratic behavior while doing minor edits. After closing the extendscript editor and restarting photoshop, the script began working as it should again. Using CS4 and PC.

Participant
October 18, 2008
I'm gonna be headache using adobe photoshop cs3.
October 16, 2008
Thank you, again, try67. Worked perfectly. You are such a great help.
October 16, 2008
Of course, Mark, but I really wanted to use a different method for reasons nobody would be interested in. Which is why I asked the question.
Known Participant
October 15, 2008
If you know what the file types are before opening then why not re-name the file giving it the correct name extension then open? that way PS would make the correct assumption
try67
Community Expert
Community Expert
October 15, 2008
Did you try setting the "as" parameter of app.open to OpenDocumentType.TIFF ?