Expand my Community achievements bar.

button to launch another application

Avatar

Not applicable

what is js for launching another applicatoin?

4 Replies

Avatar

Level 7

What application are you trying to launch? You can launch a url using:

app.launchURL("http://www.abc.com", true);

where abc.com is whatever web address you're trying to reach; are you trying to open another program, or possibly another form?

Avatar

Not applicable

Trying to launch an .exe on user local machine not a URL.

Avatar

Level 7

I found this:

To add  script to open a user-specified PDF file
Add the following script to the Open  button:
 app.openDoc(FilePath.rawValue);

In the help section under "Opening an application from a form". This
wouldn't seem to fit what you want for 2 reasons.

1. The example requires the user to input the path of the file into
a text field
2. It doesn't work. I get a js error saying that security settings
prevent access to that method

If you can get around the security settings and the path to the
application is a known quantity for your prospective users, I would
think you could hard code in the path on the click event. The problem
is getting around the security settings.

addendum:
I'm able to get another Adobe pdf to open with this script but so far
nothing else.

Avatar

Not applicable

You will not be able to launch an exe from Acrobar/Reader. That would be a security risk.

Paul