• 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: Andy Wylie <email@hidden>
  • Date: Thu, 10 Oct 2002 06:46:51 +1300

on Wed, 09 Oct 2002 20:49:01 +1000 Shane Stanley wrote:

>Try something like this:
>
>on open myitems
> repeat with i from 1 to number of items in myitems
> tell application "Finder"
> duplicate item i of myitems
> set name of result to ((i as text) & ".jpg")
> end tell
> end repeat
>end open

Under 8.6 at least duplicate's result is the original file and the new one
has copy appended, changing the new file's name works but Finder usually
quits.
_____________________________ Andy
_______________________________________________
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: How do I create and name duplicates in the same path as the originals?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: How do I create and name duplicates in the same path as the originals?
  • Next by Date: RE: OS X Name Extensions
  • Previous by thread: How do I create and name duplicates in the same path as the originals?
  • Next by thread: Re: How do I create and name duplicates in the same path as the originals?
  • Index(es):
    • Date
    • Thread