I have a mail rule configured to run the following applescript:
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
- do stuff, including ...
CheckAddressBook (theName, theAddress)
end tell
end perform mail action with messages
end using terms from
on CheckAddressBook (theName, theAddress)
tell application "Address Book"
- do stuff
end tell
end CheckAddressBook
Whenever this email rule is executed, it starts the address book. It is not activated, but it suddenly appears on my desktop. My question is, can teams tell me to start the application silently and exit after completion?
source
share