WARNING NEWBIE!!
I’ve written an Applscript do copy some files using the Ditto shell command but I want the user to put in their password, but an AppleScript App I can’t hide (change) there Password to ¢¢¢¢¢. I’ve been told it’s possible in AppleScript Studio to have a secure text field??
So my first question is: How do I use the secure text field command.
Here is my Script:
display dialog “What is the admin Password?” default answer “”
copy the result as list to {the thePassword, the button_pressed}
set theSourceFile to (quoted form of POSIX path of (“Macintosh HD:Users:benr:Desktop:thePref:”)) & “*”
set thePrefsFolder to (quoted form of POSIX path of (choose folder)) & “Library/Preferences/”
set command to "ditto -rsrc "
do shell script command & theSourceFile & space & thePrefsFolder password thePassword with administrator privileges