![]() |
OK, finally I reproduced the error with the shell command I was told to use. Here is both the command and the exact error I encountered:
Code:
do shell script "/bin/rm -rf '/Users/bduffey2/Desktop/I_AM_LEGEND/'" |
try
do shell script "rm -Rf /Users/bduffey2/Desktop/I_AM_LEGEND/" with administrator privileges this will prompt you for a username and password. or try do shell script "rm -Rf /Users/bduffey2/Desktop/I_AM_LEGEND/" username 'bduffey2' password 'yourpassword' with administrator privileges this will bypass the password dialog you generally don't need to use the full path like "/bin/rm", the sbin and bin are the first places that executables are looked for. If "rm" was somewhere else, then you would need to. |
Oh, you should remove the "/" at the end of the path to the folder "I_AM_LEGEND"
|
Thank you. Since I am using a changing location, however, i have the first part and then 'quoted form of loc' to represent my location to the folder. How would I put in the username and password part with that? I tried just adding it to the end of the line but Script Editor comes up with an error.
|
| All times are GMT -5. The time now is 05:56 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.