• 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: How can I get the count of these menu items?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How can I get the count of these menu items?
      • From: Shane Stanley <email@hidden>
References: 
 >Re: How can I get the count of these menu items? (From: Shane Stanley <email@hidden>)
 >Re: How can I get the count of these menu items? (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: How can I get the count of these menu items?
  • Next by Date: Re: How can I get the count of these menu items?
  • Previous by thread: Re: How can I get the count of these menu items?
  • Next by thread: Re: How can I get the count of these menu items?
  • Index(es):
    • Date
    • Thread