スクリプトについて
スクリプトファイル名規則
- cotEditorヘルプの「CotEditor スクリプトのファイル名規則」参照
- 03)Insert Date.@~Y.scptのように番号03)を入れるとその順で並ぶ
- ~は修飾キーのオプション(^ Ctrl @ Command $シフト)
- "4)-"という名前のフォルダは4番目にセパレータを入れる
登録可能なスクリプトの拡張子
- 言語と無関係にsh,pl,php,rb,pyが登録できる。
スクリプトへのデータ渡し
コメントに
%%%{CotEditorXInput=xxxx}%%%
- xxxxはSelection,AllText,None
- 標準入力に入る。UTF-8
スクリプトへのデータ出力
コメントに
%%%{CotEditorXOutput=xxxx}%%%
- xxxxはReplaceSelection, ReplaceAllText, InsertAfterSelection, AppendToAllText,Pasteboard puts
, Discard
- 標準出力で出る。UTF-8で渡す事。
最終更新:2013年05月24日 10:09