open file versus launch commands
kray at sonsothunder.com
Sun Jan 16 18:02:48 EST 2005
On 1/16/05 2:23 PM, "Stgoldberg at aol.com" <Stgoldberg at aol.com> wrote:
> Thanks to James for the advice to try to use the "launch" command rather than
> the "open file" command to open a file in the same folder as the Revolution
> application. The launch command does work on opening an application but only
> after the Revolution program has been built as a standalone. Am I correct in
> that one needs to first build a standalone for the launch command to work?
No, 'launch' works in both the IDE and in a standalone... the difference is
based on the path you pass. If you pass a complete path to the executable,
there's no problem in either environments; but if you pass a *relative*
path, the path is relative to the current setting for the 'defaultFolder'
property, which by default is the location of the application that is
currently running the Rev engine. In your standalone, it's the folder that
contains your standalone... in the IDE, it's the folder that contains the
> Also, when should the "open file " command be used as opposed to the launch
> command? Thanks.
That's because they do different things - launch will execute programs,
whereas 'open file' just opens a file to read or write data to it.
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the Use-livecode