• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Copy/Paste in the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copy/Paste in the Finder


  • Subject: Copy/Paste in the Finder
  • From: Alex Ivanov <email@hidden>
  • Date: Wed, 17 Nov 2010 11:04:52 -0800 (PST)

I manually select let's say 20 files in Finder and then I right click on the files and select "copy". Now those 20 files are placed in the clipboard.

What I want to do with apple script is "Paste" these files to a specific folder.

What I've done so far is a script that pastes a single file from clipboard:

tell application "Finder"
    set destination_folder to POSIX file "/Users/me/myfolder"
    copy file (the clipboard) to folder destination_folder
end tell

I get an error if in the clipboard is more than one file, but works ok for a single file.
How can I extend this script to paste more files from clipboard? I want also to do this in a single operation so that Finder won't open 20 copy progress dialogs.

Many thanks,
Alex

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Copy/Paste in the Finder
      • From: Zack Jarrett <email@hidden>
  • Prev by Date: Re: Outlook 2010
  • Next by Date: Re: Copy/Paste in the Finder
  • Previous by thread: Re: Questions on approach
  • Next by thread: Re: Copy/Paste in the Finder
  • Index(es):
    • Date
    • Thread