A few questions on multi-platform MetaCarding
Dave Cragg
dcragg at lacscentre.co.uk
Thu Aug 22 06:27:01 EDT 2002
At 5:17 pm -0700 21/8/02, Richard Gaskin wrote:
>LiangTyan Fui wrote:
>
>> Based on what I've observed from the list, the following is what I am using
>> now for browser handling:
>> ----------------------------------------
>> on launchBrowser theURL
>> switch the platform
>> case "MacOS"
>> put "open location "& quote & \
>> theURL & quote into thecode
>> do thecode as applescript
>> break
>>
>> case "Win32"
>> set the hideConsoleWindows to true
>> put empty into theTitle
>> if "NT" is in the systemVersion then
>> put quote & quote into theTitle
>> end if
>> get shell("start" && theTitle && theURL)
>> break
>>
>> case "Linux"
>> # anyone?
>> break
>> end switch
>> end launchBrowser
>> ----------------------------------------
>
>Interestingly, that handler fails under OS X when specifying a local URL: it
>launches the program which created the file rather than the default browser.
>I have not yet found the reliable method for launch the default browser with
>a local URL under OS X.
When you say "local URL",I take it mean a local file path as opposed
to an "http" url on the localhost. It works here with
"http://localhost/etc/".
I can see the logic of this, as you're telling the finder to open a
file, so it does its thing.
If you can control the html files, for example when distributing html
documents on a CD, setting the creator to "????" and the file type
to "TEXT" before distribution makes it open with the default browser
(from limited testing).
Cheers
Dave
More information about the metacard
mailing list