Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Steps to make Flashlight work on 10.10.4 (doesn't work for El Capitan)

Make Flashlight work on 10.10.4

  1. Install SIMBL http://culater.net/software/SIMBL/SIMBL.php
  2. Copy SpotlightSIMBL.bundle to /Library/Application Support/SIMBL/Plugins/ (a)
  3. Copy Flashlight.osax to ~/Library/ScriptingAdditions/ (b)
  4. Disable Flashlight
  5. Enable Flashlight
  6. Open Script Editor on your Mac (look for "Script Editor In Spotlight") and paste the following code (don't change Snow Leopard for Yosemite)
tell application "Spotlight" to inject SIMBL into Snow Leopard
  1. Run the script. if it worked, export it with the name "Inject SIMBL into Spotlight" or something and with file format Application (important).
  2. then go to users & Groups -> login items, select your user and press '+' and select the newly exported script.

That's it. Thanks to hufufuf for the explanation of how he did it.

(b) Flashlight.osax is in

/Applications/Flashlight.app/Contents/Library/LoginItems/FlashlightSIMBLAgent.app/Contents/PlugIns/ 

(a) SpotlightSIMBL.bundle is in

/Applications/Flashlight.app/Contents/Library/LoginItems/FlashlightSIMBLAgent.app/Contents/Resources/SIMBLPlugins/
@manuelrego27

This comment has been minimized.

Copy link

manuelrego27 commented Jul 29, 2015

Thanks a lot for your work, and to @hufufuf for figuring it out!

@evrial

This comment has been minimized.

Copy link

evrial commented Jul 29, 2015

Is that possible to make patched version of Flashlight?

@mayuroks

This comment has been minimized.

Copy link

mayuroks commented Jul 29, 2015

Will wait for the this patch to be part of Flashlight new version. Thanks a lot.

@starkshaw

This comment has been minimized.

Copy link

starkshaw commented Jul 29, 2015

When I restarted my Mac this script will not respond when my Mac boot up. I have to force quit it and re-run it. Any clue to fix this?

And kindly remind you that you messed (a) and (b).

@selaromi

This comment has been minimized.

Copy link
Owner Author

selaromi commented Jul 29, 2015

Thanks @starkshaw and everybody else! I fixed it. Mmmm what exactly is happening to you? What os version do you have?

@starkshaw

This comment has been minimized.

Copy link

starkshaw commented Jul 30, 2015

@selaromi I'm running OS X 10.10.4.
The script icon will keep remain on the Dock but if I running it manually it will exit in a jiffy.

Thinking it runs before Spotlight service, so I think delay it for about 5 seconds? I'm not familiar with Apple Script so I don't know how to implement it.

@jimcky

This comment has been minimized.

Copy link

jimcky commented Jul 30, 2015

FYI: http://blog.binaryage.com/el-capitan-update/

It seems that the mechanism added in El Capitan which prevents SIMBL reliant applications to function can be turned off in El Capitan.

With that said, it might not be a good idea to mess with the default system settings, if you don't know what you're doing. Also, Nate mentioned that some SIMBL reliant applications still work in El Capitan, hinting that there might be a way to work around the restrictions.

So let be hopeful guys!

Thanks for the excellent tutorial!

@dyenom

This comment has been minimized.

Copy link

dyenom commented Jul 30, 2015

How do I "disable" "enable" flashlight?

@jhelgert

This comment has been minimized.

Copy link

jhelgert commented Jul 31, 2015

@dyenom: In the menu bar.

Hop this helps: image

edit: Followed the instructions three times. With each try I get a "syntax error: 'Identifier' can't follow this 'Identifier' when running the AppleScript. Is there anyone who's got the same error and did solve it?.

edit2: Solved: I had flashlight.app opened while trying to run the AppleScript. After I closed it, the script worked. Thank you all to make Flashlight working again!

@dyenom

This comment has been minimized.

Copy link

dyenom commented Jul 31, 2015

Thanks. I followed the instructions, but can't get it to work.

I thought enabling/disabling was my issue but that didn't help.

@benhero

This comment has been minimized.

Copy link

benhero commented Jul 31, 2015

Thanks! It's really work.

@Maralvich

This comment has been minimized.

Copy link

Maralvich commented Jul 31, 2015

Following this instructions I get a message "syntax error: Object 'into' can not follow this object 'Identifier' " (in Russian) on step 6 (when running the AppleScript). Flashlight.app closed while running the script. What could be wrong?

@el-fuche

This comment has been minimized.

Copy link

el-fuche commented Aug 2, 2015

Thanks ! It works perfectly.

@CodeBrauer

This comment has been minimized.

Copy link

CodeBrauer commented Aug 3, 2015

Did not work for me, but I didn't used flashlight before – so I keep using alfred+spotlight combo till this is getting offical fixed.

@ghost

This comment has been minimized.

Copy link

ghost commented Aug 11, 2015

nice ,,thanku

@tsimmons

This comment has been minimized.

Copy link

tsimmons commented Aug 14, 2015

Can anyone confirm that this also works on the official release of 10.10.5?

@ghost

This comment has been minimized.

Copy link

ghost commented Aug 16, 2015

@tsimmons: Don't work for me at 10.10.5. Any suggestions?

@mstumbo

This comment has been minimized.

Copy link

mstumbo commented Aug 17, 2015

I'm having trouble getting this to work. I get as far as running the the "Inject SIMBL into Spotlight" application. The next time I use spotlight, spotlight crashes as soon as I type something. Spotlight works the second time I run it, but the Flashlight plugins do not work. Has anyone else encountered this?

@petyosi

This comment has been minimized.

Copy link

petyosi commented Aug 19, 2015

Works in 10.10.5 for me, too. No tweaks needed.

@jcislinsky

This comment has been minimized.

Copy link

jcislinsky commented Aug 19, 2015

@jendas1

This comment has been minimized.

Copy link

jendas1 commented Aug 24, 2015

I have the same problem as @mstumbo . Here is the crash log:
http://pastebin.com/tBpjFr0W

@mat1th

This comment has been minimized.

Copy link

mat1th commented Aug 26, 2015

Thanks, It works!

@tbenett

This comment has been minimized.

Copy link

tbenett commented Aug 26, 2015

Amazing thanks a lot!

@adri2906

This comment has been minimized.

Copy link

adri2906 commented Sep 5, 2015

@selaromi what about the new 10.10.5? It seems not working as the 10.10.3, can I follow the same path to install it with SIMBL?

@vhristev

This comment has been minimized.

Copy link

vhristev commented Sep 7, 2015

I make it work with 10.10.5 but it's buggy.

When it crash i need to Initiate Apple Scrip to make it work again and its crashing randomly

@BraisDosGoros

This comment has been minimized.

Copy link

BraisDosGoros commented Sep 8, 2015

Thanks, working on 10.10.5!

@itsgg

This comment has been minimized.

Copy link

itsgg commented Sep 9, 2015

Works fine in 10.10.5

@learn2reid

This comment has been minimized.

Copy link

learn2reid commented Sep 10, 2015

Worked great for me on 10.10.5! Thanks so much!

@dramaticlly

This comment has been minimized.

Copy link

dramaticlly commented Sep 17, 2015

unable to run the script "tell application "Spotlight" to inject SIMBL into Snow Leopard
"..error -> "Spotlight got an error: Can’t continue inject SIMBL into Snow Leopard." number -1708

@theRealNG

This comment has been minimized.

Copy link

theRealNG commented Sep 23, 2015

I'm also getting error
error "Spotlight got an error: Can’t continue inject SIMBL into Snow Leopard." number -1708

@shrx

This comment has been minimized.

Copy link

shrx commented Oct 3, 2015

Thanks, works for me on 10.10.5.

@uxDaniel

This comment has been minimized.

Copy link

uxDaniel commented Oct 5, 2015

For anyone getting syntax error: 'Identifier' can't follow this 'Identifier', even after closing Flashlight, restart your mac, close Flashlight again, then run the script. Tested on 10.10.5!

@teddyknox

This comment has been minimized.

Copy link

teddyknox commented Oct 15, 2015

I'm also getting error
error "Spotlight got an error: Can’t continue inject SIMBL into Snow Leopard." number -1708

@Leomund

This comment has been minimized.

Copy link

Leomund commented Oct 30, 2015

is there any way how to make it work on El Capitan?

@abrown435

This comment has been minimized.

Copy link

abrown435 commented Dec 16, 2015

Thanks! Works in 10.10.5

@ashwinb

This comment has been minimized.

Copy link

ashwinb commented Jan 25, 2016

@mstumbo, @jcislinsky: I encountered the crash as well. Looking into system.log, I found a stacktrace and a message "launch path not accessible"... I hooked up lldb, and was able to locate the issue. The path

/Library/Application Support/SIMBL/Plugins/SpotlightSIMBL.bundle/Contents/Frameworks/FlashlightKit.framework/Resources/invoke_plugin.py

is not executable and cannot be marked as executable. I just changed the permissions using sudo and everything was well :) Hope that helps.

@Maximalsnooze

This comment has been minimized.

Copy link

Maximalsnooze commented Feb 9, 2016

Great, Thank you so much!!!

@nutelina

This comment has been minimized.

Copy link

nutelina commented Apr 22, 2016

I get an error with the Script Editor on El Capitan 10.11.4 "Spotlight got an error: A privilege violation occurred." number -10004 Flashlight does seem to work but it doesn't bring up Spotlight...

@ru1996

This comment has been minimized.

Copy link

ru1996 commented Jul 31, 2016

Spotlight 1.0 (v972.34) has not been tested with the plugin SpotlightSIMBL 1.0 (v17). As a precaution, it has not been loaded. Please contact the plugin developer for further information.
What does this mean..
What can i do that?

@Krutterlax

This comment has been minimized.

Copy link

Krutterlax commented Aug 8, 2016

Please help

I dont know which link to click to install SIMBL. and what does SpotlightSIMBL.bundle mean and where can i find it?

@Krutterlax

This comment has been minimized.

Copy link

Krutterlax commented Aug 8, 2016

And where is Flashlight.osax

@SergioGeeK7

This comment has been minimized.

Copy link

SergioGeeK7 commented Mar 8, 2017

Works !!! ... the files paths are on the bottom of the guide O.o
Thanks

@Json-Luo

This comment has been minimized.

Copy link

Json-Luo commented Sep 6, 2017

thanks a lot! it works perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.