Automatically Encrypting PDF's via PDFPen in Filing WorkFlow

see updated script using Apple's KeyChain....better security

I'm still using Yojimbo but I'm contemplating switching to simple nested folders for filing my documents.  One piece I want to maintain is some security on the documents.  So I did a short script to automatically open and encrypt a PDF document in PDF Pen.  

Since the password is embedded in your script, I don't think its the most secure but should the documents end up somewhere else, they'll be secure.   The script is at the bottom. 

Hazel workflow with encrypting PDFPen

Script from the testing phase if you don't use hazel.

Script from the testing phase if you don't use hazel.

script is below for embedding in Hazel
-----------------------------------

set this_file to theFile
set pass_word to "password"

tell application "PDFpen"
open this_file
save document 1 encrypt using AES256 password pass_word

end tell