bfoz / GitXButton

A Finder toolbar button to open GitX for the front Finder window
3 stars 0 forks source link

error "GitX got an error: Connection is invalid." number -609 #1

Open Kronuz opened 13 years ago

Kronuz commented 13 years ago

The button is throwing an exception when I close GitX: error "GitX got an error: Connection is invalid." number -609

I'm using Mac OS X Lion

Kronuz commented 13 years ago

Sort of fixed it using this script... however the GitXButton still remains open the whole time I have GitX open:


(*
Simple Finder Toolbar Script to open GitX for the front Finder window
Copyright 2010 Brandon Fosdick <bfoz@bfoz.net> (Public Domain)
*)

tell application "Finder" to set thisFolder to (target of front window) as Unicode text

tell application "GitX"
    activate
    try
        open thisFolder
    end try
end tell
bfoz commented 13 years ago

I don't have Lion yet so I can't really test this yet. But I'll get to your patch as soon as I can.