Using Javascript and Automator and the Mail App in Yosemite - How to make a new email? -


i stumped mac automator mail app. trying automate sending emails people, letting them know mail has arrived @ our office.

since mountain lion (i have yosemite) can't drag , drop variables recipient or body input fields. so, can't "hi [name], have package." have settle saying "hi, have package" because far know, can't use variable in body.

well, that's not enough me, went searching , found out in yosemite, can use javascript instead of applescript. thought solution, , found great tutorial.

but struggling still basics, how create simple email message. way script editor organizes actions, methods, , calls in library bit confusing. , there no examples.

for example, know how control mail app:

mail = application('mail); 

easy enough, how make message?

message = mail.message(); //doesn't work message = new mail.message(); //doesn't work message = message(); //doesn't work 

and there confusion because 'message' object in library underneath framework option... how access this?

this image practice code i'm trying, library, , methods , objects available mail app.

script editor, library, , library (mail) calls

can explain me why says 'mail' , not 'mail suite' , why messages under 'mail framework' , how create message? lifesaver!

thanks much!


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -