now i am able to log in Root and give the Root’s password to the terminal.
But after, my (4) command “do script” appear in other window (not in the root log window).
My command lines do insert in the SAME window of root’log.
thank for your help
Open the AppleScript “Untitled” in a new Script Editor window.
Yes i think i need to use the Terminal because we need (at work) to perform this script on all Standard Accounts on the Mac (without permissions to Read-Write on these files). (we have few Mac with one Admin Account and many Standard Accout to many employees)
With “Do Shell script” we need to be in Administrator Account (or root) to run these commands. The only way i see to run commands with Standard Account (Standard User), it’s with Terminal.app., login root user (in Terminal), enter root password and perform commands.
I f you see my precedent message with my code), i am able to log in root in Terminal.app, enter my root’s password (i don’t know if it’s the best way… keystroke blahblah), but when i write again “do script”, Terminal.app open an other window… not log in root… whitout privileges…