Lingo Dictionary > O-R > open

 

open

Syntax

open {whichDocument with} whichApplication 

Description

Command; launches the application specified by the string whichApplication. Use whichDocument to specify a document that the application opens when it is launched. When either is in a different folder than the current movie, you must specify the full pathname to the file or files.

The computer must have enough memory to run both Director and other applications at the same time.

This is a very simple command for opening an application or a document within an application. For more control, look at options available in third-party Xtras.

This command is disabled in Shockwave and whenever the safePlayer property is set to TRUE.

Example

This statement checks whether the computer is a Macintosh and then if it is, opens the application SimpleText:

if the platform contains "Mac" then open "SimpleText"

Example

This statement opens the SimpleText application, which is in the folder Applications on the drive HD, and the document named Storyboards:

open "Storyboards" with "HD:Applications:SimpleText"

See also

openXlib, safePlayer