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



Eugene Lee wrote:

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'

You haven't really tried this, have you?

I think it's the LaunchServices framework that throws away the #SkyView.

Here is a method that works: I don't know how to do this with Safari, but with Mozilla you can use AppleScript. From the command line, the following will work (one line)

osascript -e 'tell application "Mozilla" to OpenURL "file:///Library/Documents/3.6man/xephem.html#SkyView"'

Maybe something similar will work with Safari, but I don't know the syntax.

--
Martin
_______________________________________________
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.

References: 
 >Re: giving a URL to safari (From: Eugene Lee <email@hidden>)



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.