├── README.md ├── open-with.alfredworkflow └── src ├── icon.png └── info.plist /README.md: -------------------------------------------------------------------------------- 1 | Alfred "Open with..." workflow 2 | ============================== 3 | 4 | This is basically a shortcut to Alfred's "Open with..." command using a hotkey (or keyword) instead of navigating through Alfred's menu. Personally I use ^O (Ctrl+O) 5 | 6 | 7 | Install 8 | --- 9 | 10 | Download [open-with.alfredworkflow](https://github.com/cesalazar/alfred-open-with/blob/master/open-with.alfredworkflow?raw=true) and open the file using [Alfred 2](http://www.alfredapp.com/). 11 | 12 | P.S.: You need to [buy the Powerpack](https://buy.alfredapp.com/) to use this workflow. 13 | 14 | Usage 15 | --- 16 | 17 | Assign a hotkey, select a file on Finder, trigger this workflow and choose an app to open the file. 18 | 19 | **Note for homebrew-cask users:** 20 | Alfred's file filter doesn't recognize the aliases under ~/Applications/, that's why /opt/homebrew-cask-Caskroom/ is added. 21 | 22 | Credits 23 | --- 24 | 25 | This workflow is based on ["Open with Sublime Text 2"](https://github.com/franzheidl/alfred-workflows/tree/master/open-with-sublime-text-2) by Franz Heidl. 26 | 27 | Icon by Cole Bemis - 28 | License: Creative Commons (Attribution 3.0 Unported) 29 | [www.iconfinder.com/icons/227574/open_icon](www.iconfinder.com/icons/227574/open_icon) 30 | 31 | 32 | The MIT License (MIT) 33 | --- 34 | 35 | 36 | Copyright (c) 2014 Carlos E. Salazar 37 | 38 | Permission is hereby granted, free of charge, to any person obtaining a copy 39 | of this software and associated documentation files (the "Software"), to deal 40 | in the Software without restriction, including without limitation the rights 41 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 42 | copies of the Software, and to permit persons to whom the Software is 43 | furnished to do so, subject to the following conditions: 44 | 45 | The above copyright notice and this permission notice shall be included in 46 | all copies or substantial portions of the Software. 47 | 48 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 49 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 50 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 51 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 52 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 53 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 54 | THE SOFTWARE. 55 | -------------------------------------------------------------------------------- /open-with.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cesalazar/alfred-open-with/fcc31c790a14604b7dcff331ce6b70ef1846974f/open-with.alfredworkflow -------------------------------------------------------------------------------- /src/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cesalazar/alfred-open-with/fcc31c790a14604b7dcff331ce6b70ef1846974f/src/icon.png -------------------------------------------------------------------------------- /src/info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | bundleid 6 | com.cesalazar.openwith 7 | category 8 | Mine 9 | connections 10 | 11 | 16F50928-BDC7-4B37-AFE5-136487D8A62C 12 | 13 | 14 | destinationuid 15 | E7C7B2CA-5906-46F7-8788-2E1F5B006014 16 | modifiers 17 | 0 18 | modifiersubtext 19 | 20 | 21 | 22 | 5CB510DB-D353-4AF8-89FE-F89C01EA46D6 23 | 24 | E7C7B2CA-5906-46F7-8788-2E1F5B006014 25 | 26 | 27 | destinationuid 28 | 5CB510DB-D353-4AF8-89FE-F89C01EA46D6 29 | modifiers 30 | 0 31 | modifiersubtext 32 | 33 | 34 | 35 | 36 | createdby 37 | Carlos E. Salazar 38 | description 39 | Open Finder's selected file on desired app 40 | disabled 41 | 42 | name 43 | Open with... 44 | objects 45 | 46 | 47 | config 48 | 49 | action 50 | 0 51 | argument 52 | 0 53 | hotkey 54 | 31 55 | hotmod 56 | 262144 57 | hotstring 58 | O 59 | leftcursor 60 | 61 | modsmode 62 | 0 63 | relatedApps 64 | 65 | com.apple.finder 66 | 67 | relatedAppsMode 68 | 1 69 | 70 | type 71 | alfred.workflow.trigger.hotkey 72 | uid 73 | 16F50928-BDC7-4B37-AFE5-136487D8A62C 74 | version 75 | 1 76 | 77 | 78 | config 79 | 80 | applescript 81 | on alfred_script(q) 82 | 83 | set finderSelection to "" 84 | set theTarget to "" 85 | set appPath to path to application q 86 | 87 | tell application "Finder" 88 | 89 | set finderSelection to (get selection) 90 | set theTarget to finderSelection 91 | 92 | tell application "Finder" 93 | open theTarget using appPath 94 | end tell 95 | 96 | end tell 97 | 98 | end alfred_script 99 | cachescript 100 | 101 | 102 | type 103 | alfred.workflow.action.applescript 104 | uid 105 | 5CB510DB-D353-4AF8-89FE-F89C01EA46D6 106 | version 107 | 0 108 | 109 | 110 | config 111 | 112 | anchorfields 113 | 114 | daterange 115 | 0 116 | fields 117 | 118 | 119 | field 120 | kMDItemDisplayName 121 | not 122 | 123 | split 124 | 125 | value 126 | {query} 127 | words 128 | 129 | 130 | 131 | includesystem 132 | 133 | keyword 134 | openwith 135 | scopes 136 | 137 | /Applications 138 | /opt/homebrew-cask/Caskroom 139 | ~/Applications 140 | 141 | title 142 | Select an app to open this file 143 | types 144 | 145 | com.apple.application-bundle 146 | public.symlink 147 | 148 | withspace 149 | 150 | 151 | type 152 | alfred.workflow.input.filefilter 153 | uid 154 | E7C7B2CA-5906-46F7-8788-2E1F5B006014 155 | version 156 | 0 157 | 158 | 159 | readme 160 | This workflow is based on "Open with Sublime Text 2" by Franz Heidl 161 | www.franzheidl.de 162 | 163 | Icon by Cole Bemis 164 | License: Creative Commons (Attribution 3.0 Unported) 165 | www.iconfinder.com/icons/227574/open_icon 166 | 167 | ==== 168 | 169 | Open selected file on any program. This basically is a shortcut to Alfred's "Open with..." command using a hotkey instead of navigating through Alfred's menu. 170 | 171 | Usage: 172 | Assign a Hotkey, select a file on Finder and choose an app to open the file. 173 | 174 | Note for homebrew-cask users: 175 | File filter doesn't recognize the aliases under ~/Applications/, that's why /opt/homebrew-cask-Caskroom/ is added. 176 | uidata 177 | 178 | 16F50928-BDC7-4B37-AFE5-136487D8A62C 179 | 180 | ypos 181 | 150 182 | 183 | 5CB510DB-D353-4AF8-89FE-F89C01EA46D6 184 | 185 | ypos 186 | 150 187 | 188 | E7C7B2CA-5906-46F7-8788-2E1F5B006014 189 | 190 | ypos 191 | 150 192 | 193 | 194 | webaddress 195 | 196 | 197 | 198 | --------------------------------------------------------------------------------