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

kfmabey

macrumors newbie
Original poster
Sep 22, 2014
1
0
At an old job we had what I can at best describe as "Smart Folders". When we would have a new project, we would click the action drop down in finder and there would be an option to add a new folder that already had subfolders built into it:
1_Assests
2_Documents
3_Drafts
4_Working Files

Can anyone help me figure out how I can do this? Thanks
 

kryten2

macrumors 65816
Mar 17, 2012
1,114
99
Belgium
At an old job we had what I can at best describe as "Smart Folders". When we would have a new project, we would click the action drop down in finder and there would be an option to add a new folder that already had subfolders built into it:
1_Assests
2_Documents
3_Drafts
4_Working Files

Can anyone help me figure out how I can do this? Thanks

You can do something similar with an Automator Service.

In Automator :

  1. Choose to create a Service
  2. Service receives selected folders in application Finder
  3. Run AppleScript action with the following code :

    Code:
    on run {input, parameters}
    	tell application "Finder" to set finderIconPath to path to resource "Finder.icns"
    	set newFolderName to text returned of (display dialog "Enter a name for the new folder." default answer "New Folder name" with title "New Folder Name Dialog" buttons {"Cancel", "OK"} default button 2 with icon finderIconPath)
    	repeat with aFolder in input
    		tell application "Finder"
    			set newFolder to make new folder at aFolder with properties {name:newFolderName}
    			repeat with folderName in {"1_Assets", "2_Documents", "3_Drafts", "4_Working Files"}
    				make new folder at newFolder with properties {name:folderName}
    			end repeat
    		end tell
    	end repeat
    	--return input
    end run
  4. Save your Service e.g. New Folder with SubFolders

Usage : Right click on folder(s) and select your Service in the Services pop up.
 

Attachments

  • Screen Shot 2014-09-23 at 02.13.55.png
    Screen Shot 2014-09-23 at 02.13.55.png
    103.2 KB · Views: 52
  • Screen Shot 2014-09-23 at 02.19.25.png
    Screen Shot 2014-09-23 at 02.19.25.png
    39.3 KB · Views: 54
  • Screen Shot 2014-09-23 at 02.19.38.png
    Screen Shot 2014-09-23 at 02.19.38.png
    22.8 KB · Views: 75
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.