• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
file info for items in a folder.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Adding assets from a network volume?
  • Next by Date: Re: =b4=?+�constant afdregfp�=aa?&^%$(*@#$-_[{}�
  • Previous by thread: Re: Adding assets from a network volume?
  • Next by thread: Re: =b4=?+�constant afdregfp�=aa?&^%$(*@#$-_[{}�
  • Index(es):
    • Date
    • Thread