Re: MS-DOS better than Applescript??
Re: MS-DOS better than Applescript??
- Subject: Re: MS-DOS better than Applescript??
- From: Paul Skinner <email@hidden>
- Date: Wed, 4 Sep 2002 00:10:14 -0400
On Tuesday, September 3, 2002, at 03:34 PM, Roman Fischer wrote:
I want to do a simple thing: copy a file into the same folder using an
other
name. In (good?) old MS-DOS days this was a simple thing:
Copy c:\abc\def.txt c:\abc\ghi.txt
Call me stupid but I did not find a solution to do this in Applescript
(MacOS X 10.1.5). After spending a few evenings in searching for a
solution
I still did not find one.
How can I do such a copy in Applescript (or is MS-DOS really better;-)
?
Thank you
Roman
Emoticons do not disguise the bait on that hook. : D
tell application "Finder"
duplicate file"c:abc:def.txt" to folder"c:abc:"
set name of the result to "ghi.txt"
end tell
--
Paul Skinner
_______________________________________________
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.