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


  • Follow-Ups:
    • Re: ignore icon file how?
      • From: Dave Balderstone <email@hidden>
References: 
 >Re: ignore icon file how? (From: Michelle Steiner <email@hidden>)
 >Re: ignore icon file how? (From: Dave Balderstone <email@hidden>)

  • Prev by Date: Re: Newbie: Why AppleEvent timing out?
  • Next by Date: Re: mounting a SNAP! server
  • Previous by thread: Re: ignore icon file how?
  • Next by thread: Re: ignore icon file how?
  • Index(es):
    • Date
    • Thread