Open file in Photoshop CS3 with a wrong file extension

I try to open a picture in Adobe PhotoShop CS3 by AppleScript. But unfortunately this file has a wrong file extension (.jpg instead of .tif). If I try to open this file by script I’ll get an error message that the specific file can not be opened because of wrong parameters (please don’t asl why I have files with wrong extensions → I’m not the user who name them).

Here the script-part I’d like to use

set image to choose file

tell application "Adobe Photoshop CS3"
	open image showing dialogs never
end tell

Because the script has to open all kind of pictures I’d like to have a way to open them without checking every time the file type in advance.
(The funny thing is that PhotoShop can open these wrong named files over the File-Open-Menu without any messages).

Who knows a way to open those wrong named files?

Thanks a lot in advance



Here’s a droplet I used to use in OS 9 with Photoshop 3.0.5:

on open these_items
	repeat with this_item in these_items
		tell application "Finder"
			open this_item using application file id "8BIM"
		end tell
	end repeat
	tell application "Photoshop"
	end tell
end open

You may have to change the file id to whatever 4 character creator type Adobe PhotoShop CS3 now uses… OR… to the bundle identifier Adobe PhotoShop CS3 uses (e.g. “”)… AND… you’ll need to change ‘Photoshop’ to Adobe PhotoShop CS3 (or whatever).

I think it should work.

Peter B.

Hi Peter

Thanks for your suggestion. Unfortunately I’m still not able to prevent Photoshop from showing differnt message windows or errors. If I only work with PhotoShop images there’s no problem. But the script has to tread EPS vector graphics and PDF files as well. In that case I need the open function of PhotoShop with the “open options”. to prevent Photoshop from showing message windows I guess that I have to check in advance the type and creator of a picture to open it with different open options.

Cheers, Baschi