• 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: AppleScript-ObjC Syntax Problem on NSArray count method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-ObjC Syntax Problem on NSArray count method?


  • Subject: Re: AppleScript-ObjC Syntax Problem on NSArray count method?
  • From: Steve Mills <email@hidden>
  • Date: Wed, 16 Mar 2016 18:41:18 +0000 (GMT)

On Mar 16, 2016, at 01:27 PM, Dave <email@hidden> wrote:

Can anyone tell me what is wrong with this:

   set myCustomPropertiesArray to (theCustomDocumentDictionary's objectForKey:"kCustomPropertiesList")
       set myCustomPropertiesCount to (myCustomPropertiesArray's count())

I’m getting an error in the Count Statement in XCode and in the Script Editor.

Collision with AppleScript's "count" command? I was able to make it work by piping it:

return someArray'ss |count|()


Sent from iCloud's ridiculous UI, so, sorry about the formatting

 
 _______________________________________________
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: AppleScript-ObjC Syntax Problem on NSArray count method?
      • From: Dave <email@hidden>
  • Prev by Date: AppleScript-ObjC Syntax Problem on NSArray count method?
  • Next by Date: Re: Script to clear Safari?
  • Previous by thread: AppleScript-ObjC Syntax Problem on NSArray count method?
  • Next by thread: Re: AppleScript-ObjC Syntax Problem on NSArray count method?
  • Index(es):
    • Date
    • Thread