joshfarrant/shortcuts-js

Shortcut parser needs to support both binary bplist and xml plist

the8tre opened this issue · 0 comments

Format of shorcuts exported to iCloud seems to no longer be binary bplist.
It is now XML plist:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>WFWorkflowActions</key>
	<array>
		<dict>
			<key>WFWorkflowActionIdentifier</key>
			<string>is.workflow.actions.comment</string>
			<key>WFWorkflowActionParameters</key>
			<dict>
				<key>WFCommentActionText</key>
				<string>Hello, world!</string>
			</dict>
		</dict>

scripts/parse.js needs to be updated to support both formats.