How to Send receipts to a folder on iCloud Drive
1 Make a print plug-in In Automator, choose File > New, select Print Plugin, then click Choose. This type of workflow extends OS X’s Print dialog; if you use Chrome as your web browser, press å+ç+p to use that dialog instead of Chrome’s custom one.
2 Use a unique filename By default, when our workflow saves a PDF to a folder, it’ll overwrite any file of the same name already there. To avoid this, select Files & Folders or Finder in the first column, then drag Rename Finder Items action from the second to the third.
3 Add the time Click Don’t Add when asked if you’d like to add a Copy Finder Items action as well. In the Rename Finder Items action, set Format to Hour Minute Second, Separator to Dash, and Where to Before Name. Also turn on Use Leading Zeros.
4 Add the date Add another Rename Finder Items action below the existing one and again click Don’t Add. This time set Format to Year Month Day, and the other options as you did in step 3. Your receipts will be uniquely named down to the second.
5 Create a folder In Finder, press ß+ç+I to go to iCloud Drive. Create a folder called Web Receipts, then return to Automator, drag the Move Finder Items action into your workflow, and use the pop-up menu to select the folder you just created.
6 Save and test Save the workflow, calling it Save to iCloud Receipts. In Mail, find a receipt and press ç+p. Click PDF at the dialog’s bottom-left corner, then your workflow’s name. A PDF of the receipt will be saved to the folder you created on iCloud Drive.