Re: Open URL in Netscape?
Re: Open URL in Netscape?
- Subject: Re: Open URL in Netscape?
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Thu, 13 Dec 2001 21:14:24 -0500
on 12/13/01 7:26 PM, Gnarlodious at email@hidden wrote:
>
Entity JJ spoke thus:
>
>
> on open dropped
>
> tell app "Finder" to open dropped using application file id "MOSS"
>
No luck.
>
Here is my next concept:
>
>
on open dropped
>
set textURL to (text of resource fork of dropped) as string
>
set onlyURL to (text 1 thru (location of return of textURL))
>
tell application "Finder"
>
open file "Apple:Applications:Netscape Folder:Netscape 6"
>
tell application "Netscape 6"
>
GetURL onlyURL
>
end tell
>
end tell
>
end open
>
>
I think to translate the resource text of the clipping to a string then
>
extract the "http"portion.
>
>
Anyone?
If Netscape is your default browser, wouldn't just opening the file with
Finder Launch Netscape to the site specified in the internet location file?
If it is not set as your default browser in internet control panel try this:
--
set webFile to choose file --internet location file
tell application "Finder"
set addy to location of webFile
end tell
tell application "Netscape Navigator"
activate
OpenURL addy
end tell
--
HTH
Bob.Kalbaugh