Activate Problem

Hey guys.

Got a little question over here. I need to launch an applesript studio app from another.

Usually you activate an application with

tell application "whatever"
activate --or launch
end tell

BUT… if you write an applescript studio app (build state release) this command doesnt work. It says cannot find “whatever.app” (path is OK!)

any ideas? this sounds so simple but kinda isnt. I tried to target the Exec file inside the package but then i see the terminal running… arg. Just want to start it… like you double click on it!

I’ve never had any problems with application activation, but if it’s really not working, you could always switch to terminal.

do shell script "open " & quoted form of "/posix/path/to/your/application.app"-
do shell script "open " & quoted form of "/Applications/TextEdit.app"

Hope it helps,
ief2

If you can’t solve it in AS, solve it somewhere else… :mad:
Dude you make me feel poor! :smiley:

Thank you

If you want to launch the app but not bring it to the front you can add -g to the open command:

do shell script "open -g " & quoted form of "/Applications/TextEdit.app"