• 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: GTQScriptingLibrary1.2 --image sort
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GTQScriptingLibrary1.2 --image sort


  • Subject: Re: GTQScriptingLibrary1.2 --image sort
  • From: hciR nellA <email@hidden>
  • Date: Fri, 6 Apr 2001 14:29:48 -0800

this may help

tell application "Finder"
-- every file does not work for 1
-- every item does not work for 1
-- set aList to every item in alias "iMac:Desktop Folder:atest:" as
alias list
-- set aList to (every item in (item ((alias "iMac:Desktop
Folder:atest:") as text)) as alias) as list --works 1 only
-- set aList to every item in alias "iMac:Desktop Folder:atest:" as
string -- breaks on 0
set numItems to count of items in alias "iMac:Desktop Folder:temp:"
if numItems is not 1 then
set aList to every item in alias "iMac:Desktop Folder:temp:" as
alias list
else
set aList to {every item in alias "iMac:Desktop Folder:temp:" as
alias}
end if
sort aList by name
end tell
On Friday, April 6, 2001, at 12:49 PM, email@hidden wrote:

I am just starting to learn applescript, and have been reading this
list for a couple weeks now (very helpful).
I want to sort a list of files (which are in the format 1.eps to
999.eps) into ascending numeric format ie. 1, 2, 3 not 1, 10, 11.
I have tried using GTQScriptingLibrary1.2 but only because I could
think of no other way, which I have been unsuccessful in using (can't
get it to work).

Does anyone know of another/better way to sort?

- hcir
mailto:email@hidden
Made with a Mac!


  • Follow-Ups:
    • wanted a real sort
      • From: email@hidden
References: 
 >GTQScriptingLibrary1.2 --image sort (From: email@hidden)

  • Prev by Date: Re: New Folder with date
  • Next by Date: Stable, CPU-friendly periodic task scheduling
  • Previous by thread: GTQScriptingLibrary1.2 --image sort
  • Next by thread: wanted a real sort
  • Index(es):
    • Date
    • Thread