Logon email
Is there a way that I could receive an email when someone logs on to my iMac account?
iMac (27-inch, Late 2013), Other OS, 16gb RAM
Is there a way that I could receive an email when someone logs on to my iMac account?
iMac (27-inch, Late 2013), Other OS, 16gb RAM
Please explain further with more details.
Save the following script as an application. Add that application to the Login Items of your iMac account (in the Users & Groups pane of the System Preferences). An alert message should be sent to you each time someone will log on to your iMac account.
set yourName to "Your name"
set yourAddress to "Your email address"
set theSender to "iMac"
set theSubject to "Alert"
set theContent to "Someone has logged on to your iMac account."
tell application "Mail"
activate
set theMessage to makenewoutgoing messagewith properties {sender:theSender, subject:theSubject, content:theContent, visible:false}
tell theMessage
makenewto recipientat end of to recipientswith properties {name:yourName, address:yourAddress}
end tell
sendtheMessage
end tell
Logon email