Re: More help with Photoscripter Please!!!
Re: More help with Photoscripter Please!!!
- Subject: Re: More help with Photoscripter Please!!!
- From: Emmanuel <email@hidden>
- Date: Mon, 5 Feb 2001 18:34:31 +0100
At 17:29 +0100 5/02/01, Robert Seckendorf wrote:
>
set fileRef to a reference to the file "disk:folder:file"
>
>
tell application "Adobe. Photoshop. 5.5"
>
activate
>
open file fileRef
>
end tell
Think of "a reference to" as a text shortcut: AppleScript will just replace
genuinely any mention to "fileRef" with what it refers to, without even
trying to evaluate it: you can make a reference to file "not_a_disk:
not_a_file".
So, you're just running:
-----------------------
tell app... to open file file "disk:folder:file"
-----------------------
obviously not what you meant.
Note that a usual way of opening a file is to use Finder's dictionary:
------------------------
tell application "Finder" to open alias theFilePath using alias theAppPath
------------------------
HTH
Emmanuel