I have been trying to the number of pages in a pdf to be available as a custom metadata.
I am not expert in AppleScript. The following is not working for me. Can sb help me with it please?
tell application id "DNtp"
set theRecords to get the selection
repeat with eachRecord in theRecords
set thePageCount to page count of theRecords
add custom meta data thePageCount for "Pages" to theRecords
end repeat
end tell
On a side note: I applaud you exploring AppleScript. Learning to automate things is a wonderful, though sometimes frustrating, pursuit. But in the end, you can lean back and enjoy the fruits of your labors
That being said, this is also an instance where someone who doesn’t want to tackle scripting could effectively use a batch process or smart rule using the Page Count placeholder…
The only requirement here is needing to run the Pro or Server edition of DEVONthink to use the custom metadata. For Standard users, there is the possibility of using the Finder Comments instead.