The returned file wrapper will have a name based off the given baseName and the default path extension for the requested file type. Returns a Promise that will yield the file wrapper or an error. Generates a FileWrapper representing the contents of the document formatted as the specified type, or its current fileType if a null is passed for the type.MakeFileWrapper( baseName: String, type: String or null) → ( Promise r/o) The result will be an array of the identifiers for the FileWrappers supported in OmniPlan: OmniPlan Writable Types Identifiers Copyĭocument.writableTypes //-> Ī variation of the previous script that returns the types as a multi-line text block: OmniPlan Writable Types Identifiers Copyĭ("\n") //-> "-zip ma-separated-values-text public.png public.tiff public.jpeg -gv"Ī writable type identifier is used when creating a new file wrapper instance with the makeFileWrapper() function: To get a list of the export types supported by OmniPlan, write a simple script to access the value of the writableTypes property of the Document class. In terms of Omni Automation, these file packages are referred to as FileWrappers.Įach instance of the FileWrapper class has a unique type identifier that identifies that wrapper. Each of the supported file packaging formats has its own set of parameters. Each “data package” has a set of parameters that determine how the project data is stored or presented.įor example, one package may store the data as tabbed data, while another may store the project data in XML format. If you think of a project as a set of data, then it’s easy to understand that a project’s data can be packaged in a variety of ways. This section examines how to create File Wrappers in preparation for the export of documents and content.ĭocumentation regarding the other classes involved in the saving and export of OmniPlan documents can be found in FileTypes and FileSavers. OmniPlan supports the export of documents to files of various formats.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |