## The `action' property

Read-only, Character vector

Valid for: System object

The `action` property is useful only for APL workspaces which have been packaged as standalone applications. When one or more documents have been dragged on to the icon which represents your packaged application, or documents associated with your packaged application have been double-clicked, the operating system starts up the packaged application and runs your APL code. (Under MacOS, the System object's `onOpen` event is triggered if your application is already running). You can read the `file` property to find the list of documents (files) to open or print. Under MacOS, the `action` property can contain the string 'open' or 'print', to indicate the action to take.

Under Windows and Linux, this property is implemented, but the action string can only be 'open' since printing from the desktop is not implemented.

This property returns an empty vector if no action is required.

Topic: APLX Help : System Classes : Properties : action

[ Next | Contents | Index ]