Re: GTQScriptingLibrary1.2 --image sort
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!