Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Vash108

macrumors member
Original poster
Nov 12, 2015
60
51
Hey all, I am attempting to make a script that will map users folders on our network.
I wanted to know if there is a way to pull the user name of who is logged in and add it to the path of the folder I am attempting to map.

For example: mount volume "smb://<server name>/users/<user name>"

I know I can use the following lines to pull the current user. But how would I apply that information to the volume mount path I am attempting?
Tell application "System Events"
name of current user
end tell

I am still a bit new to this.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.