使用applescript Droplet在Photoshop中打开文件

时间:2012-06-05 10:00:37

标签: applescript

我有问题。我是一个完整的Applescript新手,我试图用我的桌面简单地打开3个文件到Photoshop CS4,但是当我丢弃文件时,我得到了这个错误:

无法获得别名“Macintosh HD:用户:nazkav:桌面:Kav1_jpg”

这是我正在使用的代码:

    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

我希望有人可以提供帮助 提前致谢

Kavin

0 个答案:

没有答案