Re: Autofile from Hazel -> OCR (PDFPenPro) -> DevonThink
Posted: Wed May 24, 2017 10:04 am
Hi,
I’ve gotten this working just fine (the tip to change from /bin/bash to /bin/sh was key for me), but my concern is that the hard-coded paths to DEVONthink Groups (folders) make these Hazel rules/scripts rather fragile in terms of moving/renaming DEVONthink Groups.
Since DEVONthink now supports persistent URLs (moving/renaming Groups doesn’t change their URL), in the form of x-devonthink-item://, it would be great to update this shell script to use instead. Sadly, my shell scripting chops aren’t up to this task.
(It also seems like this change would make specifying the DEVONthink database unnecessary, wouldn’t it?)
I’ve gotten this working just fine (the tip to change from /bin/bash to /bin/sh was key for me), but my concern is that the hard-coded paths to DEVONthink Groups (folders) make these Hazel rules/scripts rather fragile in terms of moving/renaming DEVONthink Groups.
Since DEVONthink now supports persistent URLs (moving/renaming Groups doesn’t change their URL), in the form of x-devonthink-item://, it would be great to update this shell script to use instead. Sadly, my shell scripting chops aren’t up to this task.
(It also seems like this change would make specifying the DEVONthink database unnecessary, wouldn’t it?)