A generic bag of bytes. Mainly useful to be interpreted / converted to some other type.
length (Number or nil r/o) • Number of bytes in this data.
toString() (String) • Convert to a String, assuming that this Data is encoded as UTF8.
toBase64() (String) • Convert to a Base–64 encoded string.
fromString(string:String) (Data) • Convert from a String to the UTF8 encoding of that string as Data.
fromBase64(string:String) (Data) • No documentation available.
Here’s an Omni Automation script for creating a new task in OmniFocus with the current OmniOutliner document as an attachment. The script uses the integrated URL support in OmniFocus to create and run a URL link for creating tasks.
In this example, the processed data object is the extracted value of the contents property of the created FileWrapper instance (line 4).