(Newbie Post) Maintenance Script (Terminal)

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,

Model: PowerMac G5
Browser: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv: Gecko/20060613 Camino/1.0.2
Operating System: Mac OS X (10.4)

Here’s the general format I use in a similar sort of system script customized for my environment:

property pword : {"your pasword"}
property AdminName : {"your local admin short name"}

do shell script "your script without sudo" user name AdminName password pword with administrator privileges

I think I found what I was looking for…