Women in Technology

Hear us Roar



Article:
  Using Python and AppleScript Together
Subject:   AppleScript limitations
Date:   2007-05-10 10:26:37
From:   noahgift
Response to: AppleScript limitations

There is actually a sneeky little way around this. The apple mail program will let you execute applescript on the receipt of a certain type of mail message that you define.


You could always craft a very comprehensive filter that accepts only email messages from a certain address with a certain keyphrase in the the subject line. You could then trigger the sleep code...


One other thing that works remotely as root:


killall loginwindow


This will immediately log you out. Be kind with this command!