Re: giving a URL to safari
Re: giving a URL to safari
- Subject: Re: giving a URL to safari
- From: "Elwood C. Downey" <email@hidden>
- Date: Mon, 30 Jun 2003 00:57:04 -0500 (CDT)
Wow, that was easy. Thanks! I see open is an oldie, man says it's from NextStep.
One little bug I think though, it does not seem to allow anchors on local
files. For example, with apache running locally the following opens the
given file and scrolls to the given anchor just fine:
open "http://localhost/3.6man/xephem.html#SkyView"
and the following opens the same document too but just stays at the top:
open "file:///Library/Documents/3.6man/xephem.html#SkyView"
I notice that in the first case safari's URL line includes the #SkyView
but it is missing in the second. I guess open stripped it off?
This is significant to me because I would prefer not to ask the user to start
a web server (aka 'Personal Web Sharing') just to view some local pages.
Thanks in advance for any more suggestions...
Elwood
On Jun 29, 2003 22:01 email@hidden wrote:
> Date: Sun, 29 Jun 2003 03:43:28 -0500
> From: Eugene Lee <email@hidden>
> To: email@hidden
> Subject: Re: giving a URL to safari
>
> On Sun, Jun 29, 2003 at 02:35:01AM -0500, Elwood C. Downey wrote:
> :
> : Is there a way to command safari to open a URL from a shell script?
>
> If Safari is your default web browser (set in System Prefernces ->
> Internet -> Web), then just type this:
>
> open http://www.apple.com/
-----
Elwood Downey, President/CEO, Clear Sky Institute Inc., 319-389-2907
email@hidden, http://www.ClearSkyInstitute.com
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.