2012-01-16
Sometimes an Applecript needs authentication. For example, this happens if you use do shell script to run a UNIX command with administrator priveleges:
do shell script "chown -R Vickash " & ¬
quoted form of "/Users/Vickash/Desktop/My Files" ¬
with administrator privileges
A dialog box appears prompting the user for their password before the shell script runs. This is fine if your Applescript is always manually run by the user. But for Folder Actions, or any type of script that runs on a trigger, this can be a problem. What if ... Read More »