1

我在 iPhoto 中有数千张带有错误地理数据的照片(由于从错误的数据源导入),其中所有经度都丢失了减号。

每种情况下,我只想在经度上加上一个减号。

我怎样才能为每张照片设置经度= -经度?

4

1 回答 1

1

此脚本将经度设置为负数。

tell application "iPhoto"
    set tc to count photos
    repeat with i from 1 to tc
        try
            tell photo i to if longitude > 0 then set longitude to -(longitude)
        end try
    end repeat
end tell
于 2014-09-29T02:56:32.087 回答