PDA

View Full Version : applescript (hair is coming off)




sakin4life
Jun 15, 2011, 06:55 AM
Guys,

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"

try

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

end try

end tell.

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



SaxmanTDS
Jun 15, 2011, 08:49 AM
I Googled applescript username variable and came up with this entry in another forum:
http://hintsforums.macworld.com/showthread.php?t=101852

Hope that helps!

--Mike