├── docs └── assets │ ├── automator-install.png │ └── Ansible-Vault-Automator.gif ├── services ├── Ansible-Vault | Edit.workflow │ └── Contents │ │ ├── QuickLook │ │ └── Preview.png │ │ ├── Info.plist │ │ └── document.wflow ├── Ansible-Vault | Decrypt.workflow │ └── Contents │ │ ├── QuickLook │ │ └── Preview.png │ │ ├── Info.plist │ │ └── document.wflow └── Ansible-Vault | Encrypt.workflow │ └── Contents │ ├── QuickLook │ └── Preview.png │ ├── Info.plist │ └── document.wflow ├── scripts ├── encrypt-password-confirmation.applescript ├── decrypt-password-confirmation.applescript ├── edit.applescript ├── decrypt.sh └── encrypt.sh ├── LICENSE └── README.md /docs/assets/automator-install.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serversideup/ansible-vault-automator/HEAD/docs/assets/automator-install.png -------------------------------------------------------------------------------- /docs/assets/Ansible-Vault-Automator.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serversideup/ansible-vault-automator/HEAD/docs/assets/Ansible-Vault-Automator.gif -------------------------------------------------------------------------------- /services/Ansible-Vault | Edit.workflow/Contents/QuickLook/Preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serversideup/ansible-vault-automator/HEAD/services/Ansible-Vault | Edit.workflow/Contents/QuickLook/Preview.png -------------------------------------------------------------------------------- /services/Ansible-Vault | Decrypt.workflow/Contents/QuickLook/Preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serversideup/ansible-vault-automator/HEAD/services/Ansible-Vault | Decrypt.workflow/Contents/QuickLook/Preview.png -------------------------------------------------------------------------------- /services/Ansible-Vault | Encrypt.workflow/Contents/QuickLook/Preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serversideup/ansible-vault-automator/HEAD/services/Ansible-Vault | Encrypt.workflow/Contents/QuickLook/Preview.png -------------------------------------------------------------------------------- /scripts/encrypt-password-confirmation.applescript: -------------------------------------------------------------------------------- 1 | on run {input, parameters} 2 | 3 | set x to the text returned of (display dialog "Enter password to encrypt file(s):" default answer "" buttons {"OK"} default button 1) 4 | 5 | return x 6 | end run -------------------------------------------------------------------------------- /scripts/decrypt-password-confirmation.applescript: -------------------------------------------------------------------------------- 1 | on run {input, parameters} 2 | 3 | set password to the text returned of (display dialog "Enter password to decrypt file(s):" default answer "" buttons {"OK"} default button 1) 4 | 5 | return password 6 | end run -------------------------------------------------------------------------------- /scripts/edit.applescript: -------------------------------------------------------------------------------- 1 | on run {input, parameters} 2 | set completedItems to {} 3 | repeat with f in input 4 | set f to (f as text) 5 | tell application "Terminal" to do script "ansible-vault edit " & quoted form of POSIX path of f 6 | set completedItems to (completedItems & f) --mark off items that are already completed 7 | end repeat 8 | activate application "Terminal" 9 | end run -------------------------------------------------------------------------------- /scripts/decrypt.sh: -------------------------------------------------------------------------------- 1 | ## DECRYPT - Automator will pass the selected finder items to this shell script 2 | ## with the preferred password from the user. It will encrypt all files 3 | ## with the same password. 4 | 5 | #Include bin files so ansible-vault is accessible 6 | export PATH=/usr/local/bin:$PATH 7 | 8 | #For each selected file, decrypt it with the user's password 9 | for file in "${@:2}"; 10 | do 11 | expect -c " 12 | set timeout -1 13 | spawn ansible-vault decrypt \"$file\" 14 | expect \"Vault password:\" 15 | # Send password aka $1 16 | send -- \"$1\r\" 17 | expect eof 18 | " 19 | done -------------------------------------------------------------------------------- /scripts/encrypt.sh: -------------------------------------------------------------------------------- 1 | ## ENCRYPT - Automator will pass the selected finder items to this shell script 2 | ## with the preferred password from the user. It will encrypt all files 3 | ## with the same password. 4 | 5 | #Include bin files so ansible-vault is accessible 6 | export PATH=/usr/local/bin:$PATH 7 | 8 | #For each selected file, encrypt it with the user's password 9 | for file in "${@:2}"; 10 | do 11 | expect -c " 12 | set timeout -1 13 | spawn ansible-vault encrypt \"$file\" 14 | expect \"Vault password:\" 15 | # Send password aka $1 16 | send -- \"$1\r\" 17 | expect \"Confirm Vault password:\" 18 | send -- \"$1\r\" 19 | expect eof 20 | " 21 | done -------------------------------------------------------------------------------- /services/Ansible-Vault | Edit.workflow/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSServices 6 | 7 | 8 | NSMenuItem 9 | 10 | default 11 | Ansible-Vault | Edit 12 | 13 | NSMessage 14 | runWorkflowAsService 15 | NSRequiredContext 16 | 17 | NSApplicationIdentifier 18 | com.apple.finder 19 | 20 | NSSendFileTypes 21 | 22 | public.item 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /services/Ansible-Vault | Decrypt.workflow/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSServices 6 | 7 | 8 | NSMenuItem 9 | 10 | default 11 | Ansible-Vault | Decrypt 12 | 13 | NSMessage 14 | runWorkflowAsService 15 | NSRequiredContext 16 | 17 | NSApplicationIdentifier 18 | com.apple.finder 19 | 20 | NSSendFileTypes 21 | 22 | public.item 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /services/Ansible-Vault | Encrypt.workflow/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSServices 6 | 7 | 8 | NSMenuItem 9 | 10 | default 11 | Ansible-Vault | Encrypt 12 | 13 | NSMessage 14 | runWorkflowAsService 15 | NSRequiredContext 16 | 17 | NSApplicationIdentifier 18 | com.apple.finder 19 | 20 | NSSendFileTypes 21 | 22 | public.item 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 521 Dimensions 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ansible-Vault Automator 2 | Easily encrypt, edit, and decrypt files through Finder (rather than command line). When you choose to edit an encrypted file, you can edit it directly in Sublime Text 3 instead of `nano` or `vim`. 3 | 4 | [![Ansible-Vault Automator](docs/assets/Ansible-Vault-Automator.gif)](https://raw.githubusercontent.com/521dimensions/ansible-vault-automator/master/docs/assets/Ansible-Vault-Automator.gif) 5 | 6 | ## Requirements 7 | Before you get too excited, you neeed to do the following things: 8 | 9 | #### 1. Install the Automator Files from `services` folder 10 | **A. Download this repo an double click on each Automator file in the services folder** 11 | 12 | **B. Choose "Install"** 13 | ![Automator Install](docs/assets/automator-install.png) 14 | 15 | #### 2. Configure Sublime Text 3 as your default text editor (optional) 16 | From adopting things from [Sublime 3's documentation](https://www.sublimetext.com/docs/3/osx_command_line.html), run the following commands to set Sublime Text 3 as your default text editor. 17 | 18 | **A. Open Terminal and create link in `/usr/bin`** 19 | 20 | ```shell 21 | sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/bin 22 | ``` 23 | 24 | You will need to enter your computer password to allow `sudo` permissions. 25 | 26 | **B. Add variable to bash profile to set Sublime Text 3 as your default editor** 27 | 28 | In terminal, open your bash profile by running `nano ~/.bash_profile` and add this line anywhere in that document: 29 | 30 | ```shell 31 | export EDITOR='subl -w' 32 | ``` 33 | Press ``CTRL+O`` (that's CTRL-"OH" -- not zero) then ``CTRL+X`` to exit. 34 | 35 | # To Do & Wish List 36 | The following items are things that I will be working on, unless if there are higher priorities in the issues: 37 | 38 | 1. Add handlers - it would be good to add dialog boxes when it is completes or runs into an error 39 | 2. Hide and confirm password upon entry 40 | 3. Implement a way where the terminal isn't required for editing 41 | 42 | # Legal Stuff & License 43 | 44 | The MIT License (MIT) 45 | 46 | Copyright (c) 2015 521 Dimensions 47 | 48 | Permission is hereby granted, free of charge, to any person obtaining a copy 49 | of this software and associated documentation files (the "Software"), to deal 50 | in the Software without restriction, including without limitation the rights 51 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 52 | copies of the Software, and to permit persons to whom the Software is 53 | furnished to do so, subject to the following conditions: 54 | 55 | The above copyright notice and this permission notice shall be included in all 56 | copies or substantial portions of the Software. 57 | 58 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 59 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 60 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 61 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 62 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 63 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 64 | SOFTWARE. 65 | -------------------------------------------------------------------------------- /services/Ansible-Vault | Edit.workflow/Contents/document.wflow: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AMApplicationBuild 6 | 409.1 7 | AMApplicationVersion 8 | 2.5 9 | AMDocumentVersion 10 | 2 11 | actions 12 | 13 | 14 | action 15 | 16 | AMAccepts 17 | 18 | Container 19 | List 20 | Optional 21 | 22 | Types 23 | 24 | com.apple.cocoa.path 25 | 26 | 27 | AMActionVersion 28 | 2.1.1 29 | AMApplication 30 | 31 | Finder 32 | 33 | AMParameterProperties 34 | 35 | AMProvides 36 | 37 | Container 38 | List 39 | Types 40 | 41 | com.apple.cocoa.path 42 | 43 | 44 | AMRequiredResources 45 | 46 | ActionBundlePath 47 | /System/Library/Automator/Get Selected Finder Items 2.action 48 | ActionName 49 | Get Selected Finder Items 50 | ActionParameters 51 | 52 | BundleIdentifier 53 | com.apple.Automator.Get_Selected_Finder_Items_2 54 | CFBundleVersion 55 | 2.1.1 56 | CanShowSelectedItemsWhenRun 57 | 58 | CanShowWhenRun 59 | 60 | Category 61 | 62 | AMCategoryFilesAndFolders 63 | 64 | Class Name 65 | AMGetSelectedFinderItemsAction 66 | IgnoresInput 67 | 68 | InputUUID 69 | A3F6063F-8435-4F31-BB7A-C7C5EFB08D18 70 | Keywords 71 | 72 | OutputUUID 73 | 21DF63DB-2A38-4366-9C5D-A5EEF2B26123 74 | UUID 75 | C2EA77F3-2F99-4A40-B685-B0FC5D212A92 76 | UnlocalizedApplications 77 | 78 | Finder 79 | 80 | arguments 81 | 82 | 83 | 84 | 85 | action 86 | 87 | AMAccepts 88 | 89 | Container 90 | List 91 | Optional 92 | 93 | Types 94 | 95 | * 96 | 97 | 98 | AMActionVersion 99 | v.1.0.2 100 | AMApplication 101 | 102 | Automator 103 | 104 | AMParameterProperties 105 | 106 | variableUUID 107 | 108 | isPathPopUp 109 | 110 | selectedVariableUUID 111 | 06FBFC20-0D62-40B6-8199-D66999BC7743 112 | 113 | 114 | AMProvides 115 | 116 | Container 117 | List 118 | Types 119 | 120 | * 121 | 122 | 123 | AMRequiredResources 124 | 125 | ActionBundlePath 126 | /System/Library/Automator/Set Value of Variable.action 127 | ActionName 128 | Set Value of Variable 129 | ActionParameters 130 | 131 | variableUUID 132 | 06FBFC20-0D62-40B6-8199-D66999BC7743 133 | 134 | BundleIdentifier 135 | com.apple.Automator.Set_Value_of_Variable 136 | CFBundleVersion 137 | 1.0.2 138 | CanShowSelectedItemsWhenRun 139 | 140 | CanShowWhenRun 141 | 142 | Category 143 | 144 | AMCategoryUtilities 145 | 146 | Class Name 147 | Set_Value_of_Variable 148 | InputUUID 149 | DB9F29FA-5E6B-468B-A3EA-EDE59F964EFA 150 | Keywords 151 | 152 | variable 153 | binding 154 | input 155 | output 156 | storage 157 | 158 | OutputUUID 159 | F0B750B1-4BC0-49E2-9195-743C7DC5A0F3 160 | StartAction 161 | 162 | UUID 163 | 23C71370-D874-4731-A7FF-482C90B32D5B 164 | UnlocalizedApplications 165 | 166 | Automator 167 | 168 | arguments 169 | 170 | 0 171 | 172 | default value 173 | 174 | name 175 | variableUUID 176 | required 177 | 0 178 | type 179 | 0 180 | uuid 181 | 0 182 | 183 | 184 | isViewVisible 185 | 186 | location 187 | 769.000000:474.000000 188 | nibPath 189 | /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib 190 | 191 | isViewVisible 192 | 193 | 194 | 195 | action 196 | 197 | AMAccepts 198 | 199 | Container 200 | List 201 | Optional 202 | 203 | Types 204 | 205 | com.apple.applescript.object 206 | 207 | 208 | AMActionVersion 209 | 1.0.2 210 | AMApplication 211 | 212 | Automator 213 | 214 | AMParameterProperties 215 | 216 | source 217 | 218 | 219 | AMProvides 220 | 221 | Container 222 | List 223 | Types 224 | 225 | com.apple.applescript.object 226 | 227 | 228 | ActionBundlePath 229 | /System/Library/Automator/Run AppleScript.action 230 | ActionName 231 | Run AppleScript 232 | ActionParameters 233 | 234 | source 235 | on run {input, parameters} set completedItems to {} repeat with f in input set f to (f as text) tell application "Terminal" to do script "ansible-vault edit " & quoted form of POSIX path of f set completedItems to (completedItems & f) --mark off items that are already completed end repeat activate application "Terminal" end run 236 | 237 | BundleIdentifier 238 | com.apple.Automator.RunScript 239 | CFBundleVersion 240 | 1.0.2 241 | CanShowSelectedItemsWhenRun 242 | 243 | CanShowWhenRun 244 | 245 | Category 246 | 247 | AMCategoryUtilities 248 | 249 | Class Name 250 | RunScriptAction 251 | InputUUID 252 | 172AABED-C368-4E93-9534-487DA1D696D1 253 | Keywords 254 | 255 | Run 256 | 257 | OutputUUID 258 | A6314B6B-FE57-435F-98F4-3A8A3BB07D90 259 | StartAction 260 | 261 | UUID 262 | 83434B76-B6F7-4865-B493-2BE7FB659E6E 263 | UnlocalizedApplications 264 | 265 | Automator 266 | 267 | arguments 268 | 269 | 0 270 | 271 | default value 272 | on run {input, parameters} 273 | 274 | (* Your script goes here *) 275 | 276 | return input 277 | end run 278 | name 279 | source 280 | required 281 | 0 282 | type 283 | 0 284 | uuid 285 | 0 286 | 287 | 288 | isViewVisible 289 | 290 | location 291 | 769.000000:900.000000 292 | nibPath 293 | /System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib 294 | 295 | isViewVisible 296 | 297 | 298 | 299 | connectors 300 | 301 | 597157FD-C9F5-48B5-9B40-4F087C1A45B9 302 | 303 | from 304 | C2EA77F3-2F99-4A40-B685-B0FC5D212A92 - C2EA77F3-2F99-4A40-B685-B0FC5D212A92 305 | to 306 | 23C71370-D874-4731-A7FF-482C90B32D5B - 23C71370-D874-4731-A7FF-482C90B32D5B 307 | 308 | 81A7495D-B125-4C6D-8A4E-337B44F584AB 309 | 310 | from 311 | 23C71370-D874-4731-A7FF-482C90B32D5B - 23C71370-D874-4731-A7FF-482C90B32D5B 312 | to 313 | 83434B76-B6F7-4865-B493-2BE7FB659E6E - 83434B76-B6F7-4865-B493-2BE7FB659E6E 314 | 315 | 316 | variables 317 | 318 | 319 | UUID 320 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 321 | identifier 322 | com.apple.Automator.Variable.Text 323 | name 324 | VaultPassword 325 | value 326 | password 327 | 328 | 329 | UUID 330 | 06FBFC20-0D62-40B6-8199-D66999BC7743 331 | identifier 332 | com.apple.Automator.Variable.Storage 333 | name 334 | SelectedFinderItems 335 | 336 | 337 | workflowMetaData 338 | 339 | serviceApplicationBundleID 340 | com.apple.finder 341 | serviceApplicationPath 342 | /System/Library/CoreServices/Finder.app 343 | serviceInputTypeIdentifier 344 | com.apple.Automator.fileSystemObject 345 | serviceOutputTypeIdentifier 346 | com.apple.Automator.nothing 347 | serviceProcessesInput 348 | 0 349 | workflowTypeIdentifier 350 | com.apple.Automator.servicesMenu 351 | 352 | 353 | 354 | -------------------------------------------------------------------------------- /services/Ansible-Vault | Decrypt.workflow/Contents/document.wflow: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AMApplicationBuild 6 | 409.1 7 | AMApplicationVersion 8 | 2.5 9 | AMDocumentVersion 10 | 2 11 | actions 12 | 13 | 14 | action 15 | 16 | AMAccepts 17 | 18 | Container 19 | List 20 | Optional 21 | 22 | Types 23 | 24 | com.apple.cocoa.path 25 | 26 | 27 | AMActionVersion 28 | 2.1.1 29 | AMApplication 30 | 31 | Finder 32 | 33 | AMParameterProperties 34 | 35 | AMProvides 36 | 37 | Container 38 | List 39 | Types 40 | 41 | com.apple.cocoa.path 42 | 43 | 44 | AMRequiredResources 45 | 46 | ActionBundlePath 47 | /System/Library/Automator/Get Selected Finder Items 2.action 48 | ActionName 49 | Get Selected Finder Items 50 | ActionParameters 51 | 52 | BundleIdentifier 53 | com.apple.Automator.Get_Selected_Finder_Items_2 54 | CFBundleVersion 55 | 2.1.1 56 | CanShowSelectedItemsWhenRun 57 | 58 | CanShowWhenRun 59 | 60 | Category 61 | 62 | AMCategoryFilesAndFolders 63 | 64 | Class Name 65 | AMGetSelectedFinderItemsAction 66 | IgnoresInput 67 | 68 | InputUUID 69 | A3F6063F-8435-4F31-BB7A-C7C5EFB08D18 70 | Keywords 71 | 72 | OutputUUID 73 | 21DF63DB-2A38-4366-9C5D-A5EEF2B26123 74 | UUID 75 | C2EA77F3-2F99-4A40-B685-B0FC5D212A92 76 | UnlocalizedApplications 77 | 78 | Finder 79 | 80 | arguments 81 | 82 | 83 | 84 | 85 | action 86 | 87 | AMAccepts 88 | 89 | Container 90 | List 91 | Optional 92 | 93 | Types 94 | 95 | * 96 | 97 | 98 | AMActionVersion 99 | v.1.0.2 100 | AMApplication 101 | 102 | Automator 103 | 104 | AMParameterProperties 105 | 106 | variableUUID 107 | 108 | isPathPopUp 109 | 110 | selectedVariableUUID 111 | 06FBFC20-0D62-40B6-8199-D66999BC7743 112 | 113 | 114 | AMProvides 115 | 116 | Container 117 | List 118 | Types 119 | 120 | * 121 | 122 | 123 | AMRequiredResources 124 | 125 | ActionBundlePath 126 | /System/Library/Automator/Set Value of Variable.action 127 | ActionName 128 | Set Value of Variable 129 | ActionParameters 130 | 131 | variableUUID 132 | 06FBFC20-0D62-40B6-8199-D66999BC7743 133 | 134 | BundleIdentifier 135 | com.apple.Automator.Set_Value_of_Variable 136 | CFBundleVersion 137 | 1.0.2 138 | CanShowSelectedItemsWhenRun 139 | 140 | CanShowWhenRun 141 | 142 | Category 143 | 144 | AMCategoryUtilities 145 | 146 | Class Name 147 | Set_Value_of_Variable 148 | InputUUID 149 | DB9F29FA-5E6B-468B-A3EA-EDE59F964EFA 150 | Keywords 151 | 152 | variable 153 | binding 154 | input 155 | output 156 | storage 157 | 158 | OutputUUID 159 | F0B750B1-4BC0-49E2-9195-743C7DC5A0F3 160 | UUID 161 | 23C71370-D874-4731-A7FF-482C90B32D5B 162 | UnlocalizedApplications 163 | 164 | Automator 165 | 166 | arguments 167 | 168 | 0 169 | 170 | default value 171 | 172 | name 173 | variableUUID 174 | required 175 | 0 176 | type 177 | 0 178 | uuid 179 | 0 180 | 181 | 182 | isViewVisible 183 | 184 | location 185 | 301.500000:242.000000 186 | nibPath 187 | /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib 188 | 189 | isViewVisible 190 | 191 | 192 | 193 | action 194 | 195 | AMAccepts 196 | 197 | Container 198 | List 199 | Optional 200 | 201 | Types 202 | 203 | com.apple.applescript.object 204 | 205 | 206 | AMActionVersion 207 | 1.0.2 208 | AMApplication 209 | 210 | Automator 211 | 212 | AMParameterProperties 213 | 214 | source 215 | 216 | 217 | AMProvides 218 | 219 | Container 220 | List 221 | Types 222 | 223 | com.apple.applescript.object 224 | 225 | 226 | ActionBundlePath 227 | /System/Library/Automator/Run AppleScript.action 228 | ActionName 229 | Run AppleScript 230 | ActionParameters 231 | 232 | source 233 | on run {input, parameters} set x to the text returned of (display dialog "Enter password to decrypt file(s):" default answer "" buttons {"OK"} default button 1) return x end run 234 | 235 | BundleIdentifier 236 | com.apple.Automator.RunScript 237 | CFBundleVersion 238 | 1.0.2 239 | CanShowSelectedItemsWhenRun 240 | 241 | CanShowWhenRun 242 | 243 | Category 244 | 245 | AMCategoryUtilities 246 | 247 | Class Name 248 | RunScriptAction 249 | InputUUID 250 | 84D46E87-BFB4-4FE9-90CF-8894B8494A7B 251 | Keywords 252 | 253 | Run 254 | 255 | OutputUUID 256 | 88AD4A12-BE04-4C41-AD6D-973E05B850BA 257 | UUID 258 | 4ABF86D4-44A7-4C9E-B17E-182BCC956F68 259 | UnlocalizedApplications 260 | 261 | Automator 262 | 263 | arguments 264 | 265 | 0 266 | 267 | default value 268 | on run {input, parameters} 269 | 270 | (* Your script goes here *) 271 | 272 | return input 273 | end run 274 | name 275 | source 276 | required 277 | 0 278 | type 279 | 0 280 | uuid 281 | 0 282 | 283 | 284 | isViewVisible 285 | 286 | location 287 | 301.500000:488.000000 288 | nibPath 289 | /System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib 290 | 291 | isViewVisible 292 | 293 | 294 | 295 | action 296 | 297 | AMAccepts 298 | 299 | Container 300 | List 301 | Optional 302 | 303 | Types 304 | 305 | * 306 | 307 | 308 | AMActionVersion 309 | v.1.0.2 310 | AMApplication 311 | 312 | Automator 313 | 314 | AMParameterProperties 315 | 316 | variableUUID 317 | 318 | isPathPopUp 319 | 320 | selectedVariableUUID 321 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 322 | 323 | 324 | AMProvides 325 | 326 | Container 327 | List 328 | Types 329 | 330 | * 331 | 332 | 333 | AMRequiredResources 334 | 335 | ActionBundlePath 336 | /System/Library/Automator/Set Value of Variable.action 337 | ActionName 338 | Set Value of Variable 339 | ActionParameters 340 | 341 | variableUUID 342 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 343 | 344 | BundleIdentifier 345 | com.apple.Automator.Set_Value_of_Variable 346 | CFBundleVersion 347 | 1.0.2 348 | CanShowSelectedItemsWhenRun 349 | 350 | CanShowWhenRun 351 | 352 | Category 353 | 354 | AMCategoryUtilities 355 | 356 | Class Name 357 | Set_Value_of_Variable 358 | InputUUID 359 | C1A12963-87DC-4418-94F8-DEDE0D46E747 360 | Keywords 361 | 362 | variable 363 | binding 364 | input 365 | output 366 | storage 367 | 368 | OutputUUID 369 | EC9628A7-A6C9-4332-A80F-EA55F5B45C2C 370 | UUID 371 | A955F2E0-34BD-43EC-9712-65D6B8B74FD5 372 | UnlocalizedApplications 373 | 374 | Automator 375 | 376 | arguments 377 | 378 | 0 379 | 380 | default value 381 | 382 | name 383 | variableUUID 384 | required 385 | 0 386 | type 387 | 0 388 | uuid 389 | 0 390 | 391 | 392 | isViewVisible 393 | 394 | location 395 | 301.500000:594.000000 396 | nibPath 397 | /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib 398 | 399 | isViewVisible 400 | 401 | 402 | 403 | action 404 | 405 | AMAccepts 406 | 407 | Container 408 | List 409 | Optional 410 | 411 | Types 412 | 413 | * 414 | 415 | 416 | AMActionVersion 417 | v.1.0.2 418 | AMApplication 419 | 420 | Automator 421 | 422 | AMParameterProperties 423 | 424 | variableUUID 425 | 426 | isPathPopUp 427 | 428 | selectedVariableUUID 429 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 430 | 431 | 432 | AMProvides 433 | 434 | Container 435 | List 436 | Optional 437 | 438 | Types 439 | 440 | * 441 | 442 | 443 | AMRequiredResources 444 | 445 | ActionBundlePath 446 | /System/Library/Automator/Get Value of Variable.action 447 | ActionName 448 | Get Value of Variable 449 | ActionParameters 450 | 451 | variableUUID 452 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 453 | 454 | BundleIdentifier 455 | com.apple.Automator.Get_Value_of_Variable 456 | CFBundleVersion 457 | 1.0.2 458 | CanShowSelectedItemsWhenRun 459 | 460 | CanShowWhenRun 461 | 462 | Category 463 | 464 | AMCategoryUtilities 465 | 466 | Class Name 467 | Get_Value_of_Variable 468 | IgnoresInput 469 | 470 | InputUUID 471 | 25808CA5-B8D7-4BE9-876A-EBD5FDFACFB1 472 | Keywords 473 | 474 | variable 475 | binding 476 | input 477 | output 478 | storage 479 | 480 | OutputUUID 481 | ED079A4A-A578-4C6A-8894-14C41B1F4E28 482 | UUID 483 | A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 484 | UnlocalizedApplications 485 | 486 | Automator 487 | 488 | arguments 489 | 490 | 0 491 | 492 | default value 493 | 494 | name 495 | variableUUID 496 | required 497 | 0 498 | type 499 | 0 500 | uuid 501 | 0 502 | 503 | 504 | isViewVisible 505 | 506 | location 507 | 301.500000:697.000000 508 | nibPath 509 | /System/Library/Automator/Get Value of Variable.action/Contents/Resources/Base.lproj/main.nib 510 | 511 | isViewVisible 512 | 513 | 514 | 515 | action 516 | 517 | AMAccepts 518 | 519 | Container 520 | List 521 | Optional 522 | 523 | Types 524 | 525 | * 526 | 527 | 528 | AMActionVersion 529 | v.1.0.2 530 | AMApplication 531 | 532 | Automator 533 | 534 | AMParameterProperties 535 | 536 | variableUUID 537 | 538 | isPathPopUp 539 | 540 | selectedVariableUUID 541 | 06FBFC20-0D62-40B6-8199-D66999BC7743 542 | 543 | 544 | AMProvides 545 | 546 | Container 547 | List 548 | Optional 549 | 550 | Types 551 | 552 | com.apple.cocoa.string 553 | 554 | 555 | AMRequiredResources 556 | 557 | ActionBundlePath 558 | /System/Library/Automator/Get Value of Variable.action 559 | ActionName 560 | Get Value of Variable 561 | ActionParameters 562 | 563 | variableUUID 564 | 06FBFC20-0D62-40B6-8199-D66999BC7743 565 | 566 | BundleIdentifier 567 | com.apple.Automator.Get_Value_of_Variable 568 | CFBundleVersion 569 | 1.0.2 570 | CanShowSelectedItemsWhenRun 571 | 572 | CanShowWhenRun 573 | 574 | Category 575 | 576 | AMCategoryUtilities 577 | 578 | Class Name 579 | Get_Value_of_Variable 580 | IgnoresInput 581 | 582 | InputUUID 583 | 3C063F5A-F6C7-46FC-9419-677D9A9DD813 584 | Keywords 585 | 586 | variable 587 | binding 588 | input 589 | output 590 | storage 591 | 592 | OutputUUID 593 | CD996130-AFEA-4EFE-89DB-0D463B8EF716 594 | UUID 595 | BC608BC0-16CE-4D5B-A92F-189EEB96BB43 596 | UnlocalizedApplications 597 | 598 | Automator 599 | 600 | arguments 601 | 602 | 0 603 | 604 | default value 605 | 606 | name 607 | variableUUID 608 | required 609 | 0 610 | type 611 | 0 612 | uuid 613 | 0 614 | 615 | 616 | isViewVisible 617 | 618 | location 619 | 301.500000:800.000000 620 | nibPath 621 | /System/Library/Automator/Get Value of Variable.action/Contents/Resources/Base.lproj/main.nib 622 | 623 | isViewVisible 624 | 625 | 626 | 627 | action 628 | 629 | AMAccepts 630 | 631 | Container 632 | List 633 | Optional 634 | 635 | Types 636 | 637 | com.apple.cocoa.string 638 | 639 | 640 | AMActionVersion 641 | 2.0.3 642 | AMApplication 643 | 644 | Automator 645 | 646 | AMParameterProperties 647 | 648 | COMMAND_STRING 649 | 650 | CheckedForUserDefaultShell 651 | 652 | inputMethod 653 | 654 | shell 655 | 656 | source 657 | 658 | 659 | AMProvides 660 | 661 | Container 662 | List 663 | Types 664 | 665 | com.apple.cocoa.string 666 | 667 | 668 | ActionBundlePath 669 | /System/Library/Automator/Run Shell Script.action 670 | ActionName 671 | Run Shell Script 672 | ActionParameters 673 | 674 | COMMAND_STRING 675 | ## DECRYPT - Automator will pass the selected finder items to this shell script 676 | ## with the preferred password from the user. It will encrypt all files 677 | ## with the same password. 678 | 679 | #Include bin files 680 | export PATH=/usr/local/bin:$PATH 681 | 682 | #For each selected file, encrypt it with the user's password 683 | for file in "${@:2}"; 684 | do 685 | expect -c " 686 | set timeout -1 687 | spawn ansible-vault decrypt \"$file\" 688 | expect \"Vault password:\" 689 | # Send password aka $1 690 | send -- \"$1\r\" 691 | expect eof 692 | " 693 | done 694 | CheckedForUserDefaultShell 695 | 696 | inputMethod 697 | 1 698 | shell 699 | /bin/bash 700 | source 701 | 702 | 703 | BundleIdentifier 704 | com.apple.RunShellScript 705 | CFBundleVersion 706 | 2.0.3 707 | CanShowSelectedItemsWhenRun 708 | 709 | CanShowWhenRun 710 | 711 | Category 712 | 713 | AMCategoryUtilities 714 | 715 | Class Name 716 | RunShellScriptAction 717 | InputUUID 718 | 94D38E09-DC40-422E-8F33-968CDAC38A5A 719 | Keywords 720 | 721 | Shell 722 | Script 723 | Command 724 | Run 725 | Unix 726 | 727 | OutputUUID 728 | 1F2D60CF-994F-410C-9F69-7BD81CC56F23 729 | UUID 730 | E6E2466D-75E4-47F8-B0BB-A8A67FF52ABC 731 | UnlocalizedApplications 732 | 733 | Automator 734 | 735 | arguments 736 | 737 | 0 738 | 739 | default value 740 | 0 741 | name 742 | inputMethod 743 | required 744 | 0 745 | type 746 | 0 747 | uuid 748 | 0 749 | 750 | 1 751 | 752 | default value 753 | 754 | name 755 | source 756 | required 757 | 0 758 | type 759 | 0 760 | uuid 761 | 1 762 | 763 | 2 764 | 765 | default value 766 | 767 | name 768 | CheckedForUserDefaultShell 769 | required 770 | 0 771 | type 772 | 0 773 | uuid 774 | 2 775 | 776 | 3 777 | 778 | default value 779 | 780 | name 781 | COMMAND_STRING 782 | required 783 | 0 784 | type 785 | 0 786 | uuid 787 | 3 788 | 789 | 4 790 | 791 | default value 792 | /bin/sh 793 | name 794 | shell 795 | required 796 | 0 797 | type 798 | 0 799 | uuid 800 | 4 801 | 802 | 803 | isViewVisible 804 | 805 | location 806 | 301.500000:983.000000 807 | nibPath 808 | /System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib 809 | 810 | isViewVisible 811 | 812 | 813 | 814 | connectors 815 | 816 | 6671AD45-D41A-468C-A676-49A98918AEE9 817 | 818 | from 819 | 4ABF86D4-44A7-4C9E-B17E-182BCC956F68 - 4ABF86D4-44A7-4C9E-B17E-182BCC956F68 820 | to 821 | A955F2E0-34BD-43EC-9712-65D6B8B74FD5 - A955F2E0-34BD-43EC-9712-65D6B8B74FD5 822 | 823 | A5CC16C0-E3CA-43B9-88C7-6E2D0F52616D 824 | 825 | from 826 | 23C71370-D874-4731-A7FF-482C90B32D5B - 23C71370-D874-4731-A7FF-482C90B32D5B 827 | to 828 | 4ABF86D4-44A7-4C9E-B17E-182BCC956F68 - 4ABF86D4-44A7-4C9E-B17E-182BCC956F68 829 | 830 | BA61871D-8B24-4F21-AE68-ED24C951CE28 831 | 832 | from 833 | A955F2E0-34BD-43EC-9712-65D6B8B74FD5 - A955F2E0-34BD-43EC-9712-65D6B8B74FD5 834 | to 835 | A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 - A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 836 | 837 | CA2C958C-F231-4246-8E6C-A6E8F08945DB 838 | 839 | from 840 | C2EA77F3-2F99-4A40-B685-B0FC5D212A92 - C2EA77F3-2F99-4A40-B685-B0FC5D212A92 841 | to 842 | 23C71370-D874-4731-A7FF-482C90B32D5B - 23C71370-D874-4731-A7FF-482C90B32D5B 843 | 844 | D6B5F392-CCB1-4683-81EF-C97E0118BA68 845 | 846 | from 847 | A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 - A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 848 | to 849 | BC608BC0-16CE-4D5B-A92F-189EEB96BB43 - BC608BC0-16CE-4D5B-A92F-189EEB96BB43 850 | 851 | D7D44D0C-1705-46B8-80AC-AEFF85242DFC 852 | 853 | from 854 | BC608BC0-16CE-4D5B-A92F-189EEB96BB43 - BC608BC0-16CE-4D5B-A92F-189EEB96BB43 855 | to 856 | E6E2466D-75E4-47F8-B0BB-A8A67FF52ABC - E6E2466D-75E4-47F8-B0BB-A8A67FF52ABC 857 | 858 | 859 | variables 860 | 861 | 862 | UUID 863 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 864 | identifier 865 | com.apple.Automator.Variable.Text 866 | name 867 | VaultPassword 868 | value 869 | password 870 | 871 | 872 | UUID 873 | 06FBFC20-0D62-40B6-8199-D66999BC7743 874 | identifier 875 | com.apple.Automator.Variable.Storage 876 | name 877 | SelectedFinderItems 878 | 879 | 880 | workflowMetaData 881 | 882 | serviceApplicationBundleID 883 | com.apple.finder 884 | serviceApplicationPath 885 | /System/Library/CoreServices/Finder.app 886 | serviceInputTypeIdentifier 887 | com.apple.Automator.fileSystemObject 888 | serviceOutputTypeIdentifier 889 | com.apple.Automator.nothing 890 | serviceProcessesInput 891 | 0 892 | workflowTypeIdentifier 893 | com.apple.Automator.servicesMenu 894 | 895 | 896 | 897 | -------------------------------------------------------------------------------- /services/Ansible-Vault | Encrypt.workflow/Contents/document.wflow: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AMApplicationBuild 6 | 409.1 7 | AMApplicationVersion 8 | 2.5 9 | AMDocumentVersion 10 | 2 11 | actions 12 | 13 | 14 | action 15 | 16 | AMAccepts 17 | 18 | Container 19 | List 20 | Optional 21 | 22 | Types 23 | 24 | com.apple.cocoa.path 25 | 26 | 27 | AMActionVersion 28 | 2.1.1 29 | AMApplication 30 | 31 | Finder 32 | 33 | AMParameterProperties 34 | 35 | AMProvides 36 | 37 | Container 38 | List 39 | Types 40 | 41 | com.apple.cocoa.path 42 | 43 | 44 | AMRequiredResources 45 | 46 | ActionBundlePath 47 | /System/Library/Automator/Get Selected Finder Items 2.action 48 | ActionName 49 | Get Selected Finder Items 50 | ActionParameters 51 | 52 | BundleIdentifier 53 | com.apple.Automator.Get_Selected_Finder_Items_2 54 | CFBundleVersion 55 | 2.1.1 56 | CanShowSelectedItemsWhenRun 57 | 58 | CanShowWhenRun 59 | 60 | Category 61 | 62 | AMCategoryFilesAndFolders 63 | 64 | Class Name 65 | AMGetSelectedFinderItemsAction 66 | IgnoresInput 67 | 68 | InputUUID 69 | A3F6063F-8435-4F31-BB7A-C7C5EFB08D18 70 | Keywords 71 | 72 | OutputUUID 73 | 21DF63DB-2A38-4366-9C5D-A5EEF2B26123 74 | StartAction 75 | 76 | UUID 77 | C2EA77F3-2F99-4A40-B685-B0FC5D212A92 78 | UnlocalizedApplications 79 | 80 | Finder 81 | 82 | arguments 83 | 84 | 85 | 86 | 87 | action 88 | 89 | AMAccepts 90 | 91 | Container 92 | List 93 | Optional 94 | 95 | Types 96 | 97 | * 98 | 99 | 100 | AMActionVersion 101 | v.1.0.2 102 | AMApplication 103 | 104 | Automator 105 | 106 | AMParameterProperties 107 | 108 | variableUUID 109 | 110 | isPathPopUp 111 | 112 | selectedVariableUUID 113 | 06FBFC20-0D62-40B6-8199-D66999BC7743 114 | 115 | 116 | AMProvides 117 | 118 | Container 119 | List 120 | Types 121 | 122 | * 123 | 124 | 125 | AMRequiredResources 126 | 127 | ActionBundlePath 128 | /System/Library/Automator/Set Value of Variable.action 129 | ActionName 130 | Set Value of Variable 131 | ActionParameters 132 | 133 | variableUUID 134 | 06FBFC20-0D62-40B6-8199-D66999BC7743 135 | 136 | BundleIdentifier 137 | com.apple.Automator.Set_Value_of_Variable 138 | CFBundleVersion 139 | 1.0.2 140 | CanShowSelectedItemsWhenRun 141 | 142 | CanShowWhenRun 143 | 144 | Category 145 | 146 | AMCategoryUtilities 147 | 148 | Class Name 149 | Set_Value_of_Variable 150 | InputUUID 151 | DB9F29FA-5E6B-468B-A3EA-EDE59F964EFA 152 | Keywords 153 | 154 | variable 155 | binding 156 | input 157 | output 158 | storage 159 | 160 | OutputUUID 161 | F0B750B1-4BC0-49E2-9195-743C7DC5A0F3 162 | UUID 163 | 23C71370-D874-4731-A7FF-482C90B32D5B 164 | UnlocalizedApplications 165 | 166 | Automator 167 | 168 | arguments 169 | 170 | 0 171 | 172 | default value 173 | 174 | name 175 | variableUUID 176 | required 177 | 0 178 | type 179 | 0 180 | uuid 181 | 0 182 | 183 | 184 | isViewVisible 185 | 186 | location 187 | 761.500000:242.000000 188 | nibPath 189 | /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib 190 | 191 | isViewVisible 192 | 193 | 194 | 195 | action 196 | 197 | AMAccepts 198 | 199 | Container 200 | List 201 | Optional 202 | 203 | Types 204 | 205 | com.apple.applescript.object 206 | 207 | 208 | AMActionVersion 209 | 1.0.2 210 | AMApplication 211 | 212 | Automator 213 | 214 | AMParameterProperties 215 | 216 | source 217 | 218 | 219 | AMProvides 220 | 221 | Container 222 | List 223 | Types 224 | 225 | com.apple.applescript.object 226 | 227 | 228 | ActionBundlePath 229 | /System/Library/Automator/Run AppleScript.action 230 | ActionName 231 | Run AppleScript 232 | ActionParameters 233 | 234 | source 235 | on run {input, parameters} set x to the text returned of (display dialog "Enter password to encrypt file(s):" default answer "" buttons {"OK"} default button 1) return x end run 236 | 237 | BundleIdentifier 238 | com.apple.Automator.RunScript 239 | CFBundleVersion 240 | 1.0.2 241 | CanShowSelectedItemsWhenRun 242 | 243 | CanShowWhenRun 244 | 245 | Category 246 | 247 | AMCategoryUtilities 248 | 249 | Class Name 250 | RunScriptAction 251 | IgnoresInput 252 | 253 | InputUUID 254 | D8527AA9-DFA9-4593-929B-60879F23BD7A 255 | Keywords 256 | 257 | Run 258 | 259 | OutputUUID 260 | D716A4BD-7ED6-48BE-BBD8-E421F561CC89 261 | UUID 262 | 05F150EF-6DD6-4F97-8B25-21F072E7C21F 263 | UnlocalizedApplications 264 | 265 | Automator 266 | 267 | arguments 268 | 269 | 0 270 | 271 | default value 272 | on run {input, parameters} 273 | 274 | (* Your script goes here *) 275 | 276 | return input 277 | end run 278 | name 279 | source 280 | required 281 | 0 282 | type 283 | 0 284 | uuid 285 | 0 286 | 287 | 288 | conversionLabel 289 | 0 290 | isViewVisible 291 | 292 | location 293 | 761.500000:668.000000 294 | nibPath 295 | /System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib 296 | 297 | isViewVisible 298 | 299 | 300 | 301 | action 302 | 303 | AMAccepts 304 | 305 | Container 306 | List 307 | Optional 308 | 309 | Types 310 | 311 | * 312 | 313 | 314 | AMActionVersion 315 | v.1.0.2 316 | AMApplication 317 | 318 | Automator 319 | 320 | AMParameterProperties 321 | 322 | variableUUID 323 | 324 | isPathPopUp 325 | 326 | selectedVariableUUID 327 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 328 | 329 | 330 | AMProvides 331 | 332 | Container 333 | List 334 | Types 335 | 336 | * 337 | 338 | 339 | AMRequiredResources 340 | 341 | ActionBundlePath 342 | /System/Library/Automator/Set Value of Variable.action 343 | ActionName 344 | Set Value of Variable 345 | ActionParameters 346 | 347 | variableUUID 348 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 349 | 350 | BundleIdentifier 351 | com.apple.Automator.Set_Value_of_Variable 352 | CFBundleVersion 353 | 1.0.2 354 | CanShowSelectedItemsWhenRun 355 | 356 | CanShowWhenRun 357 | 358 | Category 359 | 360 | AMCategoryUtilities 361 | 362 | Class Name 363 | Set_Value_of_Variable 364 | InputUUID 365 | C1A12963-87DC-4418-94F8-DEDE0D46E747 366 | Keywords 367 | 368 | variable 369 | binding 370 | input 371 | output 372 | storage 373 | 374 | OutputUUID 375 | EC9628A7-A6C9-4332-A80F-EA55F5B45C2C 376 | UUID 377 | A955F2E0-34BD-43EC-9712-65D6B8B74FD5 378 | UnlocalizedApplications 379 | 380 | Automator 381 | 382 | arguments 383 | 384 | 0 385 | 386 | default value 387 | 388 | name 389 | variableUUID 390 | required 391 | 0 392 | type 393 | 0 394 | uuid 395 | 0 396 | 397 | 398 | isViewVisible 399 | 400 | location 401 | 761.500000:774.000000 402 | nibPath 403 | /System/Library/Automator/Set Value of Variable.action/Contents/Resources/Base.lproj/main.nib 404 | 405 | isViewVisible 406 | 407 | 408 | 409 | action 410 | 411 | AMAccepts 412 | 413 | Container 414 | List 415 | Optional 416 | 417 | Types 418 | 419 | * 420 | 421 | 422 | AMActionVersion 423 | v.1.0.2 424 | AMApplication 425 | 426 | Automator 427 | 428 | AMParameterProperties 429 | 430 | variableUUID 431 | 432 | isPathPopUp 433 | 434 | selectedVariableUUID 435 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 436 | 437 | 438 | AMProvides 439 | 440 | Container 441 | List 442 | Optional 443 | 444 | Types 445 | 446 | * 447 | 448 | 449 | AMRequiredResources 450 | 451 | ActionBundlePath 452 | /System/Library/Automator/Get Value of Variable.action 453 | ActionName 454 | Get Value of Variable 455 | ActionParameters 456 | 457 | variableUUID 458 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 459 | 460 | BundleIdentifier 461 | com.apple.Automator.Get_Value_of_Variable 462 | CFBundleVersion 463 | 1.0.2 464 | CanShowSelectedItemsWhenRun 465 | 466 | CanShowWhenRun 467 | 468 | Category 469 | 470 | AMCategoryUtilities 471 | 472 | Class Name 473 | Get_Value_of_Variable 474 | IgnoresInput 475 | 476 | InputUUID 477 | 25808CA5-B8D7-4BE9-876A-EBD5FDFACFB1 478 | Keywords 479 | 480 | variable 481 | binding 482 | input 483 | output 484 | storage 485 | 486 | OutputUUID 487 | ED079A4A-A578-4C6A-8894-14C41B1F4E28 488 | UUID 489 | A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 490 | UnlocalizedApplications 491 | 492 | Automator 493 | 494 | arguments 495 | 496 | 0 497 | 498 | default value 499 | 500 | name 501 | variableUUID 502 | required 503 | 0 504 | type 505 | 0 506 | uuid 507 | 0 508 | 509 | 510 | isViewVisible 511 | 512 | location 513 | 761.500000:877.000000 514 | nibPath 515 | /System/Library/Automator/Get Value of Variable.action/Contents/Resources/Base.lproj/main.nib 516 | 517 | isViewVisible 518 | 519 | 520 | 521 | action 522 | 523 | AMAccepts 524 | 525 | Container 526 | List 527 | Optional 528 | 529 | Types 530 | 531 | * 532 | 533 | 534 | AMActionVersion 535 | v.1.0.2 536 | AMApplication 537 | 538 | Automator 539 | 540 | AMParameterProperties 541 | 542 | variableUUID 543 | 544 | isPathPopUp 545 | 546 | selectedVariableUUID 547 | 06FBFC20-0D62-40B6-8199-D66999BC7743 548 | 549 | 550 | AMProvides 551 | 552 | Container 553 | List 554 | Optional 555 | 556 | Types 557 | 558 | com.apple.cocoa.string 559 | 560 | 561 | AMRequiredResources 562 | 563 | ActionBundlePath 564 | /System/Library/Automator/Get Value of Variable.action 565 | ActionName 566 | Get Value of Variable 567 | ActionParameters 568 | 569 | variableUUID 570 | 06FBFC20-0D62-40B6-8199-D66999BC7743 571 | 572 | BundleIdentifier 573 | com.apple.Automator.Get_Value_of_Variable 574 | CFBundleVersion 575 | 1.0.2 576 | CanShowSelectedItemsWhenRun 577 | 578 | CanShowWhenRun 579 | 580 | Category 581 | 582 | AMCategoryUtilities 583 | 584 | Class Name 585 | Get_Value_of_Variable 586 | IgnoresInput 587 | 588 | InputUUID 589 | 3C063F5A-F6C7-46FC-9419-677D9A9DD813 590 | Keywords 591 | 592 | variable 593 | binding 594 | input 595 | output 596 | storage 597 | 598 | OutputUUID 599 | CD996130-AFEA-4EFE-89DB-0D463B8EF716 600 | UUID 601 | BC608BC0-16CE-4D5B-A92F-189EEB96BB43 602 | UnlocalizedApplications 603 | 604 | Automator 605 | 606 | arguments 607 | 608 | 0 609 | 610 | default value 611 | 612 | name 613 | variableUUID 614 | required 615 | 0 616 | type 617 | 0 618 | uuid 619 | 0 620 | 621 | 622 | isViewVisible 623 | 624 | location 625 | 761.500000:980.000000 626 | nibPath 627 | /System/Library/Automator/Get Value of Variable.action/Contents/Resources/Base.lproj/main.nib 628 | 629 | isViewVisible 630 | 631 | 632 | 633 | action 634 | 635 | AMAccepts 636 | 637 | Container 638 | List 639 | Optional 640 | 641 | Types 642 | 643 | com.apple.cocoa.string 644 | 645 | 646 | AMActionVersion 647 | 2.0.3 648 | AMApplication 649 | 650 | Automator 651 | 652 | AMParameterProperties 653 | 654 | COMMAND_STRING 655 | 656 | CheckedForUserDefaultShell 657 | 658 | inputMethod 659 | 660 | shell 661 | 662 | source 663 | 664 | 665 | AMProvides 666 | 667 | Container 668 | List 669 | Types 670 | 671 | com.apple.cocoa.string 672 | 673 | 674 | ActionBundlePath 675 | /System/Library/Automator/Run Shell Script.action 676 | ActionName 677 | Run Shell Script 678 | ActionParameters 679 | 680 | COMMAND_STRING 681 | ## ENCRYPT - Automator will pass the selected finder items to this shell script 682 | ## with the preferred password from the user. It will encrypt all files 683 | ## with the same password. 684 | 685 | #Include bin files 686 | export PATH=/usr/local/bin:$PATH 687 | 688 | #For each selected file, encrypt it with the user's password 689 | for file in "${@:2}"; 690 | do 691 | expect -c " 692 | set timeout -1 693 | spawn ansible-vault encrypt \"$file\" 694 | expect \"Vault password:\" 695 | # Send password aka $1 696 | send -- \"$1\r\" 697 | expect \"Confirm Vault password:\" 698 | send -- \"$1\r\" 699 | expect eof 700 | " 701 | done 702 | CheckedForUserDefaultShell 703 | 704 | inputMethod 705 | 1 706 | shell 707 | /bin/bash 708 | source 709 | 710 | 711 | BundleIdentifier 712 | com.apple.RunShellScript 713 | CFBundleVersion 714 | 2.0.3 715 | CanShowSelectedItemsWhenRun 716 | 717 | CanShowWhenRun 718 | 719 | Category 720 | 721 | AMCategoryUtilities 722 | 723 | Class Name 724 | RunShellScriptAction 725 | InputUUID 726 | 94D38E09-DC40-422E-8F33-968CDAC38A5A 727 | Keywords 728 | 729 | Shell 730 | Script 731 | Command 732 | Run 733 | Unix 734 | 735 | OutputUUID 736 | 1F2D60CF-994F-410C-9F69-7BD81CC56F23 737 | UUID 738 | E6E2466D-75E4-47F8-B0BB-A8A67FF52ABC 739 | UnlocalizedApplications 740 | 741 | Automator 742 | 743 | arguments 744 | 745 | 0 746 | 747 | default value 748 | 0 749 | name 750 | inputMethod 751 | required 752 | 0 753 | type 754 | 0 755 | uuid 756 | 0 757 | 758 | 1 759 | 760 | default value 761 | 762 | name 763 | source 764 | required 765 | 0 766 | type 767 | 0 768 | uuid 769 | 1 770 | 771 | 2 772 | 773 | default value 774 | 775 | name 776 | CheckedForUserDefaultShell 777 | required 778 | 0 779 | type 780 | 0 781 | uuid 782 | 2 783 | 784 | 3 785 | 786 | default value 787 | 788 | name 789 | COMMAND_STRING 790 | required 791 | 0 792 | type 793 | 0 794 | uuid 795 | 3 796 | 797 | 4 798 | 799 | default value 800 | /bin/sh 801 | name 802 | shell 803 | required 804 | 0 805 | type 806 | 0 807 | uuid 808 | 4 809 | 810 | 811 | isViewVisible 812 | 813 | location 814 | 761.500000:1163.000000 815 | nibPath 816 | /System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib 817 | 818 | isViewVisible 819 | 820 | 821 | 822 | connectors 823 | 824 | 161C8B7F-A550-4562-A871-9CA04B28F3C0 825 | 826 | from 827 | A955F2E0-34BD-43EC-9712-65D6B8B74FD5 - A955F2E0-34BD-43EC-9712-65D6B8B74FD5 828 | to 829 | A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 - A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 830 | 831 | 593508BB-5A3D-4449-8D54-B22F63DEA16B 832 | 833 | from 834 | 23C71370-D874-4731-A7FF-482C90B32D5B - 23C71370-D874-4731-A7FF-482C90B32D5B 835 | to 836 | 05F150EF-6DD6-4F97-8B25-21F072E7C21F - 05F150EF-6DD6-4F97-8B25-21F072E7C21F 837 | 838 | 83E3B835-67C1-4119-A4FC-C9F2A0D76DF0 839 | 840 | from 841 | C2EA77F3-2F99-4A40-B685-B0FC5D212A92 - C2EA77F3-2F99-4A40-B685-B0FC5D212A92 842 | to 843 | 23C71370-D874-4731-A7FF-482C90B32D5B - 23C71370-D874-4731-A7FF-482C90B32D5B 844 | 845 | 8C79B913-3044-4C3D-94B8-AE8B64622100 846 | 847 | from 848 | 05F150EF-6DD6-4F97-8B25-21F072E7C21F - 05F150EF-6DD6-4F97-8B25-21F072E7C21F 849 | to 850 | A955F2E0-34BD-43EC-9712-65D6B8B74FD5 - A955F2E0-34BD-43EC-9712-65D6B8B74FD5 851 | 852 | D167A5EB-B692-4E2A-AA66-D6EC6BBF65D3 853 | 854 | from 855 | A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 - A98FE0AC-2E59-48AC-8BCE-C1BF45B7F463 856 | to 857 | BC608BC0-16CE-4D5B-A92F-189EEB96BB43 - BC608BC0-16CE-4D5B-A92F-189EEB96BB43 858 | 859 | D5A45C72-19B9-4585-84AA-62F4D7B8E7A0 860 | 861 | from 862 | BC608BC0-16CE-4D5B-A92F-189EEB96BB43 - BC608BC0-16CE-4D5B-A92F-189EEB96BB43 863 | to 864 | E6E2466D-75E4-47F8-B0BB-A8A67FF52ABC - E6E2466D-75E4-47F8-B0BB-A8A67FF52ABC 865 | 866 | 867 | variables 868 | 869 | 870 | UUID 871 | E86DEB74-ECB3-4EF9-BBCA-4BEB403003F4 872 | identifier 873 | com.apple.Automator.Variable.Text 874 | name 875 | VaultPassword 876 | value 877 | password 878 | 879 | 880 | UUID 881 | 06FBFC20-0D62-40B6-8199-D66999BC7743 882 | identifier 883 | com.apple.Automator.Variable.Storage 884 | name 885 | SelectedFinderItems 886 | 887 | 888 | workflowMetaData 889 | 890 | serviceApplicationBundleID 891 | com.apple.finder 892 | serviceApplicationPath 893 | /System/Library/CoreServices/Finder.app 894 | serviceInputTypeIdentifier 895 | com.apple.Automator.fileSystemObject 896 | serviceOutputTypeIdentifier 897 | com.apple.Automator.nothing 898 | serviceProcessesInput 899 | 0 900 | workflowTypeIdentifier 901 | com.apple.Automator.servicesMenu 902 | 903 | 904 | 905 | --------------------------------------------------------------------------------