action:Write_to_a_File
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| action:Write_to_a_File [2015/03/20 06:59] – created peternlewis | action:Write_to_a_File [2023/05/15 04:22] (current) – [Warnings] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | The Write to a File action allows you to write a variety of things to a file on disk. | + | ====== |
| - | You can write or append the current system clipboard, a named clipboard, a variable, some text or some styled text (you cannot append styled text though). | ||
| - | You select the file to write to by specifying it's path. You can click the File Chooser button on the right to select an existing | + | The Write to a File and [[action: |
| - | You can write the file in a variety of formats, including plain text, RTF or RTFD, SimpleText, as an HTML folder or web archive, os a Word Doc, Word XML, Open Office XML, or Open Document, or for clipboards which contain images, as an image in a number of formats. Plain text formats can also specify their character encoding. | ||
| - | You can only append to plain text formats. | ||
| - | If you change the format or extension of the file, the other changes to match. | + | 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). | ||
| + | |||
| + | You can write the file in a variety of formats, including plain text, RTF or RTFD, SimpleText, as an HTML folder or web archive, or a Word Doc, Word XML, Open Office XML, or Open Document. You can only append to plain text formats though. | ||
| + | |||
| + | [[: | ||
| + | |||
| + | If you change the format or extension of the file in the ‘//to file//’ field, the ‘//with format//’ selector | ||
| + | |||
| + | 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 ===== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === Actions === | ||
| + | |||
| + | * [[action: | ||
| + | * [[action: | ||
| + | * [[action: | ||
| + | * [[: | ||
| + | |||
| + | ==== Topics ==== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Forum ==== | ||
| + | |||
| + | - [[https:// | ||
| + | |||
| + | - [[https:// | ||
action/Write_to_a_File.1426834793.txt.gz · Last modified: by peternlewis
