Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7967441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:43:27+00:00 2026-06-04T06:43:27+00:00

I have been working on this project for my job, which involves backing up

  • 0

I have been working on this project for my job, which involves backing up selected information from a computer to one of our servers. So far I have posted a couple of questions and gotten a lot of valuable help, so thanks everyone for that! The current bug that I have hit is when attempting to duplicate a selection involving multiple errors. If I try and duplicate one folder it works just fine, but multiple just isn’t quite working. The code is below

display dialog "Please enter your augnet username" default answer "username"
set username to (text returned of result)

set server to "smb://orgs.augsburg.edu"

try
    mount volume server
on error
    display dialog "Either you are already connected, or there was a problem reaching the server. Please disconnect and try again."
end try

delay 3

tell application "Finder"
    set backup to make new folder at folder "ORGS:Information Technology:www:kb_images:Migration Testing:" with properties {name:username}
end tell

set theSelection to choose folder with prompt "Please select what you would like to transfer" with multiple selections allowed

tell application "Finder" to duplicate folder theSelection to backup

Any help any of you can give me involving a selection with multiple folders is very much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T06:43:53+00:00Added an answer on June 4, 2026 at 6:43 am

    The choose folder … with multiple selections allowed command will return a list of alias objects pointing to folders (unless canceled, of course). Just iterate over that list with a repeat loop:

    set selectedFolders to choose folder with prompt "Yadda" with multiple selections allowed
    repeat with selectedFolder in selectedFolders
        -- do something with the folder
    end repeat
    

    Generally speaking, when in doubt what a command returns, just execute it and look at the output in the AppleScript Editor result window. In your case, it would look something like this:

    AppleScript Editor command and output

    – which tells you all you need to know: the returned data is a list (it’s enclosed in braces, { and }) and contains alias objects denoted by their HFS path. As to basics like looping, the Applescript Language Guide (reachable through AppleScript Editor’s help menu) has all the details you need.

    Finally, I’d recommend using System Events instead of Finder for the copy operation, as it is faster and operates in the background.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a project which is about data copy from one
So I have been working on this project for a short while now. I
I have been working on this project on Java with multiple modules. Since quite
I have been working on this yahtzee project and have run into a problem.
I have this small project I have been working on. I have a MySQL
i have been working on this text extraction project of various file extensions, but
I've been working on this Haskell project, and I have a cabal file for
One of the products which I have been working started some 10 years back.
I have been working on a project in GWT for which i need to
Have been working on this question for a couple hours and have come close

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.