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.
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
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
|