Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'sending password via applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
sending password via applescript
Authored by: ChaChi on Mar 03, '02 04:27:58PM

You can send your password in this format:

do shell script "Terminal commands here" password "Administrator password here" with administrator privileges

Be careful with this because your password gets stored in plain text within the AppleScript. Anyone who knows anything anout AppleScript could view your password. Better to use this:

do shell script "Terminal commands here" with administrator privileges

This will ask the person who runs the script for a password.

Hope this helps...



[ Reply to This | # ]