Property List (.plist) Generation

Property list generation is done using the howett.net/plist Go package.

The file shortcutgen.go generates the data, while shortcut.go contains definitions of the data types and helper functions used in generating the data.

dataType

Here are the constants for the type dataType which is a string type that lines up with plist data types:

  • Text
  • Number
  • Real
  • Dictionary
  • Array
  • Boolean

At the end of the day, these files generate data for the package to build a string that is saved as a .shortcut file.

To save the output as a separate plist file from the resulting signed Shortcut, use the --debug (or -d) option when running the compiler.