open file versus launch commands
cassj at earthlink.net
Sun Jan 16 17:57:56 EST 2005
"launch" should work within the IDE without having to build the
standalone. You can put the following code in a button as a test. It
even works in a multiline message box, using just the 5 lines of code
within the mouseup handler.
answer file "Choose a text file to open..."
put it into targetFile
answer file "Choose your Text editor application..."
put it into textEditorApp
launch targetFile with textEditorApp
On Jan 16, 2005, at 3:23 PM, 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
> 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
> Also, when should the "open file " command be used as opposed to the
> command? Thanks.
> Steve Goldberg
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the Use-livecode