Created
May 18, 2013 16:08
-
-
Save wangyuchen/5604929 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
-- Send the selected files in Finder to Keka (for compression) | |
-- | |
-- @author Scott Buchanan <[email protected]> | |
-- @link http://wafflesnatcha.github.com | |
*) | |
tell application "Finder" | |
set _files to selection as alias list | |
if _files is {} then return display alert "No files selected!" as warning giving up after 5 | |
set _pathnames to "" | |
repeat with f in _files | |
set _pathnames to _pathnames & " " & quoted form of POSIX path of (f as alias) | |
end repeat | |
do shell script "open -b 'com.aone.keka' " & _pathnames & " --args -action 2 &>/dev/null &" | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment