Created
October 29, 2013 19:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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