Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
(*
-- Send the selected files in Finder to Keka (for compression)
--
-- @author Scott Buchanan <buchanan.sc@gmail.com>
-- @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