• 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
Re: ignore icon file how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ignore icon file how?


  • Subject: Re: ignore icon file how?
  • From: Hans Haesler <email@hidden>
  • Date: Tue, 21 Nov 2000 17:03:15 +0100

On Tue, 21 Nov 2000, Dave Balderstone wrote:

>>set a variable to the 'info for', then test if folder is false:
>
>Hmm... Still errors here.

Dave,

Jason is right. Note that both of my snippets don't use
the Finder. Let's make another test.

Please create a folder at your Harddisk, name it "QXPFiles",
put a folder and a file in that new folder and run this:
---
set docFolder to "Macintosh HD:QXPFiles:"
set docList to list folder docFolder without invisibles
set fullPath to docFolder & item 1 of docList
set fileInfo to (info for file fullPath)
if folder of fileInfo is false then
set msg to "Okay, that's a file."
else
set msg to "Stop, that's a folder."
end if
---
For the second run change 'item 1 of docList' to 'item 2 of docList'.
The result window should show once the first and once the second message.

Hans

---
Hans Haesler | email@hidden


References: 
 >Re: ignore icon file how? (From: Hans Haesler <email@hidden>)
 >Re: ignore icon file how? (From: Michelle Steiner <email@hidden>)
 >Re: ignore icon file how? (From: Dave Balderstone <email@hidden>)

  • Prev by Date: RE: ignore icon file how?
  • Next by Date: RE: ignore icon file how?
  • Previous by thread: Re: ignore icon file how?
  • Next by thread: RE: ignore icon file how?
  • Index(es):
    • Date
    • Thread