An Alfred Workflow for Drafts

Also breaking as of this AM. Drafts 50.0.3 (740) and Doctor v.1.11.0

[12:35:57.763] Doctor Drafts[Keyword] Processing complete
[12:35:57.768] Doctor Drafts[Keyword] Passing output 'test' to Call External Trigger
[12:35:57.769] Doctor Drafts[External] Processing complete
[12:35:57.770] Doctor Drafts[External] Passing output 'test' to Arg and Vars
[12:35:57.771] Doctor Drafts[Arg and Vars] Processing complete
[12:35:57.772] Doctor Drafts[Arg and Vars] Passing output 'test' to Replace
[12:35:57.777] Doctor Drafts[Replace] Processing complete
[12:35:57.777] Doctor Drafts[Replace] Passing output 'test' to Replace
[12:35:57.778] Doctor Drafts[Replace] Processing complete
[12:35:57.779] Doctor Drafts[Replace] Passing output 'test' to Run Script
[12:35:57.850] Doctor Drafts[Run Script] Processing complete
[12:35:57.858] Doctor Drafts[Run Script] Passing output 'test' to Arg and Vars
[12:35:57.859] Doctor Drafts[Arg and Vars] Processing complete
[12:35:57.860] Doctor Drafts[Arg and Vars] Passing output 'test' to Conditional
[12:35:57.861] Doctor Drafts[Conditional] Processing complete
[12:35:57.861] Doctor Drafts[Conditional] Passing output 'test' to Arg and Vars
[12:35:57.863] Doctor Drafts[Arg and Vars] Processing complete
[12:35:57.869] Doctor Drafts[Arg and Vars] Passing output 'test' to Run Script
[12:35:57.871] Doctor Drafts[Run Script] Processing complete
[12:35:57.872] Doctor Drafts[Run Script] Passing output 'false
' to Arg and Vars
[12:35:57.873] Doctor Drafts[Arg and Vars] Processing complete
[12:35:57.874] Doctor Drafts[Arg and Vars] Passing output '' to Run Script
[12:35:58.051] ERROR: Doctor Drafts[Run Script] 751:845: execution error: Drafts got an error: Can’t make {content:"test", flagged:"false
", tag:{}} into type properties of draft. (-1700)
[12:35:58.059] Doctor Drafts[Run Script] Processing complete
[12:35:58.060] Doctor Drafts[Run Script] Passing output '' to Arg and Vars
[12:35:58.060] Doctor Drafts[Arg and Vars] Processing complete
[12:35:58.061] Doctor Drafts[Arg and Vars] Passing output '' to Call External Trigger
[12:35:58.062] Doctor Drafts[External] Processing complete
[12:35:58.062] Doctor Drafts[External] Passing output '' to Conditional
[12:35:58.063] Doctor Drafts[Conditional] Processing complete
[12:35:58.063] Doctor Drafts[Conditional] Passing output '' to Run Script
[12:35:58.064] Doctor Drafts[External] Passing output '' to Run Script
[12:35:58.064] Doctor Drafts[External] Passing output '' to Conditional
[12:35:58.070] Doctor Drafts[Conditional] Processing complete
[12:35:58.071] Doctor Drafts[Conditional] Passing output '' to Post Notification
[12:35:58.087] Doctor Drafts[Post Notification] Processing complete
[12:35:58.092] Doctor Drafts[Post Notification] No connected objects, discarding output ''
[12:35:58.093] Doctor Drafts[Run Script] Passing output '' to Replace
[12:35:58.093] Doctor Drafts[Replace] Processing complete
[12:35:58.094] Doctor Drafts[Replace] Passing output '' to Replace
[12:35:58.095] Doctor Drafts[Replace] Processing complete
[12:35:58.095] Doctor Drafts[Replace] Passing output '' to Arg and Vars
[12:35:58.096] Doctor Drafts[Arg and Vars] Processing complete
[12:35:58.096] Doctor Drafts[Arg and Vars] Passing output '' to Conditional
[12:35:58.097] Doctor Drafts[Conditional] Processing complete
[12:35:58.102] Doctor Drafts[Conditional] No connected objects, discarding output ''
[12:35:58.252] Doctor Drafts[Run Script] Processing complete
[12:35:58.256] Doctor Drafts[Run Script] Passing output '' to Call External Trigger
[12:35:58.257] Doctor Drafts[External] Processing complete
[12:35:58.258] Doctor Drafts[External] Passing output '' to Run Script
[12:35:58.332] Doctor Drafts[Run Script] Processing complete
[12:35:58.336] Doctor Drafts[Run Script] Passing output 'DO NOT CHECK|20260202|0.0.0
' to Split Arg
[12:35:58.337] Doctor Drafts[Split Arg] Processing complete
[12:35:58.338] Doctor Drafts[Split Arg] Passing output 'DO NOT CHECK|20260202|0.0.0
' to Arg and Vars
[12:35:58.338] Doctor Drafts[Arg and Vars] Processing complete
[12:35:58.485] Doctor Drafts[Arg and Vars] Passing output 'DO NOT CHECK' to Conditional
[12:35:58.486] Doctor Drafts[Conditional] Processing complete
[12:35:58.487] Doctor Drafts[Conditional] Passing output 'DO NOT CHECK' to Conditional
[12:35:58.488] Doctor Drafts[Conditional] Processing complete
[12:35:58.489] Doctor Drafts[Conditional] No connected objects, discarding output 'DO NOT CHECK'
[12:35:58.489] Doctor Drafts[Arg and Vars] Passing output 'DO NOT CHECK' to Debug
[12:35:58.490] Doctor Drafts[Debug] --drwfu start--
'DO NOT CHECK'

{allvars}
--drwfu end--
[12:35:58.490] Doctor Drafts[Debug] Processing complete
[12:35:58.491] Doctor Drafts[Debug] No connected objects, discarding output 'DO NOT CHECK'
[12:35:59.352] Doctor Drafts[Run Script] Processing complete
[12:35:59.359] Doctor Drafts[Run Script] No connected objects, discarding output ''

As noted above, I just need to find some time to take a look in detail.

That includes checking around for other potential issues, do some testingfor fixes, and then publish the changes out.

I will post back when I have had chance to do this.

1 Like

It was indeed related to the breaking change in the current beta around tags and the updated AppleScript syntax. There were a couple of places this was utilised in scripts and I have updated and tested them.

However, given this is a fix for the 50.1 release and the current public release I see in the App Store is 50.0.3, I have made it available via the Doctor Drafts site, but it is not published as the latest version so you won’t get it via the update mechanism just yet. @Ehler , I don’t understand why you would have got an error on that version if the breaking change came in for a later version, but you are welcome to try the below.

If you are running the 50.1 beta and want a copy that (hopefully) works, you should be able to use this direct link for 1.11.1 (pre release). If you are not on the beta and try using this, then you will get the same error as those on the beta got.

Thanks for flagging up the issue and do let me know if you spot anything further.


For Info: Should you ever need to revert to an older version of Doctor Drafts (e.g. if you try 1.11.1 and need to revert to 1.11.0), you can access older versions via the change log.


The AppleScript tag changes are in the 50.0.3 App Store release.

1 Like

Okay, thanks for that one - I hadn’t realised.

I’ve pushed 1.11.1 to be the latest public release version.

1 Like

Working, thank you! Very much appreciated!

1 Like