• 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: Michelle Steiner <email@hidden>
  • Date: Tue, 3 Sep 2002 13:28:43 -0700

On Tuesday, September 3, 2002, at 12:34 PM, Roman Fischer wrote:

How can I do such a copy in Applescript (or is MS-DOS really better;-) ?

Well, if your only criterion is to copy a file and change its name in one line of code, then MS DOS is better.

Here is something that will do what you want, though:

set the filetocopy to choose file
tell application "Finder"
set the newfile to duplicate the filetocopy
set the newfile's name to "ghi.txt"
end tell

--Michelle

We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
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: MS-DOS better than Applescript??
      • From: Paul Skinner <email@hidden>
  • Prev by Date: Re: MS-DOS better than Applescript??
  • Next by Date: Re: MS-DOS better than Applescript??
  • Previous by thread: Re: MS-DOS better than Applescript??
  • Next by thread: Re: MS-DOS better than Applescript??
  • Index(es):
    • Date
    • Thread