2 名前: モルモットさん(金)(アラバマ州) [sage] 投稿日: 2008/12/11(木) 17:17:54.14 ID:6GpsojuVP
>>865 grep の使い方がいまいち分からないんですが、こうですか?
tell application "iTunes"
if selection of front browser window is {} then
display alert "Select track(s) to process." as critical buttons "Cancel"
else
set selectedTracks to selection
set TID to AppleScript's text item delimiters
set FI to fixed indexing
set fixed indexing to true
try
repeat with aTrack in selectedTracks
tell aTrack
set oldComment to comment
set newComment to do shell script "echo " & quoted form of oldComment & " | grep -v 'Adjusted by iVolume ../../.... ..:..:..'"
set comment to newComment
end tell
end repeat
end try
set fixed indexing to FI
set AppleScript's text item delimiters to TID
display alert "Process was completed." as critical buttons "OK"
end if
end tell
…何か動かないみたいです orz