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.
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.