set currApp to current application
if (pSortBy = "Name") then
set NSSortBy to currApp's NSURLNameKey
else if (pSortBy = "Created") then
set NSSortBy to currApp's NSURLCreationDateKey
else if (pSortBy = "Modified") then
set NSSortBy to currApp's NSURLAttributeModificationDateKey
else if (pSortBy = "Added") then
set NSSortBy to currApp's NSURLAddedToDirectoryDateKey
end if
set filePathOrList to its filesIn:pFolder sortedBy:NSSortBy includeFolders:false returningAsList:returnListBol
_______________________________________________ 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