Action

create raycast quicklink to open draft

Posted by @FlohGro, Last update 9 months ago

UPDATES

9 months ago

Description updated, prevent execution on iOS

created by @FlohGro / more on my Blog

macOS only

Triggers a Raycast command of the Drafts extension that will create a Raycast Quicklink to open the current draft when you open it.

Requires to have the Raycast extension for Drafts installed.


If you find this useful and want to support me you can donate or buy me a coffee

Buy Me A Coffee

Steps

  • script (macOS only)

    const title = draft.processTemplate("[[safe_title]]")
    const uuid = draft.uuid
    
    const args = {
    uuid: uuid,
    title: title
    }
    
    const encodedArgs = JSON.stringify(args)
    
    const url = "raycast://extensions/FlohGro/drafts/quicklink-creator-deeplink?arguments=" +  encodedArgs;
    
    app.openURL (url)
  • script (iOS only)

    alert("this action is not supported on iOS right now")
    context.fail("action not supported on iOS")

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.