-1
有人可以告訴我如何使用Applescript將文本追加到文件的末尾嗎?我使用腳本編輯器記錄器來創建一個宏,幫助我清理一些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