Drafts Action Directory

Mark Location

Posted by C Basacik, Last updated: 2018-07-04 10:13:14 UTC

Creates a draft pre-populated with a link to Google Maps with current location. Draft is tagged “places”. Best if assigned to a keyboard. This script is modified from the original - original by Greig I think.

Install

Steps

  • script

    /*
      Create new draft with template text and tag assigned.
    */
    
    // create template
    const template = `Place :  
    
    City: 
    
    `;
    
    // create the draft
    var d = Draft.create();
    d.content=template+"https://www.google.com/maps/place/"+draft.processTemplate("[[latitude]]")+","+draft.processTemplate("[[longitude]]");
    d.addTag("places");
    d.update()
    
    // load in editor
    editor.load(d);

Options

  • After Success Default
    Notification Info
    Log Level Info

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.