Mac Extract Files From Multiple Folders

WinZip can quickly unzip multiple files through its drag and drop interface. You can select multiple WinZip files, right click, and drag them to a folder to unzip them all with one operation. From an open folder window, highlight the WinZip files you want to Extract Right click in the highlighted area and drag to the destination folder. Open the folder using Finder, then type a single space into the search field at the top right. This will open the search options, which will default to “This Mac” (i.e. All files and folders on the computer). Click the name of the folder from which you want to extract files, which will be alongside.

ManageWinZip StandardWinZip ProWindows Compressed Folders
Access all your files from your PC, network, Windows HomeGroup and supported cloud services via the Places listLimited
NEW! Quickly access your frequently used local, network, and cloud folders in Frequent FoldersRequires special drivers for cloud
NEW! Create folders on your PC, network or cloud service from WinZipRequires special drivers for cloud
NEW! Securely delete files and folders with the new Wipe feature
NEW! Restore accidentally deleted, copied, moved or renamed files
NEW! Open a file from the cloud in the correct application, or in an alternate application
NEW! Open and edit a file in the default application or an alternate one
NEW! View property info for files and folders
NEW! Map a folder or network location to a driveLimited
NEW! Copy, move, delete and multi-file rename filesNo multi-file rename
NEW! Copy a path to the clipboard
NEW! Copy a cloud link to the clipboard
NEW! View thumbnail previews of a selected file, whether it is in your zip, on your PC, network or cloud service (if the cloud service supports thumbnails)Local or network only
NEW! Preview the contents of images and documents, rotate and resize images, save an image as a background and share previewed files by email, IM or social media
Includes WinZip Express for Explorer, Office and Photos built-in, and WinZip Express for Outlook as a free download
Maximize display space on devices with auto-hide scroll bars that disappear when not needed
Place a file in a zip without leaving a copy on your system with the Move option
Easily browse and find files in your zip with new Thumbnails
Customize WinZip more easily with redesigned configurable settings
Browse all your local, network and cloud files more easily in the Files Pane
See the right tools for the task with the dynamic, slide-in Actions pane, which changes to display different features depending on your choices
Easily change the interface to Manage mode when you want to quickly access file management features, and see details like file type, size and date
Use WinZip on any touch-enabled device or computer
Use WinZip on new 2-in-1 computers. The display automatically adjusts when you switch between tablet and laptop modes
Rotate, Resize and View full-size images directly from within a Zip file
Temporarily extract Zip files using the 'Unzip and Try' feature and delete any files you do not need
Extract to selectable folder location or current folder location
Zip only the files you want using Include and Exclude filters
Use WinZip's Explorer View to display image thumbnails for easy browsing

Prompting for Files or Folders

It’s generally good practice to avoid hard-coding file and folder paths in a script. Prompting the user to select files and folders makes for a more dynamic script that won’t break when paths change.

Prompting for a File

Use the Standard Additions scripting addition’s choose file command to prompt the user to select a file. Listing 26-1 and Listing 26-2 demonstrate how to use this command to display the simple file selection dialog with a custom prompt shown in Figure 26-1.

APPLESCRIPT

Listing 26-1AppleScript: Prompting for a file
  1. set theDocument to choose file with prompt 'Please select a document to process:'
  2. --> Result: alias 'Macintosh HD:Users:yourUserName:Documents:ImportantDoc.pages'

JAVASCRIPT

Listing 26-2JavaScript: Prompting for a fileFiles
  1. var app = Application.currentApplication()
  2. app.includeStandardAdditions = true
  3. var document = app.chooseFile({
  4. withPrompt: 'Please select a document to process:'
  5. })
  6. document
  7. // Result: Path('/Users/yourUserName/Documents/ImportantDoc.pages')

Prompting for a Specific Type of File

If your script requires specific types of files for processing, you can use the choose file command’s optional of type parameter to provide a list of acceptable types. Types may be specified as extension strings without the leading period (such as 'jpg' or 'png') or as uniform type identifiers (such as 'public.image' or 'com.apple.iwork.pages.sffpages'). Listing 26-3 and Listing 26-4 show how to prompt for an image.

