Re: Selecting Multiple Files
Re: Selecting Multiple Files
- Subject: Re: Selecting Multiple Files
- From: Michelle Steiner <email@hidden>
- Date: Thu, 3 Nov 2005 14:58:37 -0700
On Nov 3, 2005, at 2:46 PM, Dave Lyons wrote:
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.)
Thanks for the confirmation.
"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".
True, but I took him literally, that he wanted to move only 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.)
It gives a very poor script that can lead people astray.
Instead of
tell application "Finder"
copy the files of the source_Folder to the target_folder
end tell
it will result in something like this:
tell application "Finder"
-- some code to select items; possibly by their names
move the selection to folder "disk:folder:folder"
end tell
--
There are three kinds of computer users:
1. Those who use a Mac
2. Those who wish they could use a Mac
3. Those who don't know any better
_______________________________________________
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