Two Laptop Bag*
The moose likes Other JSE/JEE APIs and the fly likes java code to do task on other application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java code to do task on other application" Watch "java code to do task on other application" New topic
Author

java code to do task on other application

Ravisankar Jegadeesan
Greenhorn

Joined: Jan 19, 2013
Posts: 2
I need a java program to do a set of tasks between applications. For example in excel i have a list of record IDs, i need to open those records in another application (3rd party application, which i don't know the API). And I need to retrieve record title, time etc... I need to save those data into excel. I heard about Robot class in java. But the problem is if i open a record i may take 10 seconds or 2 minutes. So the java program should wait until it opens the record. Also I don't know how to make the 3rd party application as active window.

Please help in this...

Thanks in advance Ravi
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Controlling other executables is easier in the OS's native scripting language - AppleScript on OS X or Windows PowerShell on Windows. You can invoke scripts written in those languages from Java code via Runtime.exec or the ProcessBuilder class.


Ping & DNS - updated with new look and Ping home screen widget
Ravisankar Jegadeesan
Greenhorn

Joined: Jan 19, 2013
Posts: 2
Hi Ulf Dittmer

It seems I need to install Powershell in my system. Unfortunately i don't have privileges to install this. I am able to build a Java programm and run it.
Is there any way in Java?

Thanks in advance
Ravi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java code to do task on other application
 
Similar Threads
3rd party software
Error in excel sending additional request
Error in excel sending additional request
JAVA AND EXCEL CHART
JAVA AND EXCEL CHART