• 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
can't get the folder of info for x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
========================================================================


  • Follow-Ups:
    • Re: can't get the folder of info for x
      • From: Jolly Roger <email@hidden>
  • Prev by Date: RE: How to wait for a PostScript file to finish it's creation?
  • Next by Date: Accessing user defined functions from within an Applescript.
  • Previous by thread: Re: Where am I?
  • Next by thread: Re: can't get the folder of info for x
  • Index(es):
    • Date
    • Thread