Automating Folder Creation

Here's what I want to do. I'm trying to automate client folder creation. I have a directory called clients. Every time I create a new folder in the clients folder, I'd like for it to automatically ask me what I'd like to name the folder, then I would like it to create 6 directories inside the created folder titled "legal" "spec files" "correspondence" "modules""graphic design" and "archived materials".
How would I go about that with automator?

A couple of options. The first uses automator and a shell script, but you would run the workflow which asks for a folder name instead of you creating it first, as you requested. The second uses Folder Actions so that when you create a new folder in your clients folder it will ask for a name and create the folders.
Automator Method:
1) From Files and Folders, drag over a "New Folder" action.
2) Enter a default name for the folder in the Name: field (or leave blank)
3) Select your Clients folder in the Where: field
4) Click the "Options" button and tell it to "show this action when the workflow runs"
5) From the Utilities, drag over a "Do shell script" action
6) Select the /bin/bash shell
7) in the Pass input field select "As arguments"
8) Enter this code mkdir -p $1/legal/ $1/spec files/ $1/correspondence/ $1/modules/ $1/graphic design/ $1/archived materials/
Save this workflow and run it when you want to create the new folder. If you have quick keys, launch bar, Quicksilver, or the like, you could set up a shortcut...or, you can use cmd-space to call up spotlight and search for you workflow name and launch it from spotlight.
For the Applescript option:
I had some glitches with it in that it seemed to re-run the script after I changed the name. I couldn't figure out if the name change drove the script to run again. Also, after creating the new folder, you have to wait a few seconds for it to trigger. Kind of annoying, I thought.
First, copy this script to a new Script Editor script (Applescript folder).
property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.
on adding folder items to this_folder after receiving added_items
try
tell application "Finder"
set theFolder to item 1 of added_items
set response to display dialog "Please enter a folder name:" default answer "New Client"
if button returned of response is not "Cancel" then
set the name of folder theFolder to (text returned of response)
make new folder at folder theFolder with properties {name:"legal"}
make new folder at folder theFolder with properties {name:"spec files"}
make new folder at folder theFolder with properties {name:"correspondence"}
make new folder at folder theFolder with properties {name:"modules"}
make new folder at folder theFolder with properties {name:"graphic design"}
make new folder at folder theFolder with properties {name:"archived materials"}
end if
end tell
on error theErr
display dialog theErr
end try
end adding folder items to
Save it as a script in your user/Library/Scripts/Folder Action Scripts/ folder. Run the Folder Actions Setup script in the Applescript folder and attach this script to your "Clients" folder:
1) Click on the Enable Actions checkbox
2) Click the "+" button in the left pane and find your clients folder
3) Click the "+" button in the right pane and find your script you just saved.

