|
#1
| ||||
| ||||
| Apple mail initiated AppleScript. I am trying to impliment a applescript I got from one of the forums to put my computer to sleep using the arrival of a 'certain' email to trigger an applescript... here is the information you might need to help me figure why it refuses to work.: The email arrives in the inbox but will not execute the applescript but if I run the applescript outside of mail, it works perfectly. I am lost. If you can help, please do so
__________________ ___________________________ ••• "It is unwise to be too sure of one's own wisdom. It is healthy to be reminded that the strongest might weaken and the wisest might err." Mahatma Gandhi ••• |
|
#2
| |||
| |||
| I'm not exactly sure as to how to get it to work, but I know why it's not working. Your Apple script is only programed to show a dialog box to ask the user whether they want the computer to be put to sleep or not. Nothing in that script tells it to look for whether there is any mail present. It's not the script that is causing a problem. The problem that the script isn't being launched when you get that mail.
__________________ 3G iPhone on Rogers network 20" iMac 1.83GHz Intel Core Duo w/1.5GB of ram 15" Macbook Pro 2.2GHz Intel Core 2 Duo w/2GB of ram - In a world without walls and fences, who needs Windows and Gates? |
|
#3
| ||||
| ||||
| Try this; tell application "System Events" to sleep
__________________ |
|
#4
| |||
| |||
| Bobw: What is a good website that you would suggest for someone that wants to learn how to write an applescripts?
__________________ 3G iPhone on Rogers network 20" iMac 1.83GHz Intel Core Duo w/1.5GB of ram 15" Macbook Pro 2.2GHz Intel Core 2 Duo w/2GB of ram - In a world without walls and fences, who needs Windows and Gates? |
|
#6
| ||||
| ||||
| Quote:
__________________ ___________________________ ••• "It is unwise to be too sure of one's own wisdom. It is healthy to be reminded that the strongest might weaken and the wisest might err." Mahatma Gandhi ••• |