Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use launchd to replace folder actions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use launchd to replace folder actions
Authored by: Zeitkind on Apr 24, '08 05:35:32AM

I tried both WatchPaths and QueueDirectories, but still looking for some more detailed info except looking into the source code of launchd. I used it to handle tiffs incoming from a network scanner to a server volume, pass them to Readiris, ocr them and save in another dir as PDF - Acrobat Pro is better scriptable, but the PDFs are not searchable by Spotlight (Acrobat's OCR is a crap, it makes "word" to "w o r d" and Spotlight won't find any word but "w o r d" and - Readiris can ocr much more languages). I tried first with folder actions, but found them unstable and much slower. The reason I splitted into a shell-script and an Applescript is that it leaves the possibility to do more things first with the shell - which is much faster than any AppleScript - like converting images or splitting tiffs. Readiris Pro is a pita to script, I needed System Events to control it, but sure you can get their "corporate edition", which might be better scriptable, no idea but I think so.



[ Reply to This | # ]