osx - Open Mail with AppleScript -


i thought this:

tell application "mail" activate end tell 

although can see mail toolbar @ top. hasn't brought mail app front visible.

my recorder doesn't work reason too, can't use find out need do.

how can this?

you have closed mail window when activate application there isn't open windows show. such have open 1 yourself. note main window in mail called "message viewer". try this...

tell application "mail"     activate     if (count of message viewers) 0         make new message viewer @ front         set selected mailboxes of message viewer 1 {inbox}     end if end tell 

by way, recorder doesn't work in applications i'm not surprised hear doesn't work mail. application author has code ability program , developers (including apple) not this.


Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -