Did you specify the output attributes in the UI? When editing the script, there's a button that will bring up a UI where you can tell Hazel what those attributes are. Otherwise, Hazel has no way of knowing.
Hello Paul,
Yes I selected an input attribute from the UI called "Title" and I defined an output attribute that I called "NeatName".
My JavaScript converts the "Title" metadata found inside the PDF from either:
"Neat Document filename sample 12 02 2012"
Or "Neat Receipt filename sample 12 02 2012 $ 240.00"
into 2012-02-12 filename sample".
Then in the subsequent Renaming action, I selected the text output attribute "NeatName" and "Ext" as the components of the new filename. I can upload screenshots of the UI showing my rule definition if that will help.
In my Javascript, I have, "return {'hazelOutputAttributes': ['newTitle']};"
I expect that value to be substituted for "NeatName" once the script runs. Is my syntax correct in the script?
Do I need to define a variable in the script at "NeatName" instead of "newTitle"?
Should I be able to pass a sting value back from the script?
I really appreciate you responses and hope I'm getting closer to a solution. This renaming script will ultimately convert thousands of GUID named document and receipts stored as PDFs that were created by NeatWorks.
Once I am successful, I plan to write up a detailed article "Paperless Archive Migration from NeatWorks to Evernote Using Hazel", and submit it to the Paperless forums. In it I'll be describing how to abandon NeatWorks in favor of alternative file and folder-based archives or an Evernote based paperless archive.
Neat Co. announce recently they are discontinuing their dual codebase solution for PCs and Macs, and are moving to a unified, cloud-based software as a service. I'm unhappy with that option, as I suspect many Mac NeatWorks users will be. So this data migration via Hazel may appeal to many of those disenfranchised NeatWorks users. I purchased Hazel because is also promises to be a key, core element in the day to day workflow of scanning and filing documents. you have a great product here...
Thanks again for your support!
-DaveB