PDA

View Full Version : some questions.




chrislee8
Jun 1, 2006, 10:57 PM
hi all,

1. how do i test if jre and jdk are installed?

2. how do I find out battery info from applescript. it is a powerbook g4.

thanks



chrislee8
Jun 2, 2006, 08:09 AM
1. java -version

2. find out yourself.

chrislee8
Jun 2, 2006, 08:09 AM
1. java -version

2. find out yourself.

thank you chris.

chrislee8
Jun 2, 2006, 08:09 AM
thank you chris.

you are welcome.

iSee
Jun 2, 2006, 09:02 AM
Ahh, I hate to interrupt your...er...conversation, but I did run across this script a few days ago:
http://homepage.mac.com/jonn8/as/html/Battery_Info.html
It did not work on my MBP, however. At its core is a call to ioreg, which did not seem to be returning the expected info. The requirements did list Powerbooks and iBooks, but not MBPs, so it will probably work for you.

Hope this helps... Now you can get back to talking to, um, each other... :D

chrislee8
Jun 4, 2006, 12:08 AM
Ahh, I hate to interrupt your...er...conversation, but I did run across this script a few days ago:
http://homepage.mac.com/jonn8/as/html/Battery_Info.html
It did not work on my MBP, however. At its core is a call to ioreg, which did not seem to be returning the expected info. The requirements did list Powerbooks and iBooks, but not MBPs, so it will probably work for you.

Hope this helps... Now you can get back to talking to, um, each other... :D

Thanks. I don't have to talk to myself now. :P