can't get the folder of info for x
can't get the folder of info for x
- Subject: can't get the folder of info for x
- From: Brian Gollands <email@hidden>
- Date: Mon, 17 Sep 2001 14:10:27 -0400
I want to do something only if an item is a file, but I'm having
trouble testing the folder boolean. I have the following code snippet:
---------------
repeat with this_file in file_list
set filePath to (path3 & this_file as string)
set the item_info to info for filePath
if (folder of item_info is false) then
-- do something
else
-- do something else
end if
end repeat
-----------------
If I test for any other boolean or info (alias, visible, name, etc.),
the above code works. However, I just get a "Can't get folder of ...
[the record contents]..." when I test for folders. Is this a known
bug with "info for" in the Standard Additions or maybe a problem with
my code? Maybe a conflict from another scripting addition? Just
wondering if I'm all alone, or if this is something others have seen.
(I tried to check the archives, but frustratingly, it won't accept my
userid and password.)
Thanks,
Brian
========================================================================
Try our latest project, The Last Straw:
http://cycas.cornell.edu/laststraw/
========================================================================
Brian Gollands "...In the waning year
Plant Modeling Group Potters a coleopterist, poking
Boyce Thompson Institute through yellow leaves."
Tower Road, Ithaca, NY 14853 -- W.H. Auden
607-254-1381/
fax:607-254-1242
email@hidden
http://cycas.cornell.edu/ebp/profiles/BGprof.html
========================================================================