01-10 The action metadata. Edit the author and label tags to suit your purposes.
33-36 The action validation routine determines the document conditions under which the action becomes available in the Automation menu. In this case, if the outline contains one or more rows.
11-40 The action code that gets executed when the action is triggered.
15 The file type identifier for plain text export. To export in OPML format (Outline Processor Markup Language), change this to either "com.apple.news.opml" or "org.opml.opml"
19-25 The then(…) function of the Promise class is called on the stored promise when the file wrapper has been created, and is passed into the processing function.
20 Get the text contents of the virtual plain-text export object (wrapper) and store it in the variable: outlineText
22 Use the Drafts URL API to create a URL for calling the Drafts app to make a new document using the encoded text appended to the URL.
23 Convert the URL string into an instance of the URL object class.
24 Use the call() method to execute the URL object.
This webpage is in the process of being developed. Any content may change and may not be accurate or complete at this time.