Drafts 50.0.3 is out! Minor breaking AppleScript change and fixes

Drafts 50.0.3 has been released:

Details below. For a complete history of updates, visit the release notes.

50.0.3

This release brings a number of AppleScript changes to better support integration with the Model Context Protocol server. If you are interested in using Drafts with Claude or other MCP-supporting tools, see details on MCP server release in the forums.

  • AppleScript Changes
    • Breaking Change: tags on drafts in AppleScript have been renamed to tag list (array of strings). This was necessary to avoid naming conflicts with the addition of top-level tag objects. So, if you have AppleScript code that queries or sets tags on a draft, they will need to be modified, so something like make new draft with properties {tags:{"blue"}} needs to change the property to {tag list:{"blue"}}
    • New: Add “tag names” string property to draft. This returns assigned tags as a comma-separate string.
    • New: Add “query tag names” string property to draft. This returns assigned tags as a string, with each tag wrapped with a delimiter like “#tag-name#” - this is a bit hacky, but useful for some types of “whose” clauses in AppleScript, which don’t always handle things nicely when dealing with arrays. So you can more reliably do a query like set myDrafts to drafts whose query tag names contain "#tag-name#"
    • New(Mac): Add top level tag object to AppleScript. You can use every tag or tags to get all unique tags defined, and they have drafts that expose drafts that are assigned that tag…so you can do things like set myDrafts to drafts of tag "test"
  • Fix: Crash filtering action logs by status in Shortcuts.

50.0.2

  • Change(Mac): Rename “creation date” and “modification date” properties of draft in AppleScript to better match Apple’s naming for properties.
  • New(Mac): Add creation and modification location information to draft returned in AppleScript.
  • Change(Mac): Better handling of “current” workspace objects in AppleScript.
  • Fix(Mac): Crash using the “Is Flagged” filter on “Find Drafts” action in Shortcuts.
  • Fix(Mac): In AppleScript, tags could be queried, but were not getting coerced properly for get/set operations.
  • Fix: “get current draft” in AppleScript fails if there’s a new blank draft in the editor.
  • Change(iOS): Better handle selection of multiple drafts in VoiceOver.
  • Fix(iOS): Allow selection of default themes without Pro features enabled.
1 Like

On iOS in shortcuts when I use the create draft action and update draft action I can’t type in the tags field. Whatever I enter immediately vanishes.

That’s a Shortcuts bug. It affects all parameters that take multiple values.

You can workaround by:

  1. Using the “Edit Draft” action after you create the draft to set it’s tags
  2. Create a “Text” action that holds tag name you want to assign, and select it as a variable value in the Tags entry of the “Create Draft” action.
1 Like