オートメーションのファイルセットで実行されているこのスクリプトが、すべてのTextMateウィンドウを実際に保存してファイルを閉じるのではなく、入力を待っている保存プロンプトで開く理由を教えてください。applescript/automatorを閉じて保存する
私は、行close window 1 saving yes
がファイルを保存して閉じ、次の行に進むと仮定しましたが、そうではないようです。
on run {input, parameters}
repeat with a from 1 to length of input
tell application "TextMate"
activate
open item a of input
tell application "System Events"
tell process "TextMate"
tell menu bar 1
tell menu bar item "Text"
tell menu "Text"
tell menu item "Convert"
tell menu "Convert"
click menu item "Tabs to Spaces"
end tell
end tell
end tell
end tell
end tell
end tell
end tell
close window 1 saving yes
end tell
end repeat
return input
end run
私は質問に答えることはできませんが、シェルスクリプトの 'expand'は、タブをスペースに変換する実用的な方法です。 –
それは素晴らしいマイケルです...それはまさに私が探していたものです! – ChrisR
助けてくれてうれしい! –