Jump to content

Script to Make Alias to Client Project Folder


This topic is 4340 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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 ]

Link to comment
Share on other sites

This topic is 4340 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.