Guest User

Untitled

a guest
Aug 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. (*
  2. Set Mail.app Message Sender
  3.  
  4. By Matthew McVickar
  5.  
  6. Description:
  7. Mail.app's AppleScript library does not allow access to the properties of the outgoing message object. The only way to change those properties is by GUI scripting. This particular script changes the sender of the message. If you have, for example, personal and work email addresses between you switch often, this script is essential.
  8.  
  9. Instructions:
  10. Change the 'X' in the fourth line of the script below to the number in the 'From' dropdown that corresponds to the email address you want. (E.g., if the email address is the second one down the list, put a '2' in there.
  11.  
  12. *)
  13.  
  14. tell application "System Events"
  15. tell process "Mail"
  16. click pop up button 1 of window 1
  17. click menu item X of menu 1 of pop up button 1 of window 1
  18. end tell
  19. end tell
Add Comment
Please, Sign In to add comment