@ peavine
may you apply this version to your folder ?
----------------------------------------------------------------
use AppleScript version "2.5"
use framework "Foundation"
use scripting additions
----------------------------------------------------------------
set x to ((path to desktop as text) & "for sale") as alias --«class furl»
set fileManager to current application's NSFileManager's defaultManager()
set y to fileManager's contentsOfDirectoryAtURL:x includingPropertiesForKeys:{} options:(current application's NSDirectoryEnumerationSkipsHiddenFiles) |error|:(missing value)
set y to y as list
set z to {}
tell application id "com.apple.Finder"
set y to (sort y by name)
repeat with i from 1 to (count y) by 2
set end of z to item i of y
end repeat
select z
end tell
I assume that it would be faster than the two others.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mercredi 4 décembre 2019 17:17:57