View Full Version : applescript (hair is coming off)

Jun 15, 2011, 06:55 AM

Please, I need someone to help me with this.......I'm relatively new to applescript.

I have an AD environment where each user have its network folder mapped once logged in. However, I want a similar thing for mac users. Now below is the script I have written, which works for one user....how can i make it work for all the users in AD.

set username to James

tell application "Finder"


mount volume "smb://ip_address/share_name/James

end try

end tell.

Someone help, my hair is coming off gradually......thanks.

Jun 15, 2011, 08:49 AM
I Googled applescript username variable and came up with this entry in another forum:

Hope that helps!