Re: get list of PDF files
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