Re: How can I get the count of these menu items?
Re: How can I get the count of these menu items?
- Subject: Re: How can I get the count of these menu items?
- From: Shane Stanley <email@hidden>
- Date: Mon, 20 Jul 2015 16:34:53 +1000
On 20 Jul 2015, at 3:54 pm, Brian Christmas <email@hidden> wrote:
I’d like to get the page count of a multi-page pdf
Is there some reason you're trying to use GraphicConverter for this? Because it seems a very odd choice. And using GUI scripting for it seems crazy...
use framework "Foundation" use framework "Quartz"
set posixPath to "/Users/shane/Desktop/Everyday AppleScriptObjC.pdf" set anNSURL to current application's class "NSURL"'s fileURLWithPath:posixPath set thePDFDoc to current application's PDFDocument's alloc()'s initWithURL:anNSURL set thePageCount to thePDFDoc's pageCount()
|
_______________________________________________
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