Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binaryage/totalfinder-osax
Scripting additions used by TotalFinder (SIMBL replacement)
https://github.com/binaryage/totalfinder-osax
finder simbl totalfinder
Last synced: 5 days ago
JSON representation
Scripting additions used by TotalFinder (SIMBL replacement)
- Host: GitHub
- URL: https://github.com/binaryage/totalfinder-osax
- Owner: binaryage
- License: other
- Created: 2010-04-27T17:14:29.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T22:01:05.000Z (over 7 years ago)
- Last Synced: 2024-11-07T14:12:23.616Z (about 2 months ago)
- Topics: finder, simbl, totalfinder
- Language: Objective-C++
- Homepage: http://totalfinder.binaryage.com
- Size: 149 KB
- Stars: 55
- Watchers: 14
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# TotalFinder.osax
This source code implements scripting additions used by [TotalFinder](http://totalfinder.binaryage.com).
**TotalFinder** is a plugin for Apples's Finder.app which brings tabs, dual panels and more!
## Is this a replacement for SIMBL?
Yes, this is SIMBL-lite tailored specifically for TotalFinder.
You might want to read this article about my motivations:
[http://blog.binaryage.com/totalfinder-without-simbl](http://blog.binaryage.com/totalfinder-without-simbl)## BATFinit event
Installs TotalFinder.bundle into running Finder.app (/Applications/TotalFinder.app is just a wrapper app for this script)
```AppleScript
tell application "Finder"
-- give Finder some time to launch if it wasn't running (rare case)
delay 1 -- this delay is important to prevent random "Connection is Invalid -609" AppleScript errors
try
«event BATFinit»
on error msg number num
display dialog "Unable to launch TotalFinder." & msg & " (" & (num as text) & ")"
end try
end tell
```## BATFchck event
Check if TotalFinder is present in running Finder image.
```AppleScript
tell application "Finder"
-- give Finder some time to launch if it wasn't running (rare case)
delay 1 -- this delay is important to prevent random "Connection is Invalid -609" AppleScript errors
try
«event BATFchck»
set res to "present"
on error msg number num
set res to "not present"
end try
res
end tell
```