[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 801- 901- 2chのread.cgiへ]
Update time : 08/09 08:05 / Filesize : 259 KB / Number-of Response : 971
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

iTunesを使いこなそう!for Mac Part 66



511 名前:名称未設定 mailto:sage [2008/10/17(金) 07:47:13 ID:Pr769TvoP]
案ずるな! 典型的な文字列置換の練習問題など此処で終わらせる!
iTunesの歌詞(lyrics)に含まれる文字列Aを文字列Bに置き換えるスクリプト

tell application "iTunes"
if selection of front browser window is {} then
display alert "Select track(s) to process." as critical buttons "Cancel"
else
set TID to AppleScript's text item delimiters
set FI to fixed indexing
set fixed indexing to true
set selectedTracks to selection
try
repeat with aTrack in selectedTracks
tell aTrack
set aText to lyrics as string
set AppleScript's text item delimiters to "文字列A"
set aList to every text item of aText
set AppleScript's text item delimiters to "文字列B"
set aText to aList as string
set lyrics to aText
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







[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<259KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef