
CotEditor v6.2.3がリリースされ、AppleScript用語辞書に「folder document」クラスが追加されました。

AppleScript用語辞書では6箇所の変更点が検出されるのですが、folder document以外はすべて説明文の内容変更です。
folder documentは、CotEditorがフォルダごとオープンして、フォルダ階層自体をオープンして個別のファイルをいちいちオープンしなくても編集できるようにしたもの、のようです。

ただ、このfolder documentの操作を試みても、一切操作できません。
| AppleScript名:folder documentをカウントする(できない).scpt |
| tell application "CotEditor" set dCount to count every document set fdCount to count every folder document –> error "CotEditorでエラーが起きました: every folder documentを取り出すことはできません。" number -1728 from every folder document end tell |
カウントできないし、current documentも取得できないし、できないことづくしです。
| AppleScript名:folder documentからcurrent documentを取得.scpt |
| tell application "CotEditor" tell front folder document set cDoc to current document end tell end tell |
たぶん、これについては何もチェックも行われていないものなのでしょう。
フォルダ階層ごと書類にできるというべきなのか、windowの下に複数のdocumentがぶら下がっているというものなのか……試行錯誤の最中のようなので、まだこのfolder documentに手を出すべきではないのでしょう。
フォルダごと扱ってprojectっぽい扱いをしたいとか、markdownエディタ的な挙動を行いたいのか、といった理解はしてみますが、画像のビューワーも実装されている割にはrtfのプレビューもできません。
(Visited 1 times, 1 visits today)
