├── Send_To_THL.hgs └── Contents │ ├── Resources │ └── Scripts │ │ └── Send_To_THL.applescript │ └── Info.plist └── README.markdown /Send_To_THL.hgs/Contents/Resources/Scripts/Send_To_THL.applescript: -------------------------------------------------------------------------------- 1 | -- Send_To_THL.applescript 2 | -- Send_To_THL 3 | 4 | on Send_To_THL(results) 5 | using terms from application "Quick Search Box" 6 | repeat with x in results 7 | set theTask to name of x 8 | tell application "The Hit List" 9 | tell inbox to make new task with properties {title:theTask} 10 | end tell 11 | end repeat 12 | tell application "System Events" to set GrowlRun to (count of (every process whose name is "GrowlHelperApp")) > 0 13 | if GrowlRun then doGrowl(theTask) 14 | end using terms from 15 | end Send_To_THL 16 | 17 | on doGrowl(theTask) 18 | tell application "GrowlHelperApp" 19 | set the allNotificationsList to {"Task Added"} 20 | set the enabledNotificationsList to {"Task Added"} 21 | 22 | register as application "The Hit List (QSB)" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "The Hit List" 23 | notify with name "Task Added" title "The Hit List" description "Task '" & theTask & "' Added in inbox" application name "The Hit List (QSB)" 24 | end tell 25 | 26 | end doGrowl 27 | 28 | property ASDScriptUniqueIdentifier : "Send_To_THL.applescript" -------------------------------------------------------------------------------- /Send_To_THL.hgs/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.yourcompany.Send_To_THL 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | Send_To_THL 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | HGSExtensions 20 | 21 | 22 | HGSActionDirectObjectTypes 23 | text 24 | HGSAppleScriptFileName 25 | Send_To_THL 26 | HGSAppleScriptHandlerName 27 | Send_To_THL 28 | HGSExtensionClass 29 | HGSAppleScriptAction 30 | HGSExtensionIdentifier 31 | com.TheHitList.action.Send_To_THL 32 | HGSExtensionPoint 33 | HGSActionsExtensionPoint 34 | HGSExtensionUserVisibleName 35 | Add to The Hit List 36 | 37 | 38 | HGSPluginAPIVersion 39 | 2 40 | 41 | 42 | -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | thehistlist-qsb 2 | =============== 3 | 4 | A [Google Quick Search Box](http://code.google.com/p/qsb-mac/) plugin to send items to [The Hit List](http://www.potionfactory.com/thehitlist/). 5 | 6 | INSTALL 7 | ------- 8 | 9 | * Download the lastest copy of [the source](http://github.com/tylerhall/thehitlist-qsb/tree/master) using git or directly from GitHub. 10 | * Copy the plugin (the .hgs file) to `~/Application Support/Google/Quick Search Box/Plugins` 11 | 12 | You're done! 13 | 14 | UPDATES 15 | ------- 16 | 17 | Code is hosted at GitHub: [http://github.com/tylerhall/thehitlist-qsb/tree/master](http://github.com/tylerhall/thehitlist-qsb/tree/master) 18 | 19 | Feel free to fork your own copy and contribute back improvements :) 20 | 21 | LICENSE 22 | ------- 23 | 24 | The MIT License 25 | 26 | Initial code written by and reposted to GitHub with the permission of Gordon Fontenot. 27 | 28 | Permission is hereby granted, free of charge, to any person obtaining a copy 29 | of this software and associated documentation files (the "Software"), to deal 30 | in the Software without restriction, including without limitation the rights 31 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 32 | copies of the Software, and to permit persons to whom the Software is 33 | furnished to do so, subject to the following conditions: 34 | 35 | The above copyright notice and this permission notice shall be included in 36 | all copies or substantial portions of the Software. 37 | 38 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 39 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 40 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 41 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 42 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 43 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 44 | THE SOFTWARE. 45 | --------------------------------------------------------------------------------