revGoURL on 10.2.3
Richard Gaskin
ambassador at fourthworld.com
Mon Jan 5 17:19:44 EST 2004
Scott Rossi wrote:
> On 1/5/04 12:55 PM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:
>
>> I have not yet
>> come up with a robust solution for launching a local file in the user's
>> default browser in Panther. :(
>
> I know that GURL is broken in Panther, but does the following fail as well?
>
> on mouseUp
> answer file "Locate HTML:"
> if it is empty then exit mouseUp
> put it into tPath
> put \
> "tell application" && quote & "Finder" & quote & cr &\
> "open location" && quote & "file://" & tPath & quote & cr &\
> "end tell" into S
> do S as AppleScript
> end mouseUp
Yes, but not in the default browser if the local file has a creator code for
another app assigned to it.
Curiously, this:
on mouseUp
answer file "Locate HTML:"
if it is empty then exit mouseUp
put it into tPath
revGoUrl tPath
put the result
end mouseUp
...neither launches the local file nor displays a result.
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list