| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
on 10/4/04 3:15 PM, David Rocks wrote:
Great idea, but. I tried it and it doesn't quite work. If you pass a url to open, it apparently ignores the -a parameter on the call and calls what it thinks is the correct browser. I verified this behavior in the terminal shell as well as in the eclipse plugin. If I'm calling a browser, I would normally be passing a url. Any suggestions, or is there another way to call launch services from the command line.
You could use the osascript command to run a little AppleScript:
osascript -e 'tell application "Safari" to set the URL of (make new document
at the beginning of documents) to "http://www.apple.com"'
-Marc
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden
| References: | |
| >Re: runtime.exec (From: Marc Epard <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.