Similar Messages

  • Can not find the Automation Folder.... neither its Key Command...HELP

    I would be grateful to anyone who could find a solution to the following issue:
    I have read in Logic's 7.2.3 help reference about track automation folder. The sort of arrange window that seems to lurk behind the main arrange page and the place where you can treat the automation data as proper region material. I have tried everything, .. there does not seem to be any key command of the sort, more over I can not find any other way that could give me access to such an editor like the Automation Folder.
    Thank you for reading this.
    Nik

    • 1 • If you choose 'New Track' from the Menu, or use Control-Click-&-hold, you can select from the various options.
    • 2 • No, you don't need to do anything — it's entirely voluntary… I feel guilty for even mentioning it… I just thought that since you seem to be genuinely grateful for the help you have been getting, you had probably not read the article fully. I see that you have just had a useful reply from John Alcock, so now's your chance!

  • ITunes 10.5 breaks automator folder action

    Just like itunes10 did
    osx 10.6.8
    itunes 10.5
    automator folder action with itunes tasks no longer works after 10.5 update.
    Is it the version check again?

    Unfortunately, it seems that this is a cross-platform problem between iTunes 10.5 and all NAS disks. Shared libraries on network drives worked fine under 10.4.1, but now there is just an endless loading cycle with no error message or time-out. There is a bit more about it in this thread.
    Martin

  • Using Automator Folder Actions

    I have an automator folder action that runs to take any pdf file dumped in to the folder, send to the printer and then delete it.
    How do I make this run on a server that I'm not logged in to (effectively as a service), so that if a pdf file is generated somewhere on the network (maybe even a PHP script on a web site hosted on this server) and copied to this folder it still auto prints to the network printer?

    I'm using a hot folder to import to Aperture as well, and also had the same problems when I try to configure it.
    I solve it by creating an action in Automator that will copy all the images from the memory card to a temp folder when a card is inserted in the card reader. At the end of the action all the files inside the temp folder are moved to the actual hot folder, as you said this is almost instant so works perfectly.
    So basicly the workaround is the following:
    Card inserted - Image capture starts and copy all the images to a temp folder - Images then move to Aperture's hot folder - Aperture gets all the images.

  • Automated Glossary Creation

    Currently re-designing our publishing workflow from custom legacy FrameMaker system to InDesign.
    Trying to work out best method of handling automated glossary creation. Currently using mark-up tags in Frame to create a numerical tag for reference to a Glossary term which can then be searched within Frame through a script and each term selected in a book/document to be defined. These terms are defined within a database and then can be searched within the data-base with reference to a specific document while also keeping the data-base current with all such defined terms.
    Any similar type of tagging available in InDesign where a custom tag can be created with a numerical reference (or something similar)?
    Have a load of other questions and would appreciate an Adobe publishing workflow consultant contact if such is available.
    Thanks.
    Jason

    Here is a (horrible!) Javascript to add a tag to any selected text and automatically prompt for an attribute value. You need to add a basic XML framework around your text first, else it will Not Run. (Select a text frame, call up the Tags panel, and then select "Autotag" from the dropdown menu for a basic structure.)
    In this script you might want to adjust the name of the XML tag (the first "tag" in the double 'add' line) and the attribute name ("id" in the second part of the 'add' line).
    In this form, the script does not allow you to re-define a previously tagged item (use the Structure panel for that) or to remove a tag (use Untag in the Tags panel). Running it twice on a selected text will add a new nested tag! (But as always, anything is possible with a longer/smarter/less horrible script.)
    if (app.selection.length==1 && app.selection[0].hasOwnProperty("baseline") && app.selection[0].length)
    tagId = prompt ("Tag with ID:", '');
    if (tagId)
      app.selection[0].associatedXMLElements[0].xmlElements.add("tag", app.selection[0]).xmlAttributes.add("id", tagId);

  • Automator Folder Action Not Running

    I have created a simple automator folder action that helps me to keep my downloads folder organized.    I want to move various files with certain file exensions to specific folder.
    I am finding the process to be intermittantly successful.   Sometimes it works, sometimes it does not run.      I've looked in activity monitor but do not see the automator launcher process running.   I think that is why I am having issues.   At other times, when it does run,  the workflow hangs and I have to kill Automator Runner.
    Any ideas on helping me with automator folder actions?
    Thank you,
    Jerold

    What does Finder -> select folder -> Control-Click -> Services -> Folder Actions Setup say about your existing folder action?
    Are folder actions enabled in the setup window?
    Is your folder action attached to your folder?
    For diagnostics, create a very simple Automator folder action (such as "Ask for Confirmation"; it does not need to make sense, it just needs to be something that you can use to verify the folder action occurred), and attach that to any folder. If that works, build up to making your PDF action work.

  • Automator Folder Action

    I have an Automator Folder action attached to my Downloads folder which moves any .jpg file to another folder where I normally place my images. It works for a while (automatically moving the .jpg files whenever a file is placed in the Downloads folder) and then stops fopr no apparent reason. On occassion when I logoff and on or restart, the action will work for a limited time.
    I don't have much experience with Automator and even less with Applescript. Any help will be much appreciated.
    I use an iMac with OS X 10.9.2.
    Thanks.

    Sorry... this is not an answer to your problem. More like an addition to your question.
    How do you attach an Automator Workflow as a folder action?
    I've made a Workflow to copy all files from an iTunes' playlist to a USB device, I want it to automatically run whenever I plug in the USB device. I've left-clicked the icon for the USB device and then "attach folder action", but I don't see any script to run an Automator Workflow.

  • Folder creation in UCM

    Hi All,
    There is on security group eg:-New Profile,if any new profile check-in ucm automatically the folder structure will create on that perticular profile.
    The folder structure should be ---root folder EMPID_EMPNAME(Emp001_ABC)
    Inside root folder 5 sub-folders like -----Emp Resume,Education details, Experience Details,Salary,Administrator
    Let me know is there any possibility to create automatic folder creation when the new profile check-in inside UCM.
    Give me your valuable suggestions on this issue.
    Thanks.

    hi,
    Actually through mine custom page of mine component in which suppose there is two text box like
    Parent folder
    Child folder
    when i submit the name a new folder should be created under contribution folder with child folder name.
    Scenario is that suppose a project comes and on mine custom page when i enter the project name a folder with same name should be created under contribution folder by calling new folder creation service.
    Plz if u can help me out.
    Thanks once again...

  • Robocopy not copying the folder creation date

    We migrate the data between 2  Windowsfile servers using robocopy and it works finew ith issues. Only issue is it doesnt copy the folder creatiopn date from source to destination server, it does copy the file creation date without any issues. Command
    we use is as below.
    robocopy.exe %1 %2 /COPYALL /MIR /ZB /R:10 /W:2 /TEE /DCOPY /LOG+:robocopy_%3.log
    This command is called using a batch file where we specify the source and destination using the below syntax.
    call Robocopy_Module.bat "C:\Backup" "C:\Restore"
    Kindly advise if this is normal behaviour , if not what is the correct command used to copy the Folder creation dates.

    I was using like this
    Go to CMD prompt,
    RUN as Administrator
    Type  
    robocopy "source path" "destination Path" / MIR
    It will copy including time stamps.
    or create seprate folder in a destination place and copy everything into that folder.
    It will work.

  • Custom property not displaying at folder creation or Details screen

    Hello everyone
    I have created a custom boolean property that I need to have displayed both at folder creation and in the Details screen of a folder after it's created.  The property is in the default namespace, and is in the Custom group.  I have created a properties file for the label and created the necessary meta data extension.  The folder validity pattern is " / " and the Resource Type listed is "normalct" so that it's active for folders only.
    Then I went to Property Groups and listed my new property in the Group Items field of the Custom group.  The Custom group is a part of "all_groups" so that group is displayed both when a new folder is created in KM and when the Details screen of a folder is displayed.
    <i>However,</i> my custom property isn't displaying under the Custom tab when I go to create a new KM folder, nor when I view the Details screen of an existing folder.  What configuration am I missing?  Do I have to develop a custom property renderer for each new property I need to create?  I was hoping I could achieve this result with configuration changes only, but I must be missing something.
    Any help would be greatly appreciated and rewarded. 
    Thanks in advance,
    Fallon

    Hi Fallon,
    actualy, if you want this property to be displayed only for folders and not for documents, you don't need to specify the resource type for folders. Setting "/" or "/**" for "Folder Validity Patterns" and "" (empty) for "Document Validity Patterns" should be enough.
    If you sill experience problems, you have to check all settings, for example with the settings suggested in this <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2654">weblog</a>. If you use the "default" Property Group in the property settings, you don't have to enter the <b>Property ID</b> in a special Property Structure Group that in turn is integrated in the all_groups Property Structure Group.
    Hope this helps,
    Robert

  • Home Folder Creation w/Active Directory

    If this has been asked a million times, just point me to the url for the answer...
    I have done the leg work and have the "magic triangle" working - I can login and auth to AD and get my preferences from OD. I want our user's home folders to reside on our Windows server. I have shared out \\server\students on the Windows server and in AD I am pointing their home folder to our Windows server, but I can't get the permissions right. When I point a new user's home folder in AD to our Windows server, it creates the folder \\server\students\jtest.
    When the user logs in, none of the subfolders are created. Can someone give me some pointers on how permissions need to be set so the subfolders are created on first login?
    This is all pretty new and I'm happy that I got the triangle to work - if I can get this all important piece, I'll be set.
    Thx in advance!

    Hi
    A lot of this depends on how many OUs you have; how deep they go; and how many directories you have nested in each OU or the particular OU the directory for home folder creation is within. The accepted 'recommendation' is not more than 3 deep - generally. Having said that I have made it work with OUs 7-10 deep. Gets trickier after that.
    In my experience the non-creation of expected directories is generally down to permissions not being assigned properly - as you've guessed. Essentially users must be given read/write access all the way down the nested directories. I have seen permissions assigned correctly to a parent folder, with a set of different permissions applied to the next folder down and the next one along again with the correct permissions applied. Folder creation fails when permissions are set in this way.
    What is interesting is the log-in does not fail though you are greeted with the usual "the home folder exists on an SMB or AFP Server etc" dialog box when getting to the desktop. You sometimes get this at the log-in window as well. Although you can also see the message for other reasons - usually down to poor DNS configuration.
    You should be able to log in as the local admin and look at the system.log in Console. You should see an error starting with 'NSurl etc etc. . . ' listed. If you do that's an indication it's a permissions problem.
    Beyond this and without being there it's difficult to tell?
    Hope this helps, Tony

  • Automation Folder, Automation Event Editor, Automation copy and paste help

    Hello. I have been reading the copy and paste automation threads and I still have a few questions. First, thanks to whoever posted the option double-click on track background to select all visible automation for that track. Also, thanks to whoever posted the option click an automation node to select all following visible automation nodes.
    Now, how do you select the middle 10 automation nodes in a track with 30 nodes? Many people have stated that the answer is a rubberband selection. This does not work for me. When I click and drag on the track background using the pointer Logic thinks I'm trying to create a new automation node. When I click and drag on the track background using the marquee tool Logic selects the audio and automation data. Then it only pastes the audio only even though I have "move automation with regions" set to ask.
    Some people have recommended the automation folder. When I open the Automation Event Editor and click on the tiny rectangle in the upper left corner I just get a short list of the automation data. Is this right? If so, how do I select the data I want and paste it to another track? Because when I select the automation data for a track and copy nothing seems to happen when I paste.
    Any automation gurus out there willing to help? Please and thank you in advance.

    Hello Pete. Thanks again. It's odd that something so potentially useful is so hard to get to. I guess that is what people are referring to when they say that Logic has a steep learning curve. Is there another way to get to the automation folder? I think that it should have it's own item in the windows menu instead of sharing it with the arrange window and being contextual.
    The copy and paste in the automation folder (automation arrange seems more appropriate as I cannot figure where the folder is) does not work as I expected. For instance, when I select volume automation from a track then option drag it to the pan automation of another, it still copies it to the volume automation. I then have to command click volume then switch to pan and select copy and convert, which makes it MIDI, which you say is not recommended. Will you tell me why TBA (and I assume RBA) is preferred over MIDI based automation? What is the difference exactly? Thank you so much for your assistance.

  • Using iOS Folder Creation Function on OSX Desktop Dock?

    Just a thought, but I'd love to keep my clutter on the dock on my macbook low by using the folder-creation function on my iPhone and iPad. Anyone else know of a way to do this or think it's a good idea?

    Information about my computer is as follows:
    Machine Name:          iMac G5
    Machine Model:          PowerMac8,2
    CPU Type:          PowerPC G5  (3.1)
    Number Of CPUs:          1
    CPU Speed:          2 GHz
    L2 Cache (per CPU):          512 KB
    Memory:          1 GB
    Bus Speed:          667 MHz
    Boot ROM Version:          5.2.5f1
    It looks like this at the back:

  • Apple Script to automatically apply automator folder action workflows

    Hello
         I'm trying to get an applescript to automatically apply an automator folder action workflow to a folder..
         Getting applescript to apply a scpt file to a folder as a folder action is straight forward. However, it seems that scpt files are different than automator folder action workflows..
         Normally I would just script the folder action in apple script, but this is for someone that can handle automator, but not apple script coding. This whole scripting is to solve the issue of subdirectories being creating and then files or subfolders being created there after. So we need to try to get automator folder actions to propagate though..  easy enough with applescript..
    Any help would be appreciated...

    Here is the code that I needed to happen...  Maybe I just missed something in automator... but this applescript properly applies itself to subfolders, which then allows me to apply specific scripts based on folder names and locations. Also if the subfolders already exist.. the scirpt also is applied to those.
    on adding folder items to this_folder
      createlist(this_folder)
    end adding folder items to
    on createlist(item_list)
              set ActionScript to " REMOVED FOR PUBLIC DISPLAY:ApplyScriptSubfolders.scpt"
              set the the_items to list folder item_list without invisibles
              set item_list to item_list as string
                   repeat with i from 1 to number of items in the the_items
                     set the_item to item i of the the_items
                                       set the_item to (item_list & the_item) as alias
                                       set this_info to info for the_item
                                       if folder of this_info is true then
                              tell application "System Events"
                                                                          display dialog "Attching script to " & the_item as text  --
                                     attach action to folder (the_item as text) using ActionScript
                                                           end tell
                                my createlist(the_item)
                                       end if
                   end repeat
    end createlist
    I appreciate your help.. if you now know what has to happen and have a shorter way of doing so, please do so..
    Thank you again,

  • Need New for Read Access except Folder Creation

    Hi,
       I have some problem which is as follows:
    I have created the folder <b>ABC</b> in KM Content -> documents -> ABC and given the Read Rights to the user <b>user1</b>, then created the KM Navigation iView.
    Now user1 can see the ABC folder and the documents under it. The problem is that now I want to have New in the context menu and in New except folder creation, all are needed.
    How I can achieve it, please help me on this.
    Regards,
    Deep

    Hi,
    From previlages perspective If user1 should create folders under ABC, then he need more than just READ rights!!
    If you need a context menu New Folder, then you should set <b>new_folder</b>
    UICommand to your KM Navigation iView's Layoutset's Collection Renderer. The Collection Renderer property is <b>Collection  Command Group  </b>
    So have a new UI Command group and add the <b>new_folder</b> UICommand to it.
    http://help.sap.com/saphelp_nw70/helpdata/en/87/3d48475ee8bd448c4031aa98d90524/frameset.htm
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

Maybe you are looking for