使用AppleScript获取XMP评级

时间:2017-03-22 10:47:38

标签: applescript photoshop xmp

如何使用AppleScript获取xmp文件中存在的评级。 xmp文件属于CR2文件。我尝试使用photoshop cc 2017库。但我不能让它发挥作用。

1 个答案:

答案 0 :(得分:0)

我总是发现exiftool可以方便地阅读/编写XMP

http://www.sno.phy.queensu.ca/~phil/exiftool/

如果您需要从AppleScript访问它,那么您可以使用以下内容:

set theFile to choose file
set theInfoFromExiftool to do shell script "/usr/local/bin/exiftool -CreateDate " & quoted form of POSIX path of theFile

当然,您需要将CreateDate更改为您感兴趣的任何标记的名称。

希望得到一些帮助。