Count the number of pages of selected PDF files in your DEVONthink database
I wrote the following AppleScript in order to satisfy my curiosity about this number!
.dontaioncontest_widgetbox { border: 2px solid #C0C0C0 !important; background-color: #F8F8F8 !important; text-align: center !important; padding: 5px 10px !important; max-width: 300px !important; line-height: 20px; font-size: 13px; } .dontaioncontest_widgetbox h3 { font-weight: bold !important; font-size: 14px !important; line-height: 17px !important; margin: 0px 0px 5px 0px !important; padding: 0px !important; border: 0px solid transparent !important; } .dontaioncontest_button { margin: 5px 0px 0px 0px !important; } .dontaioncontest_contestdata {top: 0px; left: 0px;}
To support my blog you can buy my app TunesLinker from App Store or use Paypal
I wrote the following AppleScript in order to satisfy my curiosity about this number!
- tell application "DEVONthink Pro"
- set these_items to the selection
- if these_items is {} then error "Please select some contents."
- set totalNumber to 0
- repeat with this_item in these_items
- set numPages to page count of this_item as integer
- set totalNumber to totalNumber + numPages as integer
- end repeat
- display dialog "The total number of pages of selected PDF files is " & totalNumber
- end tell


