• 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: Pages 5.2 and AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pages 5.2 and AppleScript


  • Subject: Re: Pages 5.2 and AppleScript
  • From: "koenig.yvan" <email@hidden>
  • Date: Wed, 02 Apr 2014 16:57:14 +0200


Le 02/04/2014 à 11:41, Quark67 <email@hidden> a écrit :


Le 2 avr. 2014 à 11:02, koenig.yvan <email@hidden> a écrit :

Hello 

The dictionary of the new version Pages 5.2 offer a lot of new items. ( same additions in Numbers 3./2)

Alas I don't find the way to use them.


Un nouveau site est apparu sur le modèle de http://www.macosxautomation.com : http://iworkautomation.com


I tried to defined a complete set of properties for a text item.

background fill type is refused
background fill is refused
background is treated as a variable name

La page http://iworkautomation.com/pages/text-item.html indique que "background fill type" est actuellement en read only (il est précisé « actuellement », ce qui laisse supposer que ça va évoluer).

De ce que je comprends, le contenu de ce site est amené à s'étoffer.

This site is not new.
It just has new pages.

I looked at them and continue to be puzzled.

Reading its contents I was able to extract the properties of text items.

tell application "Pages" to tell document 1


properties of every text item


end tell

Returned :

{{opacity:100, parent:document "Sans titre" of application "Pages", class:text item, reflection showing:false, rotation:0, background fill type:no fill, position:{172, 68}, object text:"Baratin", width:250, reflection value:0, height:128, locked:false}, 

{opacity:100, parent:document "Sans titre" of application "Pages", class:text item, reflection showing:false, rotation:0, background fill type:no fill, position:{172, 220}, object text:"Tartempion", width:250, reflection value:0, height:128, locked:false}, 

{opacity:100, parent:document "Sans titre" of application "Pages", class:text item, reflection showing:false, rotation:0, background fill type:no fill, position:{172, 372}, object text:"Trucmuche", width:250, reflection value:0, height:128, locked:false}}


I moved the third text block and tried to create a new text block using its original properties minus background fill type.

tell application "Pages" to tell document 1


make new text item with properties {opacity:100, reflection showing:false, rotation:0, position:{172, 372}, object text:"tagada", width:250, reflection value:0, height:128, locked:false}
end tell

And I got :
--> error "Le système ignore comment créer TMAScriptTextInfoProxy" number -2763

I noted that a feature which was really useful : the name of objects like table, shape, text box… is no longer available.
It was useful to target an item to apply it some changes. As there was no way to set or edit such name thru the available GUI we were able to rely upon it.
With what is now available we will have to target the items by their position or by their object text which may be edited thru the GUI.

Yvan KOENIG (VALLAURIS, France) mercredi 2 avril 2014 16:55:09

I just see Shane's message so I made a new attempt with 

make new iWork container
and
make new iWork item.

They compiled. Resemble to what I got with a library two weeks ago.

Yvan KOENIG (VALLAURIS, France) mercredi 2 avril 2014 16:57:09











 _______________________________________________
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: Pages 5.2 and AppleScript
      • From: "koenig.yvan" <email@hidden>
References: 
 >Pages 5.2 and AppleScript (From: "koenig.yvan" <email@hidden>)
 >Re: Pages 5.2 and AppleScript (From: Quark67 <email@hidden>)

  • Prev by Date: Re: Pages 5.2 and AppleScript
  • Next by Date: Re: Pages 5.2 and AppleScript
  • Previous by thread: Re: Pages 5.2 and AppleScript
  • Next by thread: Re: Pages 5.2 and AppleScript
  • Index(es):
    • Date
    • Thread