1

デジタルカメラのメモリカードから作成された一連のディスクイメージがあります。つまり、基本的には、DCIMフォルダ内の一連の写真とビデオです。

AppleScriptにそれらのディスクイメージをマウントさせ、それらすべての写真を私のiphotoライブラリに追加して、日をイベントごとに分ける方法があるはずだと私には思えます。また、すべてのビデオをスキップして、JUST写真をインポートすることもできます。

魔法のコードを知っている人はいますか?

4

1 に答える 1

-1

これは役立つはずです。ネットで拾ってきたのでまとめてみました。それが機能するかどうか教えてください。:)

tell application "Finder"
  if not (exists "disk_image_name")
    do shell script hdiutil mount "disk_image_name".dmg
  end if
end tell
tell application "iPhoto"
        import from "disk_image_name"
        delay 5 -- wait for import to finish
        tell (the first album whose name is "albumtoimportto") to select photos
        assign keyword string "autoimport"
        select (the first album whose name is "autoimport")
        close application "iPhoto"
    end tell
于 2012-07-30T10:30:34.113 に答える