AppleScriptでアートワークなど自動貼り付け
毎週の会議録をiTunes11で管理しています。
新しいファイルを追加するたびにスクリプトを実行してファイル名以外の情報(アーティスト、アルバム、ジャンル、年)を自動入力していますが、これにアートワークの自動貼り付けも追加できないでしょうか?
いままでアートワークファイルは、前の同じアルバムのファイルを探してコピペしていました。
ご存知の方がおられましたら教えて下さい。
下記が現在使用しているスクリプトです。
tell application "iTunes"
activate
set selectedTracks to selection
if selectedTracks is not {} then
ignoring case
set totalTrack to count selectedTracks
repeat with i from 1 to totalTrack
tell item i of selectedTracks
set album to "アルバム名"
set artist to "アーティスト名"
set genre to "ジャンル名"
set year to 2014
end tell
end repeat
end ignoring
end if
end tell
あとできましたら、「メディアの種類」を「オーディオブック」に、「再生位置を記憶」と「シャッフル時にスキップ」を「はい」にもしたいので、これもスクリプトの作り方がわかりましたら教えて下さい。
よろしくお願いします。