Topic: https://brettterpstra.com/2012/10/16/searchlink-automated-markdown-linking-improved/
hide preview

What's next? verify your email address for reply notifications!

Paul 12y, 115d ago

Thinking of installing this, as it's useful in my workflow. I don't have anything weird installed on my system for ruby ... but sudo gem install json gives me:


xcrun: Error: could not stat active Xcode path '/Applications/Xcode.app/Contents/Developer'. (No such file or directory)


Which part of XCode do I need to install? I'm on a MacBook Air, so a workaround would be great without the huge download that is Xcode ...
Cheers

hide preview

What's next? verify your email address for reply notifications!

Behinder 12y, 134d ago

It's very cool. It worked but now it stopped for unknown reason when run from Textmate :( it's like automator rule error

hide preview

What's next? verify your email address for reply notifications!

Josh Dick 12y, 144d ago

Very cool, thanks for sharing this!

For what it's worth, I was able to modify the Automator workflow to use rvm's default ruby instead of the system ruby by changing the shell to /bin/zsh (bash should work also), moving all of the ruby code to an external file called "SearchLink.rb", and changing the script contents to:

[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
ruby ~/path/to/SearchLink.rb
remark link
hide preview

What's next? verify your email address for reply notifications!

Enno 12y, 143d ago

Brett: thanks so much for making my life a whole lot easier.

Josh: you kick ass. Thanks for this solution. I couldn't find out how to use the system's ruby since I rely on RVM forever. Outsourcing the actual ruby Scripts fits better into my workflow anyway. So, once again, thank you for making this work for me.

remark link parent
hide preview

What's next? verify your email address for reply notifications!

Josh Dick 12y, 143d ago

No problem! I just don't like the idea of installing gems into the system ruby for some reason; I'd rather just leave it untouched.

hide preview

What's next? verify your email address for reply notifications!

Phil 12y, 154d ago

Thanks, Brett! This is awesome and will save me loads of time coding MD links for blog posts. Any chance for Amazon music links, complete with affiliate codes?

Thanks again!

hide preview

What's next? verify your email address for reply notifications!