𝚃 𝙴 𝚂 𝚃

Send to Bear silently

Type: Action
Keyboard Shortcut:
Icon: notebook
Colour: red
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 2CABB773-755B-42BB-AF8B-A15B899FF20B
Description:
Send draft to Bear Notes silently in background.

Email (Spark)

Type: Action
Keyboard Shortcut:
Icon: action_email_filled
Colour: blue
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 3AB018C5-75FA-4E6A-AE26-755DB1DC4C54
Description:
Open Spark email with the first line of the draft as the subject and remaining content as the body.

New Draft with Template

Type: Action
Keyboard Shortcut:
Icon: page-add
Colour: blue
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: AF36F27E-E976-44D7-B2D1-059067C9B9CB
Description:
Prompt to select from a list of existing drafts with the tag “template” assigned, then create a new draft with the content of that template.

To create templates available in this action, simply type your template in a draft, and assigned the tag “template” to that draft. It can be in the archive or inbox. The template can contain Drafts tags to insert time stamps or other dynamic data in the template. Also, any tags other than “template” assigned to the template draft will be assigned to the new draft automatically.

If the template contains the string <|>, the <|> will be removed, and the initial cursor position in the new draft placed at that location.

Note: This action used functionality which requires a Pro subscription.

Go To Bookmark

Type: Action
Keyboard Shortcut:
Icon: journal
Colour: violet
Confirm to Run: false
Notifications: Errors
Log Level: None
Number of Steps: 1
Unique ID: C40FBBB2-721B-488B-8884-4EE2641B4F23
Description:
Open a bookmarked draft in the editor.

This action will prompt you to select a draft from all drafts tagged with the “bookmarked” tag. Useful to quickly navigate to specific drafts you use often.

Meant as an example action demonstrating the use of the “Select Draft” prompt combined with a custom, temporary workspace.

To use a tag other than “bookmarked”, edit the tag variable in the ffirst line of the script.

Insert Workspace Link

Type: Action
Keyboard Shortcut:
Icon: layout-grid
Colour: none
Confirm to Run: false
Notifications: None
Log Level: None
Number of Steps: 1
Unique ID: 985CA6C8-A568-4205-8797-AFE8F2DD1BEC
Description:
Prompt to select a workspace, and Insert a [[w:Workspace]] style link to the workspace at the cursor.

Sum of all Numbers in Draft/Selection

Type: Action
Keyboard Shortcut:
Icon: 438-equals
Colour: none
Confirm to Run: false
Notifications: Errors
Log Level: All
Number of Steps: 1
Unique ID: F00DA77B-4C01-4AA1-9D7B-8E5FE1FE61E0
Description:
Calculates the sum of all numbers in the selection. If there is no selection, the entire draft is used as input.

The sum is then displayed as notification & copied to the clipboard.

Works with "." or "," as decimal seperators. Also supports with negative numbers, enabling the correct parsing of sequences like 2-4+3 as well.

Caveats: This action does not work with any kind of thousand seperator (".", ",", or space), as they would introduce ambigious cases.

Refresh Theme or Syntax

Type: Action
Keyboard Shortcut:
Icon: sync
Colour: blue
Confirm to Run: false
Notifications: Errors
Log Level: Errors
Number of Steps: 1
Unique ID: A7E4094F-4251-4AAF-8888-C1FD8B6AD680
Description:
Refresh Drafts’s current theme and syntax.

See https://www.thoughtasylum.com/2021/10/24/drafts-syntax-development-tip/ for details.

Fake Wordle

Type: Action
Keyboard Shortcut:
Icon: type-square
Colour: green
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 1F8C41BD-DA4E-48D7-B2AB-F789EE7F4A20
Description:
Extremely naive action to generate a fake Wordle result grid based on the number of guesses provided in the prompt.

FTS

Type: Action
Keyboard Shortcut:
Icon: chat
Colour: green
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 88ABEFD2-1A49-4934-934D-B444D392A8F7
Description:
Updated action to message the Family Tech Support iMessage group.

Mail ⇨ David Blue

Type: Action
Keyboard Shortcut:
Icon: action_email_filled
Colour: blue
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: DA517665-8C6D-4D75-976F-681BBB37A295
Description:

Post to WordPress

Type: Action
Keyboard Shortcut:
Icon: inkwell
Colour: none
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 0D30D414-8CB1-42AF-BC94-261FCED56AC6
Description:
Post to a WordPress site. This basic example creates a new post with “Draft” status (not published). The first time you run this action you will be prompted to enter site credentials.

WordPress - Get Recent Posts

Type: Action
Keyboard Shortcut:
Icon: send-down
Colour: none
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: A4C9888D-2490-4519-9BB7-8E09168247A1
Description:
Use WordPress API to retrieve recent posts from a WordPress blog and make a list of titles and links. Meant as an example only. More advanced options are available via additional parameters as documented in WordPress XML-RPC API docs.

WordPress - New Post

Type: Action
Keyboard Shortcut:
Icon: inkwell
Colour: green
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: 1C9453A6-D1B8-4081-BC64-1278A9E1A0B1
Description:
Create a new post on a WordPress blog using XML-RPC API through Drafts scripting. Additional options can be configured using parameters documented in Wordpress XML-RPC api docs. This example will create the post as a draft.

Box via WebDAV

Type: Action
Keyboard Shortcut:
Icon: action_box
Colour: none
Confirm to Run: false
Notifications: All
Log Level: All
Number of Steps: 1
Unique ID: DA460E0B-34FA-4A98-9C4B-40AE5F9EA2EA
Description:
This is a demo WebDAV action step, which can be configured to send to Box.com.

The first time the action is run, you will be prompted for configuration information. Complete the information as follows:

If you duplicate this action, and reconfigure it you can setup multiple actions to append/pretend/create files as needed which will share the same “Box” credentials.

More details on the Box WebDAV interface.