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 09:31:24 +0100
On Mon, 20 Nov 2000, Dave Balderstone wrote:
>
Now, how can I also exclude folders from the results of the "list
>
folder" command?
>
>
(folder of (info of file path_name)) doesn't work...
Dave,
set a variable to the 'info for', then test if folder is false:
---
set docFolder to "Macintosh HD:QXPFiles:"
set docList to list folder docFolder without invisibles
repeat with aDoc in docList
set fullPath to docFolder & aDoc
set fileInfo to (info for file fullPath)
if folder of fileInfo is false then
if file type of fileInfo = "XDOC" then
tell application "QuarkXPress 4.11"
activate
open file fullPath use doc prefs yes remap fonts no do auto picture import no
tell document 1
--do your stuff
end tell
close document 1 saving yes
end tell
end if
end if
end repeat
---
Hans
---
Hans Haesler | email@hidden