Re: How do I create and name duplicates in the same path as the originals?
Re: How do I create and name duplicates in the same path as the originals?
- Subject: Re: How do I create and name duplicates in the same path as the originals?
- From: Nathan Day <email@hidden>
- Date: Wed, 9 Oct 2002 21:29:25 +0930
like this
on open myitems
repeat with i from 1 to number of items in myitems
set thisFile to item i of myitems as alias
tell application "Finder"
set theNewFile to duplicate file thisFile
set name of theNewFile to (i & ".jpg")
end
end repeat
end open
On Wednesday, October 9, 2002, at 06:31 PM, Steve Carlson wrote:
This much I can make work, but what I can't seem to figure out is
how to specify the new file's name, rather than use the "foo copy.jpg"
that the Finder picks by default. (I'd like it to be the value of (i &
".jpg")) I also want to have the duplicate reside in the same folder
as
the original. I tried something like:
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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.