AppleScript アップルスクリプト 質問、発表 2

このエントリーをはてなブックマークに追加
869名称未設定
>>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 ../../.... ..:..:..'"
se
870名称未設定:2008/09/18(木) 13:00:13 ID:RgeldB5wP
>>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 ../../.... ..:..:..'"
se