Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Jan 9, 2014 1:52 PM

Reply
2 replies

Jan 10, 2014 4:27 PM in response to joelw135

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

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.