I'm currently trying to write an AppleScript so that my boss can use it when he sets up new accounts on our (Recording) Studio machine. We all share the same iTunes files and folders in the folder /iTunes/ (who would've thought to put that there?) and when we sent up new accounts we need to short cut (or symlink as the case would truly be) their iTunes folder to that one. I know how to do it in theory, I just have never worked with AppleScript before.
Basically what needs to be done is (as thought this were a terminal)
where user=the new users shortname
sudo su 'user'
cd ~/Music/ && rm -R iTunes && ln -s /iTunes/ iTunes
exit
exit
However I don't know applescript. If I could run it without showing the terminal, it'd be nice because my boss is kinda...not as good as he thinks he is and I don't feel like having to sit down and explain what every piece does.
Any help that anyone can give would be much appreciated.
Basically what needs to be done is (as thought this were a terminal)
where user=the new users shortname
sudo su 'user'
cd ~/Music/ && rm -R iTunes && ln -s /iTunes/ iTunes
exit
exit
However I don't know applescript. If I could run it without showing the terminal, it'd be nice because my boss is kinda...not as good as he thinks he is and I don't feel like having to sit down and explain what every piece does.
Any help that anyone can give would be much appreciated.