Instance Functions function byName(name: String) → Task or null Returns a location referring to the ending of the top-level tags in the database. Var ending → Tag.ChildInsertionLocation read-only Returns a location referring to the beginning of the top-level tags in the database. Instance Properties var beginning → Tag.ChildInsertionLocation read-only Returns the first Tag contained directly in this array with the given name.Īn Array of tags at the top level of the database.Ĭalls the given function for each Tag in the Library and recursively into any child tags. Instance Functions function byName(name: String) → Tag or null Returns a location referring to the ending of the top-level projects and folders in the database. Var ending → Folder.ChildInsertionLocation read-only (Reference this using library.beginning.) Returns a location referring to the beginning of the top-level projects and folders in the database. Instance Properties var beginning → Folder.ChildInsertionLocation read-only Note that the tasks in projects are not descended into. Instance Functions function apply(function: Function) → ApplyResult or nullĬalls the given function for each Folder and Project in the Library and recursively into any child folders. (This can be referenced via the top-level global variable library.) Returns the first Project or Folder contained directly in this array with the given name.Īn Array of folders and projects at the top level of the database. Instance Functions function byName(name: String) → Project or Folder or null Returns the first Project contained directly in this array with the given name.Īn Array containing Project and Folder objects. Instance Functions function byName(name: String) → Project or null Returns the first Folder contained directly in this array with the given name. Instance Functions function byName(name: String) → Folder or null The built-in JavaScript Array constructor. Var all → Array of ApplyResult read-only Array The call to apply terminates with no further items being visited. The unvisited peers of the current item are skipped. The descendants of the current item are skipped. We recommend using either the user-visible userVersion or the internal buildVersion instead, which are more clear about which version they’re returning and provide their results as Version objects which can be semantically compared with other Version objects.ĪpplyResult Class Properties var SkipChildren → ApplyResult read-only See also buildVersion.ĭeprecated: Recommend using either userVersion or buildVersion.įor backwards compatibility with existing scripts, this returns the same result as buildVersion.versionString. The user-visible version number for the app. Returns a string describing the current platform, currently "iOS" or "macOS". Whether the Option key is currently down. Whether the Control key is currently down. Whether the Command key is currently down. The internal build version number for the app. Instance Properties var buildVersion → Version read-only On success, the second argument is a Boolean specifying whether the document was already open. The first will be either either the Document or an Error. The passed in function will be passed two argument. The document, if any, that is associated with the calling script can be passed along to help grant permission to open the new document. Note that due to platform sandboxing restrictions, opening the document may fail if the application doesn’t have currently permission to access the given URL. If the document is already open, the reference is passed along. A Promise is returned as well, which may also be used to collect the result of the Alert.Īpplication Instance Functions function openDocument(from: Document or null, url: URL, completed: Function (documentOrError: Document or Error, alreadyOpen: Boolean ))Īttempts to open the specified document and return a reference to it asynchronously. If a callback function was supplied, it is invoked with the zero-based index of the selected option as its argument. Once the user selects an option, the alert is dismissed. If no options have yet been added, a default “OK” option is added. Instance Functions function show(callback: Function (option: Number ) or null) → Promise of Numberĭisplays the alert. OmniFocus API 3.13.1 OmniFocus 3.13.1 (v151.27.0) Alert Īn alert interface for displaying information to the user, blocking further interaction until the alert is dismissed.Ĭonstructors new Alert(title: String, message: String) → AlertĬreate a new alert panel with the given title and text contents.
0 Comments
Leave a Reply. |