Created
February 11, 2016 08:48
-
-
Save howard-wang-nl/531d4aa0615941d5487f to your computer and use it in GitHub Desktop.
Open Javadoc jar file in Firefox browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ ! "$1" ] | |
then | |
echo "Open Javadoc jar file in Firefox browser. | |
Usage: $0 <jar file>" | |
exit 1 | |
fi | |
osascript -e "tell application \"Firefox\"" -e "activate" -e "open location \"jar:file://$1!/index.html\"" -e "end tell" | |
# open -a Firefox --args "jar:file://$1!/index.html" | |
# This command is not stable. Firefox is only able to open the URL at first time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment