I tried that but it didn't work
Main Topics
Browse All TopicsI'm using applescript to launch a small java utility, my only problem is the java utility needs 4 parameters, I'm not sure how to pass these parameters to the utility when launching the utility using applescript.
If I was to run it from the terminal prompt it would be as simple as
java -jar "//capturechart" 100 400 500 800
using applescript this is what I have so far
tell application "MacintoshHD:capturechart.
launch
end tell
as you can see I just don't know how to pass those parameters to capturechart.jar
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Are the parameters static? If so, you could make a shell script such as the following to launch the jar and then possibly just launch the shell script as an application from the applescript (save as filename.sh) :
#!/bin/sh
# Launch Capture Chart
java -jar "/location/of/capturechart
then you would chmod a+x filename.sh to make it executable.
could you tell me how I could launch the shell script as an application as per your instruction above.
Also is it possible to call this applescript file from a html page. I have a local html page which has a button. I want when the user clicks on the button to launch the above java utillity, how can I do this.
Business Accounts
Answer for Membership
by: tonsofpcsPosted on 2007-06-05 at 02:17:29ID: 19215597
try tell application "MacintoshHD:capturechart. jar option1 option2 option3 option4" ?