Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (7 sloc) 0.694 kB

GetDateFromPDFMetadata

A quick Applescript to manipulate date information stored in PDF metadata.

The Scansnap scanner software will allow you to saved highlighted text in a scanned document as keywords. This script is called from Hzel. It takes those keywords, searches for any that are dates and formats them to the short date format. It also returns all the keywords (plus the month and year from any dates it finds) as Spotlight Comments prefixed with '@'. Finally, it returns the short date string as a Hazel export token for use in further rules.

I have tested it with a handful of date formats which have worked.

Quesitons/comments/etc: github@neilbert.com

Jump to Line
Something went wrong with that request. Please try again.