7
3
I want to run a apple-script on Mac OS X on startup. The script shall run during the complete lifetime of the user session.
What is the best solution to do this?
My Script:
on idle
do shell script "/usr/local/bin/wol -p 9 0:1d:63:19:b7:32"
delay 120
end idle
Any help will be very appreciated.
Thanks for your response. I've already done that. The problem is, that the apple script will be display in the dock during the complete user session. Is there any way to get rid of the apple script symbol in the dock? – road242 – 2010-01-23T19:46:18.117
1Just added that info :) – John T – 2010-01-23T19:47:12.793
Thanks again. Works fine and runs in background.
But I'm asked if I want to run the script on startup. Is there a way to avoid the question dialog? – road242 – 2010-01-23T20:11:27.587
Hmm. Maybe another applescript to tell it "yes" would do? – John T – 2010-01-23T20:14:47.020