iTunesライブラリディレクトリにあるトラックとAppleScriptを使用していないトラックを確認しようとしています。Applescript - ライブラリ内のすべてのiTunesトラックを繰り返し再生するとパフォーマンスが低下します
次のスクリプトは本当に遅いは、各トラックの約2秒(図書館には約8000のトラックがあります)取っている:
#!/usr/bin/osascript
tell application "iTunes"
repeat with l in (location of every file track)
POSIX path of l does not start with "/Users/user/Music/iTunes/iTunes Media/"
end repeat
end tell
:
#!/usr/bin/osascript
tell application "iTunes"
repeat with l in (location of every file track)
set fileName to (POSIX path of l)
if fileName does not start with "/Users/user/Music/iTunes/iTunes Media/" then
log fileName
end if
end repeat
end tell
は、以下が、同じ性能を試してみました
一方、iTunesはかなり反応しなくなります。
何かばかげている必要がありますが、何が分かりませんか。
これは、2015 27インチiMacのOS X El Capitanの下にあります。
助けてください。
乾杯
スポットに!ありがとう – user1905449