![]() I’m confident that the databases in question are not in use elsewhere and that they were previously correctly closed. The issue that currently manifests itself is that when the script is executed, DEVONthink first gives a message indicating that the database is already in use and I can continue or abort.Īfterwards, it imports the file, but often not in the correct database that was determined by the script. Which database and location are to be used, is determined elsewhere in the script. This has worked flawlessly for years and imports a file to a given database and location. Set the name of theRecord to "'$NewName'"\n Set theRecord to import "'$FullPath'" to theGroup\n Set theGroup to create location "'$FolderName'/" in theDatabase\n ![]() Set theDatabase to open database "'$DevonthinkFolder'/'$DatabaseName'.dtBase2"\n In below a snippet from the script: Command=' Once of my rules in Hazel executes a shell script through which DEVONthink is automated using osascript. Note: you will also need to DISable the preference to automatically OCR scanned documents in PDFpenPro, else you'll get that annoying dialog about language preference.I possibly have another issue introduced around 3.8.4 that is also present in 3.8.5 running macOS Monterey 12.5. I'm sure it can be easily modified to export to other applications if you're not a Yojimbo user. If you save it as an application it also functions as a droplet. The following script accomplishes just that. My goal was to automate all of this when the Scan button is pushed on the scanner. Scan with Fujitsu ScanSnap > OCR with PDFpenPro > Export to Yojimbo I was inspired by this to create my own workflow which consists of the following steps: I hope this is of use to someone, and thanks to David and Michael for their excellent Applescripts. To implement, follow MacSparky’s excellent instructions. ![]() PDFpen Pro Users: Download The Text Script Here (Right-click and Save-As) PDFpen Users: Download The Text Script Here (Right-click and Save-As) On adding folder items to this_folder after receiving added_items Since both of these scripts were almost what I wanted, I decided to stand on the shoulder of giants and merge them together into this Applescript. One from David Sparks at MacSparky, which some users reported problems with in newer PDFPen versions, and one from Michael Tsai at C-Command Software which will OCR a document with PDFPen and send it to EagleFiler. PDFPen will also OCR PDFs to make them searchable, and I wanted a way to OCR a bunch of documents automatically with an Applescript, similar to what has been done with Adobe Acrobat and with ABBYY FineReader. However, that ability is not what this post is about. Among many other things, it lets you fill out and edit any PDF document on your computer and then print it out. It’s a little embarrassing filling out some official form with my chicken scratch, which is one of the many reasons why I love PDFPen. Normally this is not a problem, except when I have to fill out a form. I think my 5 year old son and I have pretty similar handwriting skills. I don’t know if it is because I have been glued to a computer since I was six years old, but my handwriting and printing is terrible.
0 Comments
Leave a Reply. |