Archive multiple folders into one zip (Shell/Applescript)

Hi guys,
This is the third place I'm posting this question and I hope it's third time lucky.
How do I zip several folders from different locations into the one archive using the ditto command or Applescript?
Thanks,
Kuzey
  Mac OS X (10.3.9)  

This script does what you asked (plain vanilla AppleScript)
set theName to text returned of (display dialog "Enter a name for the new folder to be created, loaded and zipped on the desktop" default answer "ZipFldr" buttons {"Cancel", "Enter"} default button "Enter" with title "Zip Folders")
tell application "Finder" to make folder at desktop with properties {name:theName}
set FldrPath to ((path to desktop) as string) & theName
MoveFolders(theName)
tell application "Finder"
set name of (FldrPath as alias) to name of (FldrPath as alias) & ".zip"
end tell
to MoveFolders(newFolder)
set destination to (path to desktop as string) & newFolder
set More to true
repeat while More is true
set aFolder to (choose folder with prompt string "Choose a folder to be moved and zipped")
tell application "Finder" to move aFolder to destination
display dialog "Do you want to continue?" buttons {"That's All", "Get More Folders"} default button "Get More Folders"
if button returned of result is "That's All" then set More to false
end repeat
end MoveFolders

Similar Messages

  • Items from multiple folders into one?

    Any programs that can move thing's out of multiple folders into one?
    I'm thinking in particular iPhoto, roll folders with images inside, want to move them all out and into one folder. I would rather not go through each one and move manually as could take a while, especially if there are say hundreds of folders each with photos inside i want to move into one.
    Must be a program or something that will do it?

    I find one:
    http://www.macupdate.com/info.php/id/29405/bundle-files
    I've never tested it and it has no reviews. Proceed at your own risk.
    EDIT: Make that three!
    Also, http://gotoes.org/sales/CopyMoveFilesSingleFolderMultiple/HowTo_Move_Files_To_SingleFolder.php
    ...and
    http://www.macupdate.com/info.php/id/25597/the-big-mean-folder-machine
    -mj
    Message was edited by: macjack

  • Wht does safari combine multiple download into a zip file?

    I downloaded a MKV file from my NAS remotely which worked fine, however when i try to combine multiple files Safari seems to automatically ZIP the files which means I cannot tell how long the download will take or how much data is left to transfer.
    Anyone got any idea how to prevent Safari from putting multiple files into a zip?
    cheers

    I select multiple files from an online storage device, and select download. at this point for some reason when the download begins the files are combined into a zip file. when the download completes i then try to extract the zip file it often fails to extract.
    If I select any one of the selceted files individually, Safari download begins, and the completed download is not in a zip file format and the file is readable.
    I hope this makes sense to someone!
    cheers

  • Making multiple projects into one SCORM

    I have made multiple Captivate 5 projects that need to transform into one SCORM Module on my moodle LMS website, and count as one SCORM Quiz/Test. I've tried to even load multiple projects in one zip, but it failed to jump to the other projects when I had them all linked together leaving only this: "loading..." when I click the button to open project on the SCORM package. Please Help... Thanks...

    I'm assuming here that your questions are related to the fields in the Quiz Preferences in Captivate.
    The Objective ID is the same for all reporting elements in a given module. The Interaction ID Prefix just helps to distinguish which particular module your question data came from if you happen to be viewing it on drilldown inside your LMS.  As long as it's not the same prefix as for other modules, it should be fine.
    In the Multi-SCORM Packager dialog, the information you add to the fields will be written to the imsmanifest.xml file for the overall package:
    Identifier is to provide an ID for your course that will be unique in your LMS. This will also be used to generate the filename of the final zip file.
    Title is the name of the course.
    Description may or may not be required by your LMS.  Test and see.  In some LMSs this info gets displayed to the user when viewing a synopsis of the course.
    Version is the version of the package.  I actually use the date reversed for my versioning (20110520a) with a letter on the end in case I output more than one version on a given day.
    Duration is important to add. Some LMSs won't regard your package as compliant without this.
    Subject is not something I've generally worried about, but it doesn't hurt to put a brief phrase on what the course topic material is about (e.g. Health and Safety)

  • How do I scan multiple pages into one pdf document on a HP Envy 4501 Printer

    My HP Envy 4501 Printer won't let me scan multiple pages into one pdf document.
    I went to "Advanced Settings", clicked on "file" and made sure that the check box next to "Create a separate file for each scanner page" was unchecked.
    When I clicked the Save button it showed the page that I scanned and showed 1/1.  On the right side it had options for changing the brightness and Contrast, Rotate and Crop and "Back", "Save" and "Done" buttons, but nothing about scanning another page.
    Not to mention HP's Customer Support is useless!
    I'd appreciate any help I can get with this problem.
    Thanks,
    Mark

    Hi BH,
    I see your diagram.  I just scanned something.  The screen that I'm looking at right now shows the preview page and the scroll box to the left of that just like in your diagram.  The screen does not show the + button nor does it show the red x button under the scroll box as in your diagram.  I can't see the plus sign because it is not there.
    I tried re-installing the software and drivers as you suggested but that did not have any affect.
    Thank you for trying to help me with this problem but it hasn't worked, therefore I can't mark the reply "Accept as Solution".
    I've noticed that on HP's support forum web page there is only 1 solved request for assistance.  That doesn't give me much confidence in HP.
    Please reply back to this post to let me know if there is anything else that I can try or if you know someone else at HP that can help.
    If I don't here back from you, I'm returning this HP Envy 4501 Printer to get my money back to use it to buy a printer from one of HP's competitors.
    Thanks,
    Mark  

  • Scanning multiple pages into one document with an automatic document feeder

    when using automatic document feeder to scan in multiple pages - using the Image Capture app, this process does not work for more than 2 pages. However works perfectly in PC environment.
    Using a MacBook Pro with 10.8.4 and a Lexmark Interpret 405S All In One Scanner.
    Is there any other all in one device that can perform this function in a Mac environment?
    Please advise.

    Hi @FentyFly ,
    I see by your post that you would like to know how to scan multiple pages into one file. I would like to help you out today.
    From the HP Scan Software, click on the link for Advanced Settings, then uncheck Create a separate file for each scanned page.
    Here is a URL for how to scan and change the settings. Just select your operating system.
    Scan.
    What operating system are you using? How to Find the Windows Edition and Version on Your Computer.
    If you need further assistance, just let me know.
    Have a great day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How to concatenate multiple records into one

    Hi everybody:
    I want to know if exist some way to concat multiple records into one without using cursors. For example, I have a table named "Authors" like this:
    Lan|Author
    English|Ernest Hemingway
    Spanish|Octavio Paz
    Spanish|Mario Vargas Llosa
    English|Sinclair Lewis
    Spanish|Gabriel García Márquez
    And I want to get this:
    Author
    Octavio Paz, Mario Vargas Llosa, Gabriel García Márquez
    I have worked with SQL Server and I can do something like this:
    CREATE FUNCTION dbo.MyConcat (@lan varchar(10))
    RETURNS varchar(5000) AS
    BEGIN
    declare @retvalue varchar(5000)
    set @retvalue=''
    select @retvalue = @retvalue + Author +',' from Authors where lan = @lan
    return substring(@retvalue,1,len(@retvalue)-1)
    END
    ie, do not use cursors to concatenate records. However, with ORACLE, I have to do someting like this.
    FUNCTION MyConcat(P_Lan IN VARCHAR2) RETURN VARCHAR2 IS
    v_ret VARCHAR2(4000);
    v_element VARCHAR2(4000);
    v_cursor sys_refcursor;
    BEGIN
    OPEN v_cursor FOR SELECT Author FROM Authors where Lan = P_Lan
    LOOP
    FETCH v_cursor INTO v_elemento;
    EXIT WHEN v_cursor%NOTFOUND;
    IF v_ret IS NULL THEN
    v_ret := v_element;
    ELSE
    v_ret := v_ret || ', ' || v_element;
    END IF;
    END LOOP;
    RETURN v_ret;
    END;
    Exist some other way to do this?
    Best Regards
    Jack

    Tks both for answer... I forgot to mention that I am using Oracle 10g. I read about LISTAGG() but this function is available for Oracle 11g release 2.
    I wil read about the other techniques than Hoek mention
    Best Regards.
    Jack

  • Scaning multiple pages into one file on a 4630

    Using HP 4630 printer, windows 8.1, wireless connection.
    Want to scan multiple pages into one file.
    Per user manual, I work from the computer not the printer.
    When first page is scanned am asked if I want to save, I click yes and name file.
    When I scan second page am again asked if I want to save, my file name appears, I am told it already exists and asks if I want  to keep or replace it.
    Whichever one I click, only the second page is saved.
    What am I doing wrong?
    Question: How do I scan mutiple pages into a single document?
    This question was solved.
    View Solution.

    I accept this solution with many thanks!  It was so obvious and I didn't see it.  The User Manual should mention this.

  • How can I combine multiple pdfs into one document?

    I need to consolidate multiple docs into one.  How do I do that?

    It's pretty easy. Open multiple PDF documents in Apple Preview that came with your Mac. Choose View/Thumbnails so you can see the page thumbnail icons. Select any number (or all) of the page thumbnail icons of one document and drag them to any point in the thumbnails of another document.
    For example you can drag page 6 of one PDF between pages 40 and 41 of another PDF doc. But it sounds like you want to select all pages of one PDF and drag them to the end of another PDF doc.
    If you need more powerful document combining you can use PDFpen or Adobe Acrobat Professional, but they cost money.

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for.
    I want to know how to add multiple images into one file/one image, both horizontally and/or vertically. To give you an idea of what I mean, check out :
    http://www.best10apps.com/apps/comic-story,531596060.html
    If you scroll down, you'll see a heading entitled : Screenshots of Comic Story. Notice how there's 3 pictures (divided by borders). 2 of those pictures are side by side, and 1 of them is below the first 2 pictures.
    I want to know how to add different pictures/images and put them into one picture.

    One way is to create template PSD files and populate them with your images using Photoshops scripts.
    Photo Collage Toolkit UPDATED June 12, added Picture Package Support via PasteImageRoll and BatchPicturePackage scripts.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eleven scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples

  • Create multiple folders with one click on documents tab in BP in SAP CRM

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

  • How do I scan multiple pages into one pdf file using the PIXMA MG7520 on Windows 8.0? Please help!

    I recently received a PIXMA MG7520 for a gift.  It works great with my lenovo laptop/tablet running on Windos 8.0.  The one drawback to the HP all-in-one that it replaced is it does not have an ADF.  That being said, there must be some way to scan multiple pages into one pdf file.  I need help figuring thing out.  Thanks in advance!
    Solved!
    Go to Solution.

    Hi mdtolbert54,
    There is a program that comes with the printer called the IJ Scan Utility that can assist you with scanning multiple pages into a single PDF document.  To do this, please follow these steps:
    1. On your keyboard, press the Windows key.
    2. Start typing IJ SCAN UTILITY. The search window opens as you type. Once the IJ SCAN UTILITY is displayed, please select and open it.
    3. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
    4. Click the DOCUMENT SCAN option on the left pane of the window.
    5. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
    a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.
    b.) In the DATA FORMAT field, use the drop-down arrow to select the PDF (Multiple Pages) option. 
    c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.
    6. Once all settings have been selected, click the OK button at the bottom of the window to save the changes. The IJ Scan Utility main screen appears.
    7. Click the DOCUMENT button. Scanning starts. Click the CANCEL button to cancel scanning if needed. Scanned items are saved in previously selected folder location specified in the SETTINGS... window.
    If you find that you need advanced scanning options such as adjusting resolution, brightness, contrast, saturation, color balance, etc. in addition to the options selected above, please click on the SCANGEAR button on the IJ Scan Utility Main screen, then adjust the items as necessary.
    Once the items above are set for document scanning, in the future, you will only need to launch the IJ Scan Utility, then press the DOCUMENT button to perform the scan (unless you want to make changes to the settings).
    Hope this helps!
    This didn't answer your question or issue? Please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How do I scan multiple pages into one document?

    How do I scan multiple pages into one document?
    HP Photosmart 5514-e-All-in-One Printer B111h
    Model CQ 183 A

    Hi,
    Have you tried this (using PDF format).
    Launch the scan from the HP Solution Center
    Click Change Settings.
    Select the desire Scan Shortcut, then click Save to file save options
    Make sure Create One File per scanned page... is Unchecked, Approve and perform the Scan.
    Regards,
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How do i scan multiple pages into one pdf file

    How do I scan multiple pages into one pdf file?

    That depends on your scanning software. Adobe Reader doesn't scan.

  • How do i put multiple albums into one huge album collection?

    How do i put multiple albums into one huge album collection?
    Some examples include: Linkin Park - Studio Collection, Michael Jackson - The Indisposable Collection

    Hi skullkrunch3r,
    Thanks for visiting Apple Support Communities.
    If you "Get Info" on the tracks that are part of your collection, you can use the Compilation option in iTunes.
    In iTunes 8 and later, you find the option to mark multiple items as "Part of a compilation" in the Options tab of the Multiple Item Information window.
    See this article for more information on marking your albums as part of a compilation:
    Why aren't songs with the same album art grouped together?
    http://support.apple.com/kb/TS1468
    Best Regards,
    Jeremy

Maybe you are looking for

  • PSE7 (editor) not opening for Vista 64-bit, any insight?

    Six months ago I bought a new Dell laptop with Elements 7.0 and up until a few days ago it was working great. Now, when I double-click on a .jpg, and as Photoshop is loading I get an error message saying that editor has stopped working and has to clo

  • How to gracefully import CSV files into Numbers.app v3?

    I've posted this as a question at Stack Exchange, also- I have a process, which has worked faithfully for years in Numbers '09, whereby I download my Bank account data in CSV format, then drag that data directly into my Numbers sheet (after creating

  • Somehow I got my website page enlarged and now I can't reduce it, please help

    I have no idea what I did. the mouse started to enlarge the page way more than it should and now the page is stuck at enlarged and when I scroll it down small, it's still way bigger than it should be. I know it's simple but I don't know what to do to

  • ISkin Revo2... enough for phone tobreathe?

    Ok I've ordered this case, and I'm wondering if the iPhone needs like good ventilation? Will it overheat?

  • Doesn't sync all music

    iTunes 10.5.0.142 iPhone 4 - iOS 5.0.1 (9A405) After sync, the phone shows all the music I've got in iTunes, but only some of them plays! In iTunes I have 955 musics, in the iPhone the same 955 musics...