summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawnmF_9CAtfqdZkC4e-_dCX-rK5bqh4RWkw <Carl@web>2014-04-23 13:12:07 +0000
committerGravatar admin <admin@branchable.com>2014-04-23 13:12:07 +0000
commit5040fca31e874e0e38f2877a63b2f502dae67714 (patch)
treebfb12a11eb79ae1c5ffccc08aac756636851688e
parentdd59ab26e269a3774822dbb5cba722def9f21957 (diff)
Adding instructions for OS X (finder)
-rw-r--r--doc/tips/file_manager_integration.mdwn20
1 files changed, 20 insertions, 0 deletions
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!