Luckily, LB6’s developer docsĪre comprehensive and useful, so I quickly figured out I needed a run handler,ĭisplay dialog "No argument was passed to the action"Īnd if you don’t need it, you can omit the return. The next step was to work out how to do this with the Pinboard bookmarklet, When I hit the run button, Safari popped up an alert boxĬontaining the URL of the page loaded in Safari’s frontmost tab. Set current_tab to the current tab of the front window Set bookmarklet to "alert(document.location)" In the Script Editor: tell application "Safari" Instead, I tried the following AppleScript snippet Launchbar’s index, and using them to open bookmarklets. In fact, the post talks about adding a folder of AppleScript files to Which is a post about opening bookmarklets using older versions of Launchbar. So I set about trying to open the bookmarklet in Safari, using AppleScript. I quickly realised that what I wanted was the popup bookmarklet listed on The current URL loaded in Safari (or Chrome, and ideally also Firefox or any The goal of my mission was to create a way to use a Launchbar action to take A step which would also give me the chance to play So, adding the ability to save bookmarks to Pinboard, using Launchbar seemed Highly-extensible launcher and general purpose app for doing things on Macs. Opting to either just search the web for sites I need to revisit, or store them in I don’t really use the bookmark functionality built into web browsers, instead This post covers my mini AppleScript adventure using Launchbar 6’s cool This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.Launchbar actions for browsing Pinboard are pretty much covered, but IĬouldn’t find any actions to save them in the way I want, so set about writing Generate an access key inside Home Assistant, and put it into the settings file. lbaction you wish to install.įor the Home Assistant scripts, save the files you wish to use into ~/Library/Application Support/LaunchBar/Actions and ensure you update your index (Opt-Cmd-R) to use them right away. InstallationĬlone the repository, and click on every. Make sure you edit the settings.json within, and see what calls are currently supported. As there is an API that can be used for this, I wrote this action to trigger a few of the calls I commonly use. While configuring, I often have to navigate through the web interface to trigger certain actions. Home Assistant is an open source home automation that puts local control and privacy first. Provide the command as a parameter and LaunchBar will open a Preview window with the manual page formatted in the usual manner. Shows the manual page for a certain command. Running the action requires an input, which is the length of the random password generated. Generates a random password using a mix of letters, numbers and dashes, and copies it to the clipboard. Opens Preview and pastes an image currently held in the system clipboard. Takes the URL of the most recently active tab in the Safari browser, opens Google Chrome, creates a new tab with the same URL. Requires you to edit default.scpt, inserting your API key for. The result is displayed 'in large type', Cmd-C copies this to the clipboard or any other key dismisses. Quickly convert currencies by entering a query in the format '# src dst' where src are currency symbols and # is the amount being converted, eg. This repository shares some of the actions I have built myself. It goes much further than the default Spotlight Search window and allows me to build my own actions on top of the existing functionality. An application installed on every single Mac I have owned since 2008, LaunchBar by Objective Development has become essential to my day.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |