Opening two applications with one AppleScript?

I’ve got two apps that I always open in combination. Is it possible in OS X to create an AppleScript that opens them both? I tried the following, but I get an error message after the first application opens.

tell application “Finder”
activate
open application “SimpleSynth”
open application “MidiKeys”
end tell

The error message says that “SimpleSynth got an error: can’t continue open.”

What am I missing?

You don’t use the Finder to launch applications. You reference them directly:

tell application “SimpleSynth” to activate
tell application “MidiKeys” to activate

Of course you wouldn’t do that with a script app. If you’re trying to run a sript app then you need to launch it first.

Bingo. Works like a charm. Now one click brings up both programs and I haven’t wasted dock space to do it.

Thanks.