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



That's it! I pulled down some sample safari scripts and after a bit of
trial-and-error the following works perfectly (all one line):

osascript -e 'tell application "safari"' -e ' set the URL of the front document to "file:///Library/WebServer/Documents/3.6man/xephem.html#SkyView"' -e 'end tell'

Thanks to all

Elwood

On Jun 30, 2003 10:45 Martin Costabel wrote:
> 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.

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

References: 
 >Re: giving a URL to safari (From: Martin Costabel <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.