Learning Shortcuts

The mdls shell command returns information that is not otherwise available in a shortcut. The following gets the metadata attributes for a selected file and writes the data to a file on the desktop:

Save MDLS Data.shortcut (22.1 KB)

The following returns the number of pages in a PDF.

PDF Page Count.shortcut (22.1 KB)

The following returns the date/time a file was added to a folder. The mdls utility returns GMT, but the Get Time action localizes this.

File Date Added.shortcut (22.2 KB)