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 11:18:15 -0500 (CDT)
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.