Skip to content

Instantly share code, notes, and snippets.

@wangyuchen
Created May 18, 2013 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wangyuchen/5604929 to your computer and use it in GitHub Desktop.
Save wangyuchen/5604929 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