this is excellent. thank you. i now use that in my app as a mac-only
feature. we have our own special characters system built in, but of
course it's not as good as the native mac one, so this is a pretty
nice feature for our mac users.
On Oct 12, 2005, at 7:06 PM, Elliotte Harold wrote:
try {
Process process = Runtime.getRuntime().exec("ps -awwx");
InputStream in = new BufferedInputStream
(process.getInputStream());
BufferedReader reader = new BufferedReader(new
InputStreamReader(in));
String s = null;
while ((s = reader.readLine()) != null) {
if (s.indexOf(command) != -1) return;
}
Runtime.getRuntime().exec(command);
}
catch (Exception ex) {
// TODO Auto-generated catch block
ex.printStackTrace();
}
_______________________________________________
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