• 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: Weird behavior of text in Pages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird behavior of text in Pages


  • Subject: Re: Weird behavior of text in Pages
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 01 Aug 2014 22:36:26 +1000

On 1 Aug 2014, at 3:36 am, Paul Berkowitz <email@hidden> wrote:

> It's only a valid instruction if the dictionary implements the 'properties' property of a class, by name, which this class apparently does not do, from what you have quoted of its dictionary entry.  'properties' is a not a built-in way of getting them all, even though it is a subheader in the dictionary (along with elements) for all class listings. It has to be implemented as a specific property of its own. Once upon a time, there were really very few classes that had these, but most of the OS X Cocoa Apple apps do have a 'properties' property for most classes, I've noticed, even when there may be only two or three other properties.

Cocoa Scripting makes it very easy to add a properties property. In most cases it's no code at all -- it's just a couple of lines in the scripting definition:

 <property name="properties" code="pALL" type="record" description="All the object’s properties returned as a record." access="r">
  <cocoa key="scriptingProperties"/>
 </property>

A lot of apps define an item class with a properties property, and have most other classes inherit from that. Of course, if one of the properties returns an error, so will the properties property. Image's file property looks a good candidate for that.

I don't see a properties property defined anywhere in the Pages 5 dictionary, but perhaps there's something else going on there.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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


  • Prev by Date: Re: Read a text file
  • Next by Date: Re: Weird behavior of text in Pages
  • Previous by thread: Re: Read a text file
  • Next by thread: Re: Weird behavior of text in Pages
  • Index(es):
    • Date
    • Thread