Re: ignore icon file how?
Re: ignore icon file how?
- Subject: Re: ignore icon file how?
- From: Hans Haesler <email@hidden>
- Date: Mon, 20 Nov 2000 20:37:24 +0100
On Mon, 20 Nov 2000, Dave Balderstone wrote:
>
How can I reliably tell the script to ignore the Icon file? The line
>
in question is telling the Finder, BTW.
Dave,
set up the list by filtering out invisibles.
You don't need the Finder, BTW:
---
set docFolder to "Macintosh HD:QXPFiles:"
set docList to list folder docFolder without invisibles
repeat with aDoc in docList
if file type of (info for (docFolder & aDoc)) = "XDOC" then
set fullPath to docFolder & aDoc
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 repeat
---
If your script is a droplet it's easy to adapt the above snippet.
HTH,
Hans
---
Hans Haesler | email@hidden