Created
January 25, 2020 08:00
-
-
Save logic2design/3521ccfdef469872ec79d95daf10c0d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Finder" to set shortName to name of (theFile as alias) | |
tell application "System Events" | |
activate | |
set theType to (choose from list {"Animation", "Articles", "Images", "SEO", "Videos", "Websites"} with prompt "Please select the Project type - " & shortName default items "" OK button name {"Next"} cancel button name {"Cancel"}) | |
end tell | |
if theType contains "Animation" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:Animation:" to theFile | |
end tell | |
else if theType contains "Articles" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:Articles:" to theFile | |
end tell | |
else if theType contains "Audio" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:Audio:" to theFile | |
end tell | |
else if theType contains "Automation" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:Automation:" to theFile | |
end tell | |
else if theType contains "Clients" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:Clients:" to theFile | |
end tell | |
else if theType contains "Images" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:Images:" to theFile | |
end tell | |
else if theType contains "SEO" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:SEO:" to theFile | |
end tell | |
else if theType contains "Videos" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:Videos:" to theFile | |
end tell | |
else if theType contains "Websites" then | |
tell application "Finder" | |
duplicate files in folder "MacOS:Users:ijd65:Projects:Templates:Websites:" to theFile | |
end tell | |
end if | |
return {hazelExportTokens:{DocType:theType}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment