• 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: get list of PDF files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get list of PDF files


  • Subject: Re: get list of PDF files
  • From: Ric Phillips <email@hidden>
  • Date: Mon, 17 Sep 2001 09:19:55 +1000

On 15/9/01 3:40 AM, "Bryan" <email@hidden> wrote:

> I am having trouble getting the finder to return a list of PDF files.
>
>
> tell application "Finder"
> set theList to items in folder sourceFolder whose default application is
> (appPath as alias)
> end tell
>
> I have tried :
>
> ...file creator is "CARO"
>
> ...file type is "PDF "
>
> ...default application is "Macintosh HD:Applications (Mac OS 9):Adobe:Acrobat
> Reader 5.0:Acrobat Reader 5.0" (with and without alias)
>
> ...and several other options without any success.
>
> This works with other file types and I am perplexed why PDFs are not
> complying.
>
> Anybody have any ideas???
>
> Bryan Kaufman

You've probably covered this, but you aren't dealing with PDF created on a
pc and down loaded over the web are you? - in which case all of the
properties you have tried can fail.

If you wanted to handle 'unidentified' PDFs you would have to read in the
header bytes of each file, check the contents and if it was a PDF explicitly
set its properties.

Good luck,

Ric Phillips

Computer Laboratory Support Officer
Faculty of Humanities and Social Sciences
La Trobe University
9479 2792


References: 
 >get list of PDF files (From: Bryan <email@hidden>)

  • Prev by Date: Re: How to wait for a PostScript file to finish it's creation?
  • Next by Date: Re: Apple Data Detectors
  • Previous by thread: Re: get list of PDF files
  • Next by thread: Re: ScriptDebugger or Scripter
  • Index(es):
    • Date
    • Thread