On 8/2/00 2:22 pm, Sjoerd Op 't Land <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> What method do you use to make hyperlinks to the Internet? On Mac it's
> something like:
>
> send "GURLGURL" to "Finder" with "http://www.metacard.com/"
>
> Then the default browser opens, and shows the specified page. What is the
> correct command on Mac and Win?
On Windows, you need to query the registry to get the path to the default
browser, and then use the launch (or shell/open process) command. The last
part of the "else" statement of the following script will work with the
built in functions in MetaCard. The first part works if you have the
Externals Collection installed (it checks if a browser is open and uses that
instead of launching another instance of a browser).
put "www.metacard.com" into tURL
get ext_appsopen()
if "internet explorer" is in it then ext_ddeexecute
"IExplore","WWW_OpenURL",tURL
else if "netscape" is in it then ext_ddeexecute "NSShell","WWW_OpenURL",tURL
else
put word 1 to -2 / of
queryRegistry("hkey_local_machine\software\classes\http\shell\open\command\"
) into tBrowserPath
launch tURL with tBrowserPath
end if
> For the MetaCard team: Is it an idea for 2.4 to make a command like:
>
> go to webpage "http://www.metacard.com/"
> --or
> launch webpage "http://www.metacard.com/"
> --anyone else ideas?
>
> Which is platform- independent.
I agree 100%. Of course, its not possible to do this on all platforms given
they don't all support it, but it should at least be possible to do this
easily on Mac and Windows.
Regards,
Kevin
> --
> Sjo & Co Productions |[EMAIL PROTECTED]
> t.a.v. Sjoerd Op 't Land |+31 (0)30 6380012
> Distelvlinderberm 62 |=030-6380012
> 3994 WT Houten |
> The Netherlands |
Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm