I have Mail set up to execute an AppleScript when it receives an email with the subject “AppleScript” and I was wondering how I could pass the body of this email to the script for execution.
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The body of a message can determined my using the
contentproperty of the message that has been passed to the rule action. To execute the script use therun scriptcommand.The following script is an example of how to write an AppleScript that can be attached as a rule action that will run the body of the message as an AppleScript: