Re: sort order
Re: sort order
- Subject: Re: sort order
- From: "Adam K. Wuellner" <email@hidden>
- Date: Wed, 29 Sep 2004 15:47:34 -0500
On Sep 29, 2004, at 3:19 PM, Adam K. Wuellner wrote:
on sorted_folder_listing(folder_)
local posix_path
local dss_result
set my posix_path to POSIX path of folder_
To work with paths that have spaces or other difficult characters, the
above line needs to be changed to:
set my posix_path to quoted form of POSIX path of folder_
Sorry for the oversight.
-- list all files and directories, case-insensitive sort:
set my dss_result to do shell script "/bin/ls -A " & my posix_path &
" | /bin/sort -f"
set AppleScript's text item delimiters to {ASCII character 13}
return text items of my dss_result
end sorted_folder_listing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden