coteditor / CotEditor

Lightweight Plain-Text Editor for macOS
https://coteditor.com
Other
6.48k stars 432 forks source link

AppleScript help #1748

Open oirwnvvwwvc opened 4 weeks ago

oirwnvvwwvc commented 4 weeks ago

If CotEditor has opened a folder, how can I use AppleScript to get the file path of the currently opened file in this window?

Using 'set theFile to file of front document' will only get the folder path when in a folder window.

Please help me

1024jp commented 3 weeks ago

AppleScript is not yet supported for documents in a folder (sorry). Please be patient until the implementation.