• 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: count pages in PDF on OS 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: count pages in PDF on OS 10.4


  • Subject: Re: count pages in PDF on OS 10.4
  • From: Wayne Melrose <email@hidden>
  • Date: Thu, 08 Jan 2009 08:53:47 +0100


On 8. jan.. 2009, at 08.49, Håvard Graudo wrote:

Jeremy,

You are right. It is not OS related as I first thought. The PDF files tested on 10.4 was on a server-volume - and the code does not work on those, regardless of OS.

Now, does anyone have a fast and easy way to get number of pages in PDF-files that will also work on files on a server?

Håvard


Den 7. jan.. 2009 kl. 18.30 skrev Jeremy Sellors:

This works for me 10.4.11 PowerPC G4


On 7-Jan-09, at 12:26 AM, Håvard Graudo wrote:
set PDFfilPosix to POSIX path of (choose file of type "com.adobe.pdf")
set antSider to last word of (do shell script "mdls -name kMDItemNumberOfPages " & quoted form of PDFfilPosix)



I had been using this aswell.. My solution was to use ghostscript, although if you don't already have ghostscript installed, it's probably not worth installing it just for this.

Wayne


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >count pages in PDF on OS 10.4 (From: Håvard Graudo <email@hidden>)
 >Re: count pages in PDF on OS 10.4 (From: Jeremy Sellors <email@hidden>)
 >Re: count pages in PDF on OS 10.4 (From: Håvard Graudo <email@hidden>)

  • Prev by Date: Re: count pages in PDF on OS 10.4
  • Next by Date: Re: count pages in PDF on OS 10.4
  • Previous by thread: Re: count pages in PDF on OS 10.4
  • Next by thread: Re: count pages in PDF on OS 10.4
  • Index(es):
    • Date
    • Thread