Re: List sorting dilemma
Re: List sorting dilemma
- Subject: Re: List sorting dilemma
- From: email@hidden (Michael Sullivan)
- Date: Thu, 25 Jul 2002 23:36:10 -0400
- Organization: Society for the Incurably Pompous
That Arthur Knapp fellow writes:
>
tell app "Finder"
>
>
set sortedImages to sort (every file of imageFolder) by name
>
The images are now sorted by name. The problem you are going to
>
have now is converting the Finder objects in to aliases so that
>
Quark can work with them:
>
>
tell application "Finder"
>
>
set sortedImageFiles to ,
>
(sort (every file of imageFolder) by name)
>
>
end tell
>
>
repeat with aFile in sortedImageFiles
>
>
set aFile's contents to aFile as alias
>
>
end repeat
>
>
sortedImageFiles --> list of aliases
Hands up everyone else who thinks the decision to make finder file
objects distinct from "file" and "alias" classes with no invisible
coercions tends to make scripting files in the finder an extraordinary
PITA.
Michael
--
Michael Sullivan
Business Card Express of CT Thermographers to the Trade
Cheshire, CT email@hidden
_______________________________________________
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.