Hey everyone.
I’m new here and new to AppleScript. I’m not a programmer and I don’t want to become one, however, AppleScript seems easy enough to learn for an average user like me.
Every Friday, I would like my computer at work to run this maintenance script in Terminal
tell application “Terminal”
do script “sudo periodic daily weekly monthly;echo Done”
end tell
My problem is that Terminal asks for a password and I don’t know how to tell the application to enter in the password. What do I write in the script to tell it to put in the password?
I’ve searched the site/forums and couldnt find anything. Maybe i’m searching for the wrong thing?
Thanks for any help,
Ryan
Model: PowerMac G5
Browser: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.4) Gecko/20060613 Camino/1.0.2
Operating System: Mac OS X (10.4)