• 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: duplicate one file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: duplicate one file


  • Subject: Re: duplicate one file
  • From: Emmanuel <email@hidden>
  • Date: Sat, 3 Aug 2002 11:18:23 +0200

At 9:32 AM +0200 3/8/02, Mirko wrote:
>
>what i need is just the possibility to create thousand of copy of the same
>file...

Not sure what your problem is.

duplicating files is the Finder's job. If you have not already, you should
have a look at the Finder's dictionary. Did you try simply:

----------------
set theFile to alias "Macintosh HD:myfile.htm"
repeat 1000 times
tell application "Finder" to duplicate theFile
end
----------------

A more sophisticated script would keep track in a list of the references of
the duplicated files, so that renaming them would be easier.

Emmanuel
_______________________________________________
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.

  • Follow-Ups:
    • Re: duplicate one file
      • From: John Delacour <email@hidden>
    • Re: duplicate one file
      • From: Mirko <email@hidden>
References: 
 >duplicate one file (From: Mirko <email@hidden>)

  • Prev by Date: Astonishing speed difference - can't find it documented
  • Next by Date: Re: Trim?
  • Previous by thread: duplicate one file
  • Next by thread: Re: duplicate one file
  • Index(es):
    • Date
    • Thread