This page contains some Launchbar actions that I wrote over the years to aid me in different situations. Perhaps they might be interesting to you, too.
Launchbar 6:
- Mojave Dark and Light Mode Actions – Switch to Dark and Light Mode in macOS Mojave
- Apple Music – Search the Apple Music library (with suggestions)
- Leo – Searches https://dict.leo.org (7 languages to and from German)
- Search DBLP – Searches DBLP computer science bibliography (with suggestions and bibtex entry copying)
- Search WolframAlpha – Searches WolframAlpha (with suggestions and result preview).
- Twitch – shows a list of followed Twitch channels for any given channel.
- Heartbleed – Checks if a website is vulnerable to heartbleed
- iTunes-Volume (1.1) – Sets the iTunes volume to a value between 0 and 100
- SystemInfo – Shows system information
- Minecraft Status – Prints how many players are on a Minecraft server
- BatteryDetails (1.2) – Shows information about the battery (ported from Alfred)
- Search DuckDuckGo.com – Searches DuckDuckGo (with suggestions)
- Search YouTube.com – Searches YouTube (with suggestions)
- Search Wikipedia DE – Searches the german Wikipedia page (with suggestions).
- Search Wikipedia FR – Searches the french Wikipedia page (with suggestions).
- Search Bing (1.1) – Searches Bing (with suggestions).
- Safari Tabs – Lists all open Safari tabs in all windows (legacy. Now integrated in LaunchBar 6.8).
LaunchBar 5:
- startTimeMachineBackup – Start your time machine backup
- stopTimeMachineBackup – Abort your time machine backup
- synciPhone – Run your iPhone synchronization in iTunes
- purge – Free unused memory. Runs purge. Can take some time
- iTunes – lower volume – Lower the volume in iTunes (not the system volume)
- iTunes – raise volume – Raise the volume in iTunes (not the system volume)
These look really interesting. Many thanks for sharing.
Thanks. I try to keep them updated. If you find any bugs, please let me know.
Really like these additions to LB 6! Question: I’ve recently started using https://duckduckgo.com . Would it be possible to make an action for LB6 similar to the Google Action that is shipping with it? That’d be ace!
Theoretically that would be possible. DuckDuckGo unfortunately misses a good suggestion API. So this would result in parsing their website (which is error-prone). You could look into the Duden example that comes with the examples to see how suggestions are done in general.
Thanks, they just updated their site with suggestions. Does that help things?
I made an action for you. It uses the suggestions call from their website. It is not officially documented. So this action might stop working any time…
Cheers! Much appreciated!
What about Youtube Live Search?
Done.
Wow. You are my hero 😉
Ok. Here is a tricky one. Live search for Facebook
This one I will probably not do. This would require OAuth and is too much work for too little gain in my opinion.
No problem.
Could you please create a action for de.wikipedia.org and rotten tomatoes?
Hi,
I’ve implemented Wikipedia DE search with suggestions. Rotten tomatoes may come later, but no promises.
Manuel
<3
I get an error when running the Safari Tabs action. It works on one of my computers, but not the other. I get this in the Console :
2014-05-25 17:05:48,152 LaunchBar[458]: NSAppleScript Error -2740: A identifier can’t go after this property. (Range: 913, 11)
Unfortunately, this error message is not very descriptive. Could you describe, when this error happens? When opening the Action, or when pressing enter on a selected entry? Which version of Safari and OS X do you use?
I have tried to fix some things. Could you load the new version and try?
Thanks, the download link does not work though. I use Safari 7.0.4 beta on both places (on Mavericks 10.9.3) , the error happens as I press the action in LaunchBar.
Will try the new version out when the link works again. Thanks for taking time to try and fix it.
The download link should work now.
Thanks tried it with no luck. I do notice that the action does not show up when I choose Safari in LB then press the right arrow. It does on the computer where it works. Also tried starting LB in DeBug Mode but I did not get anything more useful out of the Console I’m afraid.
It’s something with the computer at home, thanks for trying to solve it. I’ll reinstall the OS to see if things start working.
Ich hab auch was gebastelt: http://forums.obdev.at/viewtopic.php?f=24&t=9003
Nice. Though I would possibly split them in two actions (Toggle on and Toggle off) and check for the current state. Then it would always be clear in which state it is currently in.
Done! http://forums.obdev.at/viewtopic.php?f=24&t=9003&p=26984#p26984
Great! Mind if I put a link to it on this page?
In the Bing action suggestions.js is pointing to “wiki.png” as the icon, which results in no icon showing for results.
Argh. This copy and paste errors:(. Will be fixed soon.
Fixed.
Any chance for an Spotify playlists and/or search action?
Would be great!
I am not a Spotify user myself, but I can look into it, if this would be possible.
Great. Thank you in advance for having a look into it 🙂
Love your LB 6 actions. Specially the safari tabs!
Thanks for sharing!
Appreciated
Dirk
Thanks for the Amazon.com search action! That was one I was waiting on.
I am sorry to tell you that I didn’t write that action. But good to know that it is good. I will check it out!
I had a similar problem as the respondent on 26 May with getting the following error when trying to run safari tabs. It was not clear what the resolution was. I running the latest version of safari, mavericks, launchbar and your script. Any ideas on how to get this working?
Thanks,
Bob
2014-06-21 19:56:55.172 LaunchBar[504]: Safari Tabs (eu.weiel.action.SafariTabs): AppleScript error {
NSAppleScriptErrorBriefMessage = “Can\U2019t make URL of item 1 of {application \”Safari\”, application \”Safari\”, application \”Safari\”, application \”Safari\”, application \”Safari\”, application \”Safari\”} into type string.”;
NSAppleScriptErrorMessage = “Can\U2019t make URL of item 1 of {application \”Safari\”, application \”Safari\”, application \”Safari\”, application \”Safari\”, application \”Safari\”, application \”Safari\”} into type string.”;
NSAppleScriptErrorNumber = “-1700”;
NSAppleScriptErrorRange = “NSRange: {0, 0}”;
}
That seems to be a different issue. I will take a look into it.
This error should be fixed now in version 1.4.
“iTunes Volume” outputs an error: The script does not implement a handler named “run”.
Any ideas why is that?
I have the same error. I will investigate.
I have uploaded a fixed version. Enjoy.
Cool, thanks.
Hi,
I’m trying to use SafariTabs 1.4 on Yosemite and the latest launchbar version, like others I get an error message, I think I identified this into the console:
28/11/14 13:22:21,841 LaunchBar[15335]: Safari Tabs (eu.weiel.action.SafariTabs): AppleScript error {
NSAppleScriptErrorBriefMessage = “La variabile tabList non \U00e8 definita.”;
NSAppleScriptErrorMessage = “La variabile tabList non \U00e8 definita.”;
NSAppleScriptErrorNumber = “-2753”;
NSAppleScriptErrorRange = “NSRange: {354, 7}”;
}
Apologies for the italian bits, that should be “variable tabList is undefined”
Thanks!
andrea
Hi Manuel,
I just started using LaunchBar (Version 6.8) and I came directly across your website when looking for live searches for leo.org and YouTube. I am also looking for a live search for Google Maps but I couldn’t find any.
So I was wondering, if you are still active and how much work it would be to implement this.
Best,
Christian
Hi Christian,
writing a Google Maps action with live suggestions is relatively easy (in fact I already have written one…). Distributing it is harder though, as it requires an Google API key. And just giving it out will for sure end in exceeding the free limit of requests allowed. I might rewrite the action to prompt an API key from the user (which can be created for free). The action will then unfortunately not be just install & use anymore…
Best,
Manuel
Manuel,
while trying to come up with an own solution I came along the Google API descriptions and generated an API key as well. Perhaps you might only share your script leaving a placeholder where to enter the API key. I could create an action on my own using your script with my key. I also would love to see how you have done this.
Cheers,
Christian
Manuel,
when I tried to come up with a solution on my own, I came along the google API descriptions. I generated an API key or my personal use as well. So perhaps you might only share your script with a place holder for where to enter the API key and then I could create an action on my own using your script with my API key. I would also love to see how you have done it to learn more so that I might be able to write my own actions in future.
Cheers,
Christian
Hi Manuel,
it’s me again. Would you mind to share your Google Maps action as it is just without the API Key?
I would be really happy to have a Maps integration.
Thanks,
Christian
Thanks Manual for sharing these actions for launchbar. Just started with launchbar recently and there are many extensions I like.
Hi Manuel,
the BatteryDetails Actions seems to show strange readings at least for health, and dublicates for other values, like MaxCapacity and DesignCapacity.
I think it is due to the changed output and format of the ioreg.
Hi Manuel,
I’ve adjusted the script to the current output of macOS. Seems to work now:
CURRENT_CAPACITY=$(cat $LB_CACHE_PATH/info.txt | grep CurrentCapacity | head -1 | awk ‘{printf (“%i”, $3)}’)
MAX_CAPACITY=$(cat $LB_CACHE_PATH/info.txt | grep MaxCapacity | head -1| awk ‘{printf (“%i”, $3)}’)
DESIGN_CAPACITY=$(cat $LB_CACHE_PATH/info.txt | grep DesignCapacity | awk ‘{print substr($0, 1, length($0)-1)}’ | awk ‘{printf (“%i”, $3)}’)
Hi Manuel
I’ve been using Launchbar for years, and am always grateful when I find a useful action someone has shared.
I was wondering if you have any Launchbar actions which
– parse BibTeX file so I can paste citations into plain text documents
– search google scholar with live results
Cheers
Murray