Applescript Mail Help Needed

I have a procedure which will create and que an email using applescript, it works fine. My question is how to return control to PanX after the email is qued.

right now I’m using:

tell application “Mail”
– do stuff
– save the email
End Tell

This does leave the email open, so I can double check it. But the procedure does not continue.
I tried setactivedatabase “”, but that didn’t work.

1 Like

Try adding this to the end of your applescript:

tell application "PanoramaX"
	activate
end tell

That did it, thanks.