• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: More help with Photoscripter Please!!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: More help with Photoscripter Please!!!
      • From: Robert Seckendorf <email@hidden>
References: 
 >More help with Photoscripter Please!!! (From: Robert Seckendorf <email@hidden>)

  • Prev by Date: More help with Photoscripter Please!!!
  • Next by Date: Re: parent properties
  • Previous by thread: More help with Photoscripter Please!!!
  • Next by thread: Re: More help with Photoscripter Please!!!
  • Index(es):
    • Date
    • Thread