APPLESCRIPT

Listing 26-3AppleScript: Prompting for an image
  1. set theImage to choose file with prompt 'Please select an image to process:' of type {'public.image'}
  2. --> Result: alias 'Macintosh HD:Users:yourUserName:Pictures:IMG_0024.jpg'

JAVASCRIPT

Listing 26-4JavaScript: Prompting for an image
  1. var app = Application.currentApplication()
  2. app.includeStandardAdditions = true
  3. var image = app.chooseFile({
  4. withPrompt: 'Please select an image to process:',
  5. ofType: ['public.image']
  6. })
  7. image
  8. // Result: Path('/Users/yourUserName/Pictures/IMG_0024.jpg')

Prompting for Multiple Files

To let the user choose more than one file, include the choose file command’s optional multiple selections allowed parameter. Listing 26-5 and Listing 26-6 display a prompt asking for multiple images, as shown in Figure 26-2.

APPLESCRIPT

Listing 26-5AppleScript: Prompting for multiple images
  1. set theImages to choose file with prompt 'Please select some images to process:' of type {'public.image'} with multiple selections allowed
  2. --> Result: {alias 'Macintosh HD:Users:yourUserName:Pictures:IMG_0024.jpg', alias 'Macintosh HD:Users:yourUserName:Pictures:IMG_0025.jpg', alias 'Macintosh HD:Users:yourUserName:Pictures:IMG_0026.jpg'}

JAVASCRIPT

Listing 26-6JavaScript: Prompting for multiple images
  1. var app = Application.currentApplication()
  2. app.includeStandardAdditions = true
  3. var images = app.chooseFile({
  4. withPrompt: 'Please select some images to process:',
  5. ofType: ['public.image'],
  6. multipleSelectionsAllowed: true
  7. })
  8. images
  9. // Result: [Path('/Users/yourUserName/Pictures/IMG_0024.jpg'), Path('/Users/yourUserName/Pictures/IMG_0025.jpg'), Path('/Users/yourUserName/Pictures/IMG_0026.jpg')]

Prompting for a Folder

Use the Standard Additions scripting addition’s choose folder command to prompt the user to select a folder, such as an output folder or folder of images to process. Listing 26-7 and Listing 26-8 demonstrate how to use this command to display the simple folder selection dialog with a custom prompt shown in Figure 26-3.

APPLESCRIPT

Listing 26-7AppleScript: Prompting for a folder
  1. set theOutputFolder to choose folder with prompt 'Please select an output folder:'
  2. --> Result: alias 'Macintosh HD:Users:yourUserName:Desktop:'

JAVASCRIPT

Listing 26-8JavaScript: Prompting for a folder
  1. var app = Application.currentApplication()
  2. app.includeStandardAdditions = true
  3. var outputFolder = app.chooseFolder({
  4. withPrompt: 'Please select an output folder:'
  5. })
  6. outputFolder
  7. // Result: Path('/Users/yourUserName/Desktop')

Prompting for Multiple Folders

To let the user choose more than one folder, include the choose folder command’s optional multiple selections allowed parameter, as shown in Listing 26-9 and Listing 26-10.

Mac Extract Files From Multiple Folders

APPLESCRIPT

Listing 26-9AppleScript: Prompting for multiple folders
  1. set theFoldersToProcess to choose folder with prompt 'Please select the folders containing images to process:' with multiple selections allowed
  2. --> Result: {alias 'Macintosh HD:Users:yourUserName:Desktop:', alias 'Macintosh HD:Users:yourUserName:Documents:'}

Batch Extract Files From Folders

JAVASCRIPT

Listing 26-10JavaScript: Prompting for multiple folders
  1. var app = Application.currentApplication()
  2. app.includeStandardAdditions = true
  3. var foldersToProcess = app.chooseFolder({
  4. withPrompt: 'Please select an output folder:',
  5. multipleSelectionsAllowed: true
  6. })
  7. foldersToProcess
  8. // Result: [Path('/Users/yourUserName/Desktop'), Path('/Users/yourUserName/Documents')]
Multiple

How Do I Extract Files From Multiple Folders On A Mac

Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2016-06-13