-1
Applescriptを使ってファイルの最後にテキストを追加する方法を教えてもらえますか? Script Editorレコーダーを使って、いくつかのHTMLタグを整理するのに役立つマクロを作成しました。今度は、マクロをファイルの最後に移動して文章を書くようにします。 Applescriptに 'goto eof'コマンドがありますか?AppleScript:ファイルの最後に移動してテキストを書き込む?
ありがとうございます!
tell application "TextWrangler"
activate
open find window
replace "<b>" using "<strong>" searching in text 1 of document 1 options {search mode:grep, starting at top:true}
replace "</b>" using "</strong>" searching in text 1 of document 1 options {search mode:grep, starting at top:true}
replace "<i>" using "<em>" searching in text 1 of document 1 options {search mode:grep, starting at top:true}
replace "</i>" using "</em>" searching in text 1 of document 1 options {search mode:grep, starting at top:true}
replace "<span>" using "" searching in text 1 of document 1 options {search mode:grep, starting at top:true}
replace "</span>" using "" searching in text 1 of document 1 options {search mode:grep, starting at top:true}
replace " " using "" searching in text 1 of document 1 options {search mode:grep, starting at top:true}
close find window
goto eof
write "hello world!"
end tell