May 9, 201213 yr I would like to make a script that would create a directory of aliases to clients project folders. My staff members need to access clients working folders to save projects in. All of the clients folders are in a share on our fileserver. What I would like is some kind of script that will make a directory on a share with the staff members name, then fill the directory with aliases to that staff member's assigned clients' project folders. I do have a relationship from the clients to the staff members and I have a calculation to the clients folders. I have used scriptworks 360 Scriptmaster to create folders in the past, but I am not sure if I should use that or some other script to create the staff folders. Then on making the aliases is where I need the most help. Thank you for your time! -=fred=- PS if i omitted some important information let me know
May 11, 201213 yr Author Well I figured out how to do it using an apple script. If any one is interested here is my script: Set Variable [ $staff; Value:Staff::Full Name ] Set Variable [ $clientfolder; Value:"/Volumes/ClientDrive/"&Clients::Last First ] Set Variable [ $client; Value:Clients::Last First ] Set Variable [ $target; Value:"/Volumes/Test Alias/" ] Set Variable [ $makefolder; Value:"set make_folder to POSIX file "&Quote($target)&" as alias"&¶& "try"&¶& "tell application "Finder"" & ¶ & "Make new folder at make_folder"& ¶ & "set name of result to"&Quote($staff) & ¶ & "end tell"&¶ & "on error errmsg number errNum"&¶ & "delete result"&¶& "end try" ] Perform AppleScript [ Calculated AppleScript: $makefolder ] Set Variable [ $makealias; Value:"set location_folder to POSIX file "&Quote($target&$Staff&"/")&" as alias"&¶& "set target_folder to POSix file "&Quote($clientfolder)&"as alias"&¶& "try"&¶& "tell application "Finder"" & ¶ & "make new alias file at location_folder to target_folder"& ¶ & "set name of result to"&Quote($client) & ¶ & "end tell"&¶ & "on error errmsg number errNum"&¶ & "try"&¶ & "delete result"&¶& "end try"&¶ & "end try" ] Perform AppleScript [ Calculated AppleScript: $makealias ]
Create an account or sign in to comment