file info for items in a folder.
file info for items in a folder.
- Subject: file info for items in a folder.
- From: Dean Ross-Smith <email@hidden>
- Date: Tue, 10 Apr 2001 08:20:18 -0700
This works just fine but...
-- set up path
set curdfpath to (cursd & ":" & mydf & ":") as text
-- get a list of folders from the path
set curdflist to (list folder curdfpath without invisibles)
set psfilecounter to 1
set filestoprocess to {}
repeat until psfilecounter > (count of curdflist)
set myitem to (curdfpath & item psfilecounter of curdflist)
if ((busy status of (info for file myitem) is false) and (not
(file creator of (info for file myitem) = "temp"))) then
if filestoprocess = {} then
set filestoprocess to {(myitem as alias)}
else
set end of filestoprocess to (myitem as alias)
end if
end if
copy 1 + psfilecounter to psfilecounter
end repeat
Is there another quicker way to get a list of files from a folder
that match certain criteria besides using a repeat loop?
Something like
set xlist to (every item whose busy status is true) as list
this is being done using os9.1 and as 1.6.