Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ターミナルでシェル コマンドを実行し、Applescript からコンソールをクリアしたいと考えています。
これを手動で行う場合は、^K を使用します。文字列内の ^K 文字をターミナルに送信するにはどうすればよいですか?
「クリア」コマンドを探していると思います。
「クリア」を提案した紳士はおそらく問題を解決したと思いますが、あなたが言ったことを実際にやりたい場合に備えて、単に使用できます:
エコー "^L"
(これを「echo ""」と入力します)