Re: Problems openning files and Target Application Solved!
Re: Problems openning files and Target Application Solved!
- Subject: Re: Problems openning files and Target Application Solved!
- From: "John Jones" <email@hidden>
- Date: Thu, 01 Feb 2001 10:08:15 -0500
Yep, that was it. I had been passing a Finder reference and the Finder was taking over. Coercing the reference to an alias solved the problem (should solve the problem in Target Application thread as well). I don't remember this behavior before OS 9.
Thanks Christopher,
John J.
>
>> "Christopher C. Stone" <email@hidden> - 2/1/01 2:36 AM >>>
At 09:58 -0500 01/31/2001, John Jones wrote:
>
I'm having a problem opening image files in Photoshop with AppleScript. The files were created on a PC and the Mac is identifying most of them as PictureViewer documents and some as just "PC document" (all have .tif extension). Here's the syntax I'm using:
>
>
tell application "Adobe. Photoshop. 6.0"
>
activate
>
open [reference]
>
do script [whatever]
>
end tell
___________________________________________________________________________
Hello John,
Works fine for me as long as I pass it an alias or alias list:
tell application "Photoshop"
activate
open {alias "Thor:Desktop Folder:Picture 1.tif"}
end tell
Best Regards,
Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users