Login

General

Webpage Selection to Snippets App

I really like the Snippets application and wanted an easy way to select some code on a webpage and insert that into Snippets. I also wanted to add the author, link, title, highlight style, license, notes and have the ability to edit the text before sending to Snippets.

Snippets has a URI-scheme of "snippet:add?code=" with several more options. This looked like what I needed so I started here. I created the JavaScript code below to use as a bookmark and then wrote a php page to handle the information gathered from the current page.
javascript:window.open("http://allancraig.net/Snippets/snippet.php?title="+encodeURIComponent(document.title)+"&code="+encodeURIComponent(window.getSelection())+"&link="+window.location, "createsnippet", "height=775,width=585,status=0,toolbar=0,menubar=0,location=0");

 

Vienna Plugin for Tweetie

Vienna 2.5 beta has a new plugin feature. You can read the plugin documentation here. It uses a plist file to configure the plugin so it is fairly simple to implement.

Vienna 2.5 comes with a Twitter plugin already installed as an example. This example uses the link plugin style which launches a webview where you access your Twitter account. This is a great example and will work for many. For my purposes, I prefer to use the excellent Tweetie application. Tweetie has a build-in url-scheme that you can use as a bookmark in your web browser or, as I am about to show, from an AppleScript.
   

Using Dropbox with GIT

This is an excellent article on using GIT with Dropbox. Talk about making collaboration easy!
   

AppKiDo

If you are not using AppKiDo then go download it and give it a try. Searching the Objective-C documentation has never been this easy. Quickly see all the inherited methods on a class! There is also an iPhone version.
   

Snippets

I have been looking for a good code snippet manager for a long time but now my wait is over. Snippets is an elegant, excellent and intuitive application. Check it out at SnippetsApp.com
   

Page 1 of 3

 

Product Categories