how to choose application?

I want to have a user choose which application is used to open a certain type of file. This will be a preference. So I need for the user to be able to choose an application from a dialog box… like in applescript using the “choose application” dialog. So I tried it and I can’t get any returned value from the choose application dialog. The choose application window pops up but after choosing the application there is no response from anything about what the chosen application was. No value was returned after the call, nothing happened in the “dialog ended” handler, and nothing happened in the “panel closed handler”.

So how do a get a user to choose an application and have that value returned to the script?

Hi Regulus,


choose application as alias

returns the alias of the chosen application, but isn’t it easier to use a simple given list of all possible applications,
then filter the currently installed applications if necessary and choose the application form that list

Thanks StefanK. That did the trick.

I plan on having a default application, one I know is on everybody’s machine handle things… but I just want the user to be able to change it if they want so this seemed easy. :rolleyes: Most likely the user won’t make any change though but it’s there if they need it.