• 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 do I create and name duplicates in the same path as the originals?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: How do I create and name duplicates in the same path as the originals?
  • Next by Date: AS 1.8.3
  • Previous by thread: Re: How do I create and name duplicates in the same path as the originals?
  • Next by thread: How do I create and name duplicates in the same path as the originals?
  • Index(es):
    • Date
    • Thread