title: Opening files in Photoshop with an applescript droplet
body: <p>I have a problem. I am a complete Applescript novice and I am trying to simply open 3 files from my desktop into Photoshop CS4 using a droplet, but when I drop the files I get This error:</p>
  
  <p>Can't get alias "Macintosh HD:Users:nazkav:Desktop:Kav1_jpg"</p>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>    on open these_files
        repeat with i from 1 to the count of these_files
          set this_file to item i of these_files
           my image(this_file)
        end repeat
      end open
      on image(the_image)
        tell application "Adobe Photoshop CS4"
          activate
          open the_image as JPEG
        end tell
      end image
  </code></pre>
  
  <p>I hope somebody can help
  Thanks in advance</p>
  
  <p>Kavin</p>