Skip to content

Instantly share code, notes, and snippets.

@jkishner
Created October 29, 2013 19:47
Show Gist options
  • Save jkishner/7221316 to your computer and use it in GitHub Desktop.
Save jkishner/7221316 to your computer and use it in GitHub Desktop.
use this script in Fargo on a headline containing a band/musician name. the script will insert (as a child) a link to that band on music-map.com
convert to Music-Map
var band = op.getLineText();
band = band.trim();
var newband = band.replace(" ","+");
var link = 'http://www.music-map.com/' + newband + '.html';
op.insert('Music-Map',right);
op.attributes.setOne("type","link");
op.attributes.setOne("url",link);
op.attributes.setOne("icon","map-marker");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment