This version closes the file if it's open in Omnigraffle, updates the version using plist-native library, and exports the file to pdf
using dcreager's graffle-export utility.