Re: Moving files based on a list
Re: Moving files based on a list
- Subject: Re: Moving files based on a list
- From: Cornwall <email@hidden>
- Date: Wed, 5 Jun 2002 18:33:20 -0700
At 12:44 PM -0500 6/5/02, Dan Brown wrote:
>
What I need to do is compare those files to a text list of the files that
>
are needed for today and copy them to a different directory.
Presuming a text file with a return separated, list of file names.
AppleScript 1.8.2b3, OSX
set fil to choose file
set sourcefol to choose folder with prompt "Source folder?"
set destfol to choose folder with prompt "Destination folder?"
set lst to read fil as list using delimiter {return}
-->{"file1", "file2", "file3", "file4"}
tell application "Finder"
set moovers to files of sourcefol whose name is in lst
duplicate moovers to destfol
end tell
HTH
C
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.