Add vcard to Contacts with Mail rules and Applescript
问题 I receive a lot of customer vcards to a specific email address. I want to automatically add the vcards to my contacts through the Mail rules and an AppleScript. I searched a lot and found something. I modified it a bit. And the opening and adding process works fine. But only when I choose a file. I can't get the file into a variable from the mail message. I tried it but it won't work. Here is my code so far: tell application "Mail" set att to attachment end tell set thefile to att tell