• 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
order of files in Finder vs. file index number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

order of files in Finder vs. file index number


  • Subject: order of files in Finder vs. file index number
  • From: "scriptcode" <email@hidden>
  • Date: Wed, 26 Mar 2008 15:21:20 -0600 (MDT)
  • Importance: Normal

Hello,

Is there a way to get AppleScript to manipulate files in a folder in the
order they appear in the Finder rather than in the order of their index
number?

I'm wanting to manipulate a large number of files using a repeat loop, but
I get unwanted results because the order of display in the finder isn't
the same as that seen by AppleScript references to the "first item" or
"item 2" etc.

For example, telling AppleScript to:

set listFiles to name of every item of folder sourceFolder

to these items:

031403c1_086 2
031403c1_086 100
(as displayed in Finder)

gives this:

{"031403c1_086 100", "031403c1_086 2"}

I will appreciate any help on this matter.

Thanks,

Weldon

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: order of files in Finder vs. file index number
      • From: Christopher Nebel <email@hidden>
    • Re: order of files in Finder vs. file index number
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: 3 random typefaces intermixed
  • Next by Date: Re: order of files in Finder vs. file index number
  • Previous by thread: Re: using "touch" in Leopard
  • Next by thread: Re: order of files in Finder vs. file index number
  • Index(es):
    • Date
    • Thread