Prettier GUI Git on OSX

Posted January 21, 2009

Found GitX and OpenInGitGui today, but OpenInGitGui didn't play well with GitX.  Wth a little hackery it can be friendly.

OpenInGitGui.app/Contents/Resources/Scripts/main.scpt in Script Editor and paste this

-- Based loosely on http://snippets.dzone.com/posts/show/1037
-- script was clicked
on run
  tell application "Finder"
    set finderSelection to POSIX path of (the folder of the front window as alias)
    #  set finderSelection to folder of the front window as string
  end tell
	
  gitgui(finderSelection)
end run
on gitgui(listOfAliases)
  tell application "GitX"
    open listOfAliases
    activate
  end tell
end gitgui

 

Comments

0hai u haz a blog!

I would be pretty excited about this if I had an iMac at the office...

Cheers!

Displaying 1 comment

Add comment

Music

Eclipseby The Flaming Lips & Stardeath And White Dwarfs feat. Henry RollinsPlayed on 2012/05/02 at 01:20PM
Brain Damageby Stardeath and White Dwarfs feat. Henry RollinsPlayed on 2012/05/02 at 01:15PM
Any Colour You Likeby The Flaming Lips & Stardeath And White DwarfsPlayed on 2012/05/02 at 01:12PM
Us and Themby The Flaming Lips feat. Henry RollinsPlayed on 2012/05/02 at 01:04PM
Moneyby The Flaming Lips feat. Henry RollinsPlayed on 2012/05/02 at 12:59PM