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: Axel Luttgens <email@hidden>
- Date: Mon, 20 Jul 2015 11:28:24 +0200
> Le 20 juil. 2015 à 10:51, Brian Christmas a écrit :
>
> Thanks for biting, Shane.
>
> I posted that extra page because I could not get my script to work with your posted suggestions.
>
> There is a problem when I paste your response into my actual script, it does not allow the selection of a file any longer. Without the ‘use frameworks’, 'choose file' works. With them, I get an ‘Expected end of line but found Class name’ error. I’ve tried to search the net before asking, but I can’t find an answer; so, what’s wrong, please?
Hello Brian,
This may be related to a recent thread, "AppleScriptObjC oddity" (look for Chris’ advice wrt scripting additions):
use framework "Foundation"
use framework "Quartz"
property countOfPages : 10
my processFile()
on processFile()
using terms from scripting additions
set aFile to choose file with prompt "Please choose a .pdf file." of type {"pdf"} without invisibles
end using terms from
[…]
HTH,
Axel
_______________________________________________
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