Untested email Lingo, but here's how I would approach it:


FolderList = baFolderList("osX") -- Build up a list of the folders you to eliminate from the list EliminateList = ["Temporary Items", "TheFindByContentFolder"]

-- Iterate through the EliminateList, seeing if each is found in the FolderList
repeat with thisFolderToEliminate in EliminateList
  where = getOne(FolderList, thisFolderToEliminate)  -- see if it's there
  if where > 0 then  -- If it is there, delete it.
    deleteAt(FolderList, where
  end if
end repeat

FolderList should now contain all folders except for those in the EliminateList.

Hope this helps,

Irv

At 11:28 PM +0200 8/21/03, Tony �str�m wrote:
HI,

I use baFolderList to get the list of folders.
But how can I eliminate certain folders in the list for example, "Temporary Items", "TheFindByContentFolder"?
set Folder = baFolderList( "osX")
put Folder
-- [".Trashes", "Desktop Folder", "Temporary Items", "TheFindByContentFolder", "TheVolumeSettingsFolder", "Trash"]


TIA
Tony

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]


--

Multimedia Wrangler.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to