• 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: Moving files based on a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Moving files based on a list (From: Dan Brown <email@hidden>)

  • Prev by Date: Re: Another shell script query
  • Next by Date: Re: OSAX on X
  • Previous by thread: Moving files based on a list
  • Next by thread: Another shell script query
  • Index(es):
    • Date
    • Thread