Use Applescript to run a terminal command.. stuck
So, I started writing an Applescript (that I will turn into an Application so I can just click it to execute all in 1 click) that opens terminal, enters the command BUT the command is only executed if I enter the necessary password. but, that is where I am stuck. I can open terminal, have it enter the command, but I am not sure how to then follow-up with the password to execute the command when prompted. Here is what I have and it works perfect
tell application "Terminal"
activate
do script "blahblahblahblahblah" in front window
end tell
I have tried these variations, but no luck
do script "blahblahblahblahblah" password "passwordhere" in front window - as a means of entering script and the password in 1 shot
do script "passwordhere" in front window - as a means of then entering the password after first script runs
so, not sure how to get it to follow up the command at the password prompt that comes up and enter the password. Yes, I will keep working on it.. but if you can see the step or help, please advise
I USE to be a Level 3 with hundreds of post ... no seriously, Mac OS X (10.5.6), Loaded G5 + 30" Dell + MBP 17"