Code Archive Skip to content Google About Google Privacy Terms
TerminalではCommand+Tで新しいタブを開くことが出来ますが、新規タブはホームディレクトリで開かれてしまい、Screenのように現在のディレクトリで開いてくれません。ほとんどの場合はカレントディレクトリで開いてくれる方が便利なので、それを実現する方法を模索しました。 結果から先に言うと「"pwd"で出力するフルパスを覚えておいてCommand+Tと押した後に"cd"コマンドでそれを入力する」というAppleScriptを書いてTerminalからコマンドで呼び出すようにしました。この方法に決定した理由は以下の通りです。 TerminalなのでAppleScriptが動く環境 AppleScriptの動作は速い AppleScriptは書いたことないけど便利そうなので勉強しとくと今後貢献してくれそう スクリプトをコマンドで呼び出すだけ、というのが理解しやすくて安心 AppleSc
AppleScript Example Script iTerm has sophisticated Applescript support allowing one to write stand-alone scripts to launch the application and open multiple sessions from the addressbook into either new tabs or new windows. You can also set some other parameters for a session such as foreground and background colors, and transparency. Here is a sample script: -- A sample iTerm Applescript tell app
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く