Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: giving a URL to safari



On Mon, Jun 30, 2003 at 12:57:04AM -0500, Elwood C. Downey wrote:
: 
: 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? 

Nope.  It's a shell issue.  Use single quotes instead, like so:

	open 'http://localhost/3.6man/xephem.html#SkyView'
	open 'file:///Library/Documents/3.6man/xephem.html#SkyView'


-- 
Eugene Lee
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.