From 5040fca31e874e0e38f2877a63b2f502dae67714 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnmF_9CAtfqdZkC4e-_dCX-rK5bqh4RWkw" Date: Wed, 23 Apr 2014 13:12:07 +0000 Subject: Adding instructions for OS X (finder) --- doc/tips/file_manager_integration.mdwn | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'doc/tips/file_manager_integration.mdwn') diff --git a/doc/tips/file_manager_integration.mdwn b/doc/tips/file_manager_integration.mdwn index 3fea3e98c..d84b1c59d 100644 --- a/doc/tips/file_manager_integration.mdwn +++ b/doc/tips/file_manager_integration.mdwn @@ -82,6 +82,26 @@ This gives me the resulting config on disk, in `.config/Thunar/uca.xml`: The complete instructions on how to setup actions is [in the XFCE documentation](http://docs.xfce.org/xfce/thunar/custom-actions). +## OS X (Finder) + +For OS X, it is possible to get context menus in Finder. Due to how OS X deals with sym links, one needs to operate on folders if using indirect mode. Direct mode operation has not been tested. + +1. Open Automator and create a new Service. +2. Using the Drop down menus in the top create the sentence "Service receives selected folders in Finder.app" to have it work on folders. For direct mode operation it is probably reasonable to select "files or folders". +3. Add a "Run shell script" element and fill in line with the following script: + + + #!/usr/bin/bash + source ~/.bash_profile + for f in "$@" + do + cd $(dirname $f); git-annex get $f + done + +The purpose of the first line is there to get git-annex on to the path. The reason for the for loop is in case multiple files or folders are marked when running the context menu command. + +Finally save the the workflow under the name for which it should be listed in the context menu. + ## your file manager here Edit this page and add instructions! -- cgit v1.2.3