Terminal - copy a few template folders to a long list of folders

doing a family tree project
want to copy the same basic folders (birth, death, marriages, children, etc) to each family member folder. Want to use Terminal - or Applescript, or whatever....
the ditto command seems to lack any recursive destination function, although it can recursively source just fine.
the cp command, born long ago of another Unix world, and still somewhat available on the Mac,  doesnt handle a list of folders inside another folder (recursively copying each to each destination folder)....
The recursive folders part is holding me up. I can do this manually using the option drag copy but who wants to do things the hard way ?

Use the following AppleScript:
tell application "Finder"
set source_folders to {folder "test1" of desktop}
set dest_folders to {folder "test2" of desktop, folder "test3" of desktop}
repeat with this_folder in dest_folders
duplicate source_folders to this_folder
end repeat
end tell
(58964)

Similar Messages

  • How do I copy a few lines from a pdf document to a Word document?  I'm not looking to convert the whole document, just need to copy a few lines here and there.

    How do I copy a few lines from a pdf document to a Word document?
    I'm not looking to convert the whole document, just need to copy a few lines here and there.
    ps.  Wow, what a user UNFRIENDLY site this is!

    In most cases you can just select the text and copy/paste. You can do that unless the file is a picture/scan.

  • Copy messages in template folder into a new one

    Hello all,
    i get a new phone N97 and i need to copy the message templates i created before from the old phone into the new one
    the old one belong to E-Series ( E50 )
    how to do that please
    using Nokia PC Suite or IR or what ?
    thanks for help

    Hello Impish,
    if there are no blue rectangles, there are two reasons for that:
    1. You have inserted a rectangular shape, not a textbox.
    2. You have inserted a textbox as an inline object.
    If it is the second reason - what I think it is - show the wrap inspector (the third button) while the textbox is selected and activate the second radio button at the top titled "Fixed on Page". Now you will see the blue rectangles. A double-click into it will create a new textbox with the same size of the first and containing the text that was covered by the borders of the first textbox.
    You can connect/link two existing textboxes by dragging from the right bottom blue handle of one textbox to the left top blue handle of a next textbox (or vice versa).
    Have in mind that every object will be inserted as an inline object when you can see the text cursor in the page, independent if the text cursor is placed inside the page text area or in a shape.
    If you want to insert fix positioned objects, be sure the text cursor is not visible before insertion.
    Frank.

  • Copy a journal template ?

    is there a way to copy a journal template in HFM 9.3.1 ?

    Hi,
    If you want to move a journal template you have created for a specific scenario/year/period combination to another combination, you can go to the "Extract journals" menu then tick "Extract templates" and generate a jlf file. Once the jlf file is generated, you only need to change scenario, year and period at the beginning of the jlf file and reload it through the "Load journals" menu.
    Hope this is clear and helpful.
    Lionel.

  • Trouble syncing Apple TV. It will copy a few photos and then stop.

    I have a 1st generation Apple TV, a MBR900 Cradlepoint wireless router, and an iMac.  I lost the photos on the Apple TV and am now trying to get them back onto the Apple TV.  When I go to sync using iTunes, it will copy a few of the photos and then stop.  There is plenty of room on the Apple TV. 
    I have tried restarting the router, restarting iTunes, and unplugging and replugging in Apple TV.  It will then download a few, maybe 10 at most, and then freeze.  I am running Apple TV 3.0.1and iTunes 11.0.1 with Snow Leopard on the iMac.
    Is one of the components not doing its job and which one?

    I have now rreplaced the Cradlepoint router with the Apple Airport Express.  The Cradlepoint router was obviously not working right.  I was able to set up the Airport Express in the quickest and easiest of effort.  It then proceeded to sync with the Apple TV with iPhoto the more than 13,000 photos without a break in 3 plus hours. 
    Should have gotten the Airport Express to begin with.

  • How to copy images from iPhone folders other than camera roll?

    How to copy images from iphone folders other than camera roll?
    Images in these folders are synced to iPhone from different laptop and I need to download them in my laptop. I am able to download and access only those pics which are present in Camera Roll folder.Remaining pics are in different folder and also appearing in Photo Library from all folders.
    Same problem is with iPod touch as well.

    - Via a computer program like PhoneView or Touch Copy
    - By using an app like Photo Transfer

  • Error when trying to copy one of my folders, or compress it in the finder

    When I try to copy one of my folders, or compress it in the finder, a window pops up with this message: "The operation can't be completed because an unexpected error occurred (error coded -8060)". It does not say which file or folder is the problem. I don't see anything relevant in the Console either.
    Please advise, I need to back up that folder.  It is where I keep Xcode projects

    I found some subdirectories within my Project folder that were complete duplicates of other directories. After deleting those, I no longer had the error.  I don't know where they came from, but think they may have been created after an upgrade, say from Xcode 3.0 to 4.0 but don't remember.  Anyway, don't know any more about it, only that it went away after I deleted those duplicate subfolders.  Good luck !

  • Two template folders created??

    I am completely stumped.  I CANNOT update my child pages that are linked to templates.
    I am very new to Dreamweaver CS4 along with web design in general and have created a fairly straight-foward site (nothing fancy). 
    My confusion comes from Dreamweavers folder (path???) structure.  I have created two templates that are linked to the webpages but I have TWO template folders.
    I am certain I am getting the jargon wrong, but why did DW create two template folders and which one do I update and "put" onto my server?
    It seems nothing I do makes changes on my site and the more I read, the more confused I'm getting about the template path..lol..I am truely getting lost and flustered.
    I'm not even sure what information to include to assist in someone helping me.  If someone could explain the folder path in plain english I would be grateful.
    My folder structure looks like this:
    Site - nss
         File Uploads
         H&S Manual
         Inserts for Folders
         NSS Web
              Templates
         Templates
         Toolbox Talks
    There are more folders under NSS Web but I wanted to illustrate where DW has put the two Template folders.  Both template folders contain the same two template pages (.dwt files)
    Thank you in advance,
    Mike

    DW will place the templates folder under the root directory. While working in the NSS Web directory, DW has thought that NSS Web was the root directory.
    Personally I would use the template that resides within the Templates directory that resides under Site.
    This may help http://help.adobe.com/en_US/dreamweaver/cs/using/index.html
    Gramps

  • Can we copy standard buisness area folders to customise business area folde

    hai,
    I want to copy standard business area folders to customise
    business area folders.How I have to link AP_PO_INV and how many folders
    i will get in customise business from ap,po and inv.what are they.
    Thanks

    Hi,
    As Russ says, yes you can take the supplied folders and copy these into your own custom Business Area - then add or subtract to them as much as you like.
    How you join them will depend on your APPS set up - assuming that the joins supplied by Oracle do not fit your purpose.
    You can also join your own simple/custom folders to these standard folders - again this depends on what you want to report and how you have set up your APPS (use of DFFs, custom tables etc)
    Matt

  • After the resent sys update to Elipsis 7 KitKat, I can no longer add, rename, move, copy, create files or folders to my SD. What's up with that?

    Updated sys to Kit Kat as recommended by Verizon. Now I can no longer add, move, copy, create files or folders to SD card. What's up with that?

    There is no such thing as a stupid question.  With Kitkat you are very limited in what you can do on the sd card, an app can write to its own folder on the sd card only, here is a little more info here How to bypass Android 4.4 (KitKat) external SD write restrictions without root
    You are basically restricted to writing to a single folder per app on the sd card.  The other option is to move things by connecting your device to a computer and using it.

  • Where did Archives and Templates folders go?

    Hi All,
    I'm using the latest version of TB in Win 8.1x64. Archives and Templates folders do not show up in the left pane. (No, they are not collapsed.) Archives and Templates are turned on in Account Settings and directed to the correct account. There are MSF files for both in Profiles, but no Archives or Templates files.
    If I create new folders they are labelled "-1" in Profiles and show up in the left pane, but as plain folders with no icons.
    So how do I make the originals show up?

    Open Finder.
    Click GO and press the OPTION key. You will see your user Library folder in the list. Click it to open it in Finder.
    Left click and drag the Library folder icon at the top center of the Finder window to your Favorites on the left side of Finder to always have it available to use.

  • SRM validate the Catalog Item when copying from old templates

    Do SRM validate the Catalog Item when copying from old templates and previous shopping carts? Is this standard functionality?
    Thanks,
    Rajan

    Continuation to my previous post:
    My findings based on the analysis I did. Might help people who are looking for similar info.
    As Jason mentioned, the Subroutine name is CATALOG_CONTENT_VALIDATE_GET
    This is under package BBP_SC --> Function Group: BBP_SC_APP
    After making a webservice call to get catalog details, the mapping is done as below.
      IF sy-subrc EQ 0.
        READ TABLE lt_enriched_item INDEX 1.
        IF sy-subrc EQ 0.
          ls_item_validate-price      = lt_enriched_item-price.
          ls_item_validate-currency   = lt_enriched_item-currency.
          ls_item_validate-price_unit = lt_enriched_item-price_unit.
          ls_item_validate-deliv_date = lt_enriched_item-deliv_date.
          ls_item_validate-leadtime   = lt_enriched_item-leadtime.
          ls_item_validate-unit       = lt_enriched_item-unit.
        ELSE.
          lv_validate_item_exception = gc_yes.
        ENDIF.
      ELSE.
        lv_validate_item_exception = gc_yes.
      ENDIF.
    If you go one level deeper into subroutine  PERFORM sc_itm_copy_to_basket, you can see that following validations are performed.
    If EITHER price, currency or price unit changes, we get the message u201C&: Price changed due to catalog validationu201D
    If UOM changes, we get the message u201C&: Unit of measure changed in catalog; item not transferredu201D
    When Delivery date or lead time changes, no message is raised but the new values are copied.
    In a nut shell, the fields that are considered for validation are Price, Currency, Price Unit, UOM, Delivery date, Lead Time.
    Thanks,
    Seyed

  • The computer I originally started using iTunes on a few years ago is no longer functional. How do I make the same library appear on my new computer with the newest iTunes?

    The computer I originally started using iTunes on a few years ago is no longer usable, but for some reason some of the songs I have now are not showing up in my library on the new laptop I just bought. How do I consolidate the total songs on my iPhone to include them all in a new library on my iTunes in this new laptop? And why isn't this new laptop letting me update to ios 6 without deleting everything on my phone?

    Your music will ONLY be where you put it.
    It will not magically appear anywhere.
    You buy one and only one download.  it is your responsibility to move/copy/backup your music.
    You need to copy everything from your old computer, or your backup copy of your old computer, to your new one.
    Leaving your e-mail address on a  public forum may not be wise.

  • How do I get more effects in my action box?  I am only showing a few, like BOTTOM BORDERS, LOSE WEIGHT AND SPECIAL EFFECTS. That is all. The turotials I've checked into all show a long list of effects in the actions box. If anyone could help, I appreciate

    How do I get more effects in my action box? I am only showing a few, like "Bottom Borders, Losing Weight, Resize and Crop, and Special Effects. And they do not list but a few effects. When I have watched the tutorials, they are showing a long list of effects in the action box. (with a side space bar)  I do not.  When I have clicked on the little arrow at top, and clicked "Load Actions", a box comes up, but it is blank,saying "no items match your search".  I'm lost!  If someone could help, it would be much appreciated!  I would like to start using this.
    Thank you. 

    Apple Computer Customer Relations:
    1-512-674-2500

  • Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshpp onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked for a p

    Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshop onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked for a password... any ideas how to get it working again?

    You can never, never migrate an installed copy of PSE. It's just too complex and you can't get to all the bits and bobs.
    First you will have to download and run this:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    which will not seem to do anything, but is necessary to break the links within PSE so that you can pitch the bits manually. Then you will have to go around, not only to applications, but also to your username>library>preferences and most importantly to the library at the top level of your hard drive>application support>adobe, and remove everything you can find. Spotlight will not help with this kind of search, so don't try that.
    Then you can install PSE from scratch.

Maybe you are looking for