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.
/* 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);
After Success Default Notification Info Log Level Info
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.