action:Write_to_a_File
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Write_to_a_File [2016/03/13 13:35] – add internal links AlainLifchitz | action:Write_to_a_File [2023/05/15 04:22] (current) – [Warnings] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | The Write to a File and [[action: | + | ====== Write To File Action ====== |
| + | |||
| + | |||
| + | The Write to a File and [[action: | ||
| + | |||
| Write or append the current system clipboard, a named clipboard, a variable, some text or some styled text (you can write but cannot append styled text). | Write or append the current system clipboard, a named clipboard, a variable, some text or some styled text (you can write but cannot append styled text). | ||
| + | |||
| + | ===== Warnings ===== | ||
| + | |||
| + | ** 1. Will Overwrite Existing File** | ||
| + | |||
| + | While the [[action: | ||
| + | |||
| + | **2. Inadvertent Destruction of Folder (pre v8.1)** | ||
| + | |||
| + | Ensure you specify a file path, not a path to a directory - this action uses an Apple API that can overwrite directories, | ||
| + | |||
| + | ===== How To Use ===== | ||
| Select the file to write to by specifying its path. Click the File Chooser button on the right to select an existing file on disk. Option-click on the File Chooser button to show the currently selected file in the Finder (assuming it exists already). | Select the file to write to by specifying its path. Click the File Chooser button on the right to select an existing file on disk. Option-click on the File Chooser button to show the currently selected file in the Finder (assuming it exists already). | ||
| Line 12: | Line 29: | ||
| Note the difference between the Write and Append actions: | Note the difference between the Write and Append actions: | ||
| + | |||
| + | For text, the action allows you to control what text processing happens in the gear menu (7.2+) : | ||
| + | |||
| + | * Process Text Normally (process text tokens and backslash characters) | ||
| + | * Process Text Tokens Only (process text tokens but not backslash characters) | ||
| + | * Process Nothing (process neither text tokens nor backslash characters) | ||
| + | |||
| + | Most other [Text Fields](https:// | ||
| ===== See Also ===== | ===== See Also ===== | ||
| Line 21: | Line 46: | ||
| * [[action: | * [[action: | ||
| * [[action: | * [[action: | ||
| + | * [[action: | ||
| * [[: | * [[: | ||
| + | |||
| + | ==== Topics ==== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| ---- | ---- | ||
| Line 27: | Line 58: | ||
| ==== Forum ==== | ==== Forum ==== | ||
| - | - [[https://www.google.fr/search?q=site: | + | - [[https://forum.keyboardmaestro.com/t/ |
| + | |||
| + | - [[https://forum.keyboardmaestro.com/search?q=Write%20File|Keyboard Maestro Forum topics about Write to a File action]] | ||
action/Write_to_a_File.1457876121.txt.gz · Last modified: by AlainLifchitz
