• 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: MS-DOS better than Applescript??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MS-DOS better than Applescript??


  • Subject: Re: MS-DOS better than Applescript??
  • From: Bill Cheeseman <email@hidden>
  • Date: Tue, 03 Sep 2002 16:31:09 -0400

on 02-09-03 3:34 PM, Roman Fischer at email@hidden wrote:

> I want to do a simple thing: copy a file into the same folder using an other
> name.

tell application "Finder"
duplicate file "A" of startup disk
set name of result to "B"
end tell

Of course, you'll have to provide the path and file names to suit your need.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
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: 
 >MS-DOS better than Applescript?? (From: Roman Fischer <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: MS-DOS better than Applescript??
  • Next by thread: Re: MS-DOS better than Applescript??
  • Index(es):
    • Date
    • Thread