How do I bring a java application to the front on a Mac?
===

I have a java application that I want to bring to the front at regular intervals, but I haven't been able to do this.

[Aside to people wanting to offer user interface advice. Yes, this is normally horrible, but I'm the only one using the app. It's my time&billing app, and I'm tired failing to record billable hours!]

I've tried with applescript, and have no problem getting Firefox to do this, with the following script:

    tell application "Firefox"
	repeat
		activate
		delay 10
	end repeat
    end tell

But I don't know how reference a java app in applescript. (that is, I don't know what to put for the appication's name).

tell application "java" doesn't work. (and there may be several java apps running). 
tell application "NameShowingInMenu" doesn't work, either.
I've tried setting "-Xdoc:name, that works for setting the name shown in the menu, but not for a "tell" target.

Any ideas?

Thanks!




