Write UTF-8 Text to File using AppleScriptObjC v1.10

Hey Folks,

Sometimes you need to write text to a certain file in a certain directory, and if that file already exists you want to overwrite it.

You just want to provide your macro with a path to the file, and the data to write to it.

You don't want to worry about having to create any intermediate directories in the path that don't exist yet.

Well then – this macro was made for you.

Presently the data source is the system clipboard, but that can be changed quite easily in one of the User Settings actions.

Enjoy,

-Chris


Write UTF-8 Text to File using AppleScriptObjC v1.10.kmmacros (9.6 KB)
        (Tested with Keyboard Maestro 8.2.3 on macOS 10.12.6)

3 Likes