• 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
Re: Selecting Multiple Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting Multiple Files


  • Subject: Re: Selecting Multiple Files
  • From: Dave Lyons <email@hidden>
  • Date: Thu, 3 Nov 2005 13:46:57 -0800

tell application "Finder"
	copy the files of the source_Folder to the target_folder
end tell

Yes, this should work fine in Mac OS 8.5. (I don't have 8.5 running, but I tried it on 9.2 just now.)


"The files of" is the same as "every file of" -- but make sure you choose the word carefully, as saying "files" excludes folders. If you really want the entire contents, then use "items" in place of "files".

(Sidenote: It's also fruitful in Mac OS 8 or 9 to click "Record" in Script Editor, and manually copy the files once in the Finder. This will write the script for you, though you'll likely want to edit the result, or just use it for inspiration.)

Cheers,

--Dave

On Nov 3, 2005, at 1:25 PM, Michelle Steiner wrote:

On Nov 3, 2005, at 2:15 PM, Jeff Grossman wrote:

I need to create an applescript for use on Mac OS 8.5 which will select the
contents of a folder and copy those files to a folder on a remote computer.
I can figure out the part about copying the files, but am having some
trouble with the selecting the contents of a folder part. The file names in
the folder change each day, so I can't just hard code the file names into
the script. How can I select the content of a folder where the file names
change?

--routine for selecting the source folder goes here --routine for selecting the target folder goes here

tell application "Finder"
	copy the files of the source_Folder to the target_folder
end tell

Don't know whether "files of the source_folder" works on 8.5, though; I don't recall when it was introduced.

-- Michelle

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Selecting Multiple Files
      • From: Jeff Grossman <email@hidden>
    • Re: Selecting Multiple Files
      • From: Michelle Steiner <email@hidden>
References: 
 >Selecting Multiple Files (From: Jeff Grossman <email@hidden>)
 >Re: Selecting Multiple Files (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Selecting Multiple Files
  • Next by Date: Re: How to work with XML data using System Events?
  • Previous by thread: Re: Selecting Multiple Files
  • Next by thread: Re: Selecting Multiple Files
  • Index(es):
    • Date
    • Thread