user3096699
user3096699

Reputation: 23

Opening programs in applescript using "Choose file"

I have an application were the user chooses an application to send a command to. but I keep getting an error message when I run it.

set setApp to choose file
tell application [setApp]
end tell

Upvotes: 1

Views: 53

Answers (1)

user309603
user309603

Reputation: 1548

There's a special dialog for choosing an application:

set theApp to choose application

tell theApp to activate

Upvotes: 2

Related Questions