• 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: how can i do....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can i do....


  • Subject: Re: how can i do....
  • From: "Marc K. Myers" <email@hidden>
  • Date: Thu, 03 Jan 2002 14:32:27 -0500
  • Organization: [very little]

> Date: Thu, 03 Jan 2002 16:35:16 +0100
> Subject: how can i do....
> From: rhyme <email@hidden>
> To: <email@hidden>
>
> hi !
> how can i do to copy a file in a new directory with a different name ??

tell application "Finder"
set newFile to (duplicate file "[old file path]" to folder "[new
folder path]")
set name of newFile to "[new file name]"
end tell

You can do it in a single command (and without the Finder) with the
"collate" command from the Akua Sweets scripting addition.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[1/3/02 2:31:37 PM]


  • Prev by Date: Re: Post Data
  • Next by Date: Re: Is this an example of AppleScript 1.8 "breaking" Script Debugger 3.01? Or is it I?
  • Previous by thread: how can i do....
  • Next by thread: Is this an example of AppleScript 1.8 "breaking" Script Debugger 3.01? Or is it I?
  • Index(es):
    • Date
    • Thread