Re: ignore icon file how?
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