Applescript Mail Help Needed


#1

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.


#2

Try adding this to the end of your applescript:

tell application "PanoramaX"
	activate
end tell

#3

That did it, thanks.