launch
Monte Goulding
monte at sweattechnologies.com
Fri Feb 14 19:49:01 EST 2003
Try
on launchFile pFileName
switch the platform
case "Win32"
set the hideConsoleWindows to true
put empty into theTitle
if "NT" is in the systemVersion then
set the shellCommand to "cmd.exe"
put quote & quote into theTitle
end if
get shell("start" && theTitle && Qt(pFileName))
break
case "MacOS"
if word 1 of the systemVersion >=10 then
do ("open location "&Qt(pFileName)) as appleScript
else
do ("open location "&Qt(revMacFromUnixPath(pFileName))) as appleScript
end if
break
default
get shell("konquerer" && Qt(pFileName))
break
end switch
end launchFile
Cheers
Monte
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of
> runrev at technetx.com
> Sent: Saturday, 15 February 2003 3:14 AM
> To: Run Time Revolution USE
> Subject: launch
>
>
> Hi all, I am looking for a command that launches a file with the
> associated
> application set by Windows. Using the Launch command wants the
> application
> name along with the file name, and using revGoUrl launches it in the web
> browser along with the helper app. I simply want to mimic a
> double click on
> a file name and let the op system associate the app with the extension.
>
> Thanks again.
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list