Ready for more? Refer to the HoudahSpot User Guide for more details on the different parameters supported by the houdahspot4:// URL scheme. Not working? Download the Search Mail Messages action and compare it to your version. When we later use the action and type “Steve Jobs” in LaunchBar, the script will build and open the following URL: houdahspot4://search?q=Steve%20Jobs&t=~/Library/Application%20Support/4/Sample%20Templates%20HS5/Apple%20Mail%20Messages.hstemplate Ready to UseĬlose the Action Editor and give your new action a try: Open location "houdahspot4://search?q=" & urlEncode(theString) & "&t=" & urlEncode("~/Library/Application Support/4/Sample Templates HS6/Apple Mail Messages.hstemplate") Our script now reads: on handle_string(theString) This encodes spaces and other special characters in a form that is safe to include in URLs. The script conveniently already includes a way of URL-encoding parameter values. We will point our script at that template. HoudahSpot includes a sample template to search Apple Mail messages. The value of this parameter is the path of the template we want to use. We will add a t or template parameter to make HoudahSpot use a search template instead of the default setup. The URL currently uses only one parameter: q or query. You may have customized your default setup to search only names or text content. name, text content, author, tags, etc.) of files. With the factory default setup, this searches any text attribute (e.g. HoudahSpot then searches for files matching the text you have entered. This makes HoudahSpot open a new window with the text inserted in the main search field. The script builds a URL that includes the text entered in LaunchBar. Searching for files – in this case, Apple Mail messages – uses the handle_string portion of the script. We will modify the AppleScript that was copied from the original action. A Bit of AppleScriptĬlick the Edit button. Here you configure the script that will run when you invoke the action. You may also want to update the summary, version, and other information in the General tab. Typing this abbreviation in LaunchBar will bring up the action. Create a copy of the HoudahSpot LaunchBar action: Search Apple Mail MessagesĪssign a new abbreviation. Name the new action: Search Mail Messages. Use the File > Duplicate Action command to create a copy of the action. Select the Search HoudahSpot action that you have previously installed from HoudahSpot > Preferences > Extensions. In LaunchBar, select Launch Bar > Action Editor… from the menu. Start by opening the LaunchBar Action Editor. For this post, we will adapt the LaunchBar action search Apple Mail messages. You can create versions of the action that instead use one of your search templates. Custom Action: Search Apple Mail Messages The LaunchBar action installed by HoudahSpot uses your default search setup: the search criteria, location, result columns, and sort order that you have defined as the default for new windows. The action will open a new HoudahSpot search focussed on the selected location. Select the action in LaunchBar and press the return key. The action alternatively accepts a folder location. The action will start a HoudahSpot search with the text. Select the action in LaunchBar and press the space key to start entering text. The action is selected by typing the hs abbreviation in LaunchBar. You can install this action from HoudahSpot > Preferences > Extensions. HoudahSpot 5 includes a LaunchBar action that provides an elegant way to start a HoudahSpot search using LaunchBar. It takes the guesswork out of Spotlight searches and helps you find files hidden deep in the “haystack” of files accumulated over the years. HoudahSpot is a powerful file search tool. Objective Development’s LaunchBar is an adaptive app launcher, document browser, and much more.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |