Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Askhento/83c2f33b9956d37cd375518bc10f6c72 to your computer and use it in GitHub Desktop.
Save Askhento/83c2f33b9956d37cd375518bc10f6c72 to your computer and use it in GitHub Desktop.
(*
-- 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