# TF-1.6.6 on 10.9.4: Doesn\`t launch

**URL:** <https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370>\
**Category:** TotalFinder\
**Created:** [August 13, 2014, 9:55am UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370 "2014-08-13T09:55:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Florek](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/t/8e8cbc/32.png) [@Thomas\_Florek](https://discuss.binaryage.com/u/Thomas_Florek)\
**Post date:** [August 13, 2014, 9:55am UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/1 "2014-08-13T09:55:27Z")

</div>

When launching from Terminal:

> $ /Applications/TotalFinder.app/Contents/MacOS/TotalFinder  
> 2014-08-13 10:00:25.399 TotalFinder[4830:507] agent v1.6.6 started (TotalFinder)  
> 2014-08-13 10:00:25.400 TotalFinder[4830:507] Unable to acquire lock TotalFinder. Another instance of /Users/daddy/Library/Application Support/.TotalFinderAgent.lock Agent is running =\> exit

> $ /Applications/TotalFinder.app/Contents/MacOS/TotalFinder  
> 2014-08-13 10:01:41.855 TotalFinder[4845:507] agent v1.6.6 started (TotalFinder)  
> 2014-08-13 10:01:44.043 TotalFinder[4845:507] requesting injection into com.apple.finder[4826]  
> 2014-08-13 10:01:44.591 TotalFinder[4845:507] the Finder process is terminated - nothing to do

TF-1.6.3 and TF-1.6.5 working fine - reinstalled TF-1.6.3.

Greetings  
Tom

---

<div class="post-metadata">

**Author:** ![bruceclwang](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@bruceclwang](https://discuss.binaryage.com/u/bruceclwang)\
**Post date:** [August 13, 2014, 10:21am UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/2 "2014-08-13T10:21:30Z")

</div>

I have the same problem!

---

<div class="post-metadata">

**Author:** ![posburn](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/posburn/32/2668_2.png) [@posburn](https://discuss.binaryage.com/u/posburn)\
**Post date:** [August 13, 2014, 11:40am UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/3 "2014-08-13T11:40:49Z")

</div>

Very strange… I have also just experienced this. I just upgraded to TF 1.6.6 and all was working just fine until I logged out then back in again. Now I see the same error messages when running from Terminal.

I am running Yosemite beta, however, not 10.9.4

---

<div class="post-metadata">

**Author:** ![horsepower](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/h/76d3ee/32.png) [@horsepower](https://discuss.binaryage.com/u/horsepower)\
**Post date:** [August 13, 2014, 12:32pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/4 "2014-08-13T12:32:51Z")

</div>

Same problem here…after installing 1.6.6. this morning

---

<div class="post-metadata">

**Author:** ![darwin](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/darwin/32/2275_2.png) [@darwin](https://discuss.binaryage.com/u/darwin)\
**Post date:** [August 13, 2014, 12:43pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/5 "2014-08-13T12:43:20Z")

</div>

I did some changes in the launching agent. Have to review them again. Several people reported this already.

---

<div class="post-metadata">

**Author:** ![darwin](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/darwin/32/2275_2.png) [@darwin](https://discuss.binaryage.com/u/darwin)\
**Post date:** [August 13, 2014, 1:47pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/6 "2014-08-13T13:47:05Z")

</div>

Ok, guys. I have found the problem. It was introduced in 1.6.6. It will be fixed in 1.6.7.

Historically TotalFinder (and TotalTerminal) do not hook into Finder binary immediately after injection request. They give binary some time (typically 2 seconds) because of some edge-case situations for example when binary has been just lunched during startup and is busy doing window restoration or similar init operation it is not good to mess around with TotalFinder swizzling at this point.

This has been working pretty well, but there were two issues:

1. some applescript utilities expect TotalFinder to be ready after issuing injection event (not eventually after few seconds)
2. the delay was effective every time, even for injection into already running binary

In 1.6.6 I decided to make injection event instant and implement this delay logic in TotalFinder.app (agent) which is responsible for sending injection events when you launch it (or relaunch it). And also to make it smarter: agent should check how old the app is and apply delay only if the app was just launched few moments ago. This would solve both #1 and #2.

This should be working fine. But for delay I did one technical mistake. I was caching NSRunningApplication instance to reuse it later. This is not working properly. When timer fired, the instance was already in some bad state and reported that process has been terminated (but it was not).

The solution is not to cache NSRunningApplication instances, but cache plain old process identifiers and lookup NSRunningApplication instance dynamically.

---

<div class="post-metadata">

**Author:** ![darwin](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/darwin/32/2275_2.png) [@darwin](https://discuss.binaryage.com/u/darwin)\
**Post date:** [August 13, 2014, 1:53pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/7 "2014-08-13T13:53:09Z")

</div>



---

<div class="post-metadata">

**Author:** ![bssles](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/bssles/32/873_2.png) [@bssles](https://discuss.binaryage.com/u/bssles)\
**Post date:** [August 13, 2014, 6:20pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/8 "2014-08-13T18:20:18Z")

</div>

Same symptom and same console message. This is 10.9.4.

---

<div class="post-metadata">

**Author:** ![darwin](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/darwin/32/2275_2.png) [@darwin](https://discuss.binaryage.com/u/darwin)\
**Post date:** [August 13, 2014, 8:16pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/9 "2014-08-13T20:16:37Z")

</div>

Workaround should be just launch Finder.app (via Dock icon for example) and then wait and launch TotalFinder.app after few seconds.

---

<div class="post-metadata">

**Author:** ![jjulius50](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jjulius50](https://discuss.binaryage.com/u/jjulius50)\
**Post date:** [August 14, 2014, 2:41am UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/10 "2014-08-14T02:41:25Z")

</div>

The workaround did not work for me.

---

<div class="post-metadata">

**Author:** ![Thomas\_Florek](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/t/8e8cbc/32.png) [@Thomas\_Florek](https://discuss.binaryage.com/u/Thomas_Florek)\
**Post date:** [August 14, 2014, 11:19am UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/11 "2014-08-14T11:19:20Z")

</div>

Unfortunately no success here, too.

---

<div class="post-metadata">

**Author:** ![darwin](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/darwin/32/2275_2.png) [@darwin](https://discuss.binaryage.com/u/darwin)\
**Post date:** [August 14, 2014, 12:52pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/12 "2014-08-14T12:52:59Z")

</div>

Ah, too bad ☹

I have just tested it on clean machine and working workaround is to execute this line in Terminal.app:

```
osascript -e "tell application \"Finder\" to «event BATFinit»"

```

I’m going to release a new version today. Unfortunately most beta users affected by this had to downgrade or their TotalFinder is not running anymore.

I wonder how is this possible, because standard codepath should be exactly the same as in old versions.

---

<div class="post-metadata">

**Author:** ![jjulius50](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jjulius50](https://discuss.binaryage.com/u/jjulius50)\
**Post date:** [August 14, 2014, 2:28pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/13 "2014-08-14T14:28:00Z")

</div>

I can’t answer your rhetorical question, but can tell you the glitch reminded me how much I value TF.

---

<div class="post-metadata">

**Author:** ![Lai\_Natsuki](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/l/f04885/32.png) [@Lai\_Natsuki](https://discuss.binaryage.com/u/Lai_Natsuki)\
**Post date:** [August 14, 2014, 3:16pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/14 "2014-08-14T15:16:19Z")

</div>

> [@jjulius50](#):
>
> glitch

agree!! I love TF !haha I’m waiting for the new released

---

<div class="post-metadata">

**Author:** ![darwin](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/darwin/32/2275_2.png) [@darwin](https://discuss.binaryage.com/u/darwin)\
**Post date:** [August 14, 2014, 3:42pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/15 "2014-08-14T15:42:55Z")

</div>

I’m about to put 1.6.7 to beta channel:  
[http://totalfinder.binaryage.com/beta-changes#1.6.7](http://totalfinder.binaryage.com/beta-changes#1.6.7)

I tested it myself under clean 10.8, 10.9 and 10.10 systems. But I would be glad if you guys could test it too. TotalFinder should launch after installation and after next system reboot.

My conclusion is that the bug was there all the time, but it got exposed when I changed the code. For example 1.6.6 works fine under 10.8. It simply does not expose same behaviour as under 10.9 and 10.10.

---

<div class="post-metadata">

**Author:** ![posburn](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/posburn/32/2668_2.png) [@posburn](https://discuss.binaryage.com/u/posburn)\
**Post date:** [August 14, 2014, 5:04pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/16 "2014-08-14T17:04:27Z")

</div>

👍 So far, so good here. Everything seems to be working normally, even after a reboot. Thanks for the quick fix!

---

<div class="post-metadata">

**Author:** ![Thomas\_Florek](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/t/8e8cbc/32.png) [@Thomas\_Florek](https://discuss.binaryage.com/u/Thomas_Florek)\
**Post date:** [August 14, 2014, 9:36pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/17 "2014-08-14T21:36:53Z")

</div>

TF-1.6.7 again working as usual, that means simply great, on my Mountain Lion, Mavericks and Yosemite Beta installations.  
Thanks, Antonin, for your restless work and quick response.  
Tom

---

<div class="post-metadata">

**Author:** ![bssles](https://discuss.binaryage.com/user_avatar/discuss.binaryage.com/bssles/32/873_2.png) [@bssles](https://discuss.binaryage.com/u/bssles)\
**Post date:** [August 15, 2014, 2:30am UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/18 "2014-08-15T02:30:43Z")

</div>

1.6.7 Working. Thank you!

---

<div class="post-metadata">

**Author:** ![jjulius50](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jjulius50](https://discuss.binaryage.com/u/jjulius50)\
**Post date:** [August 15, 2014, 8:03pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/19 "2014-08-15T20:03:00Z")

</div>

TF 1.67 loads, but the minimize button (yellow) in the upper left hand corner does not work for me.

---

<div class="post-metadata">

**Author:** ![hahohaho](https://discuss.binaryage.com/letter_avatar_proxy/v4/letter/h/c37758/32.png) [@hahohaho](https://discuss.binaryage.com/u/hahohaho)\
**Post date:** [August 16, 2014, 1:50pm UTC](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370/20 "2014-08-16T13:50:01Z")

</div>

I have the same problem: 1.67 is fine, except the minimize button

[Next page](https://discuss.binaryage.com/t/tf-1-6-6-on-10-9-4-doesn-t-launch/2370.md?page=2)
