Commands

close

Supported By

Syntax

close object

close applicationPath

close documentPath (with|in) applicationPath

Object yields an object with an appropriate I/O manager. DocumentPath and applicationPath yield file paths to a document file and an application file, respectively.

Description

The close command, when given an object with an appropriate I/O manager (e.g., a file or URL), closes an object previously opened with the open command.

If the parameter to the close command does not have an appropriate I/O manager or is not an object, or if the with or in parameter is given, the close command closes an open application or document. OpenXION currently only supports this on Mac OS X.

Security

To close an open application or document, OpenXION's security settings must allow the FILE_LAUNCH security key. To close an object with an I/O manager, any security keys required are determined by the I/O manager; see the documentation for the I/O manager itself (e.g., file or URL). If the required security key is denied, a script error will be triggered.

See Also

open, read, write