Re: AppleScript, Pages and Text boxes (part 1)
Re: AppleScript, Pages and Text boxes (part 1)
- Subject: Re: AppleScript, Pages and Text boxes (part 1)
- From: Axel Luttgens <email@hidden>
- Date: Thu, 18 Mar 2010 23:38:30 +0100
Le 18 mars 2010 à 18:26:49, Yvan KOENIG a écrit :
> [...]
>
> tell application "Pages"
> count every text box of document 1
> 1
> get properties of text box 1 of document 1
> …
> "Impossible d’obtenir single color of {stroke type:none, image fill type:missing value, horizontal position:46.0, class:text box, stroke width:missing value, text fit:rectangle, width:200.0, stroke color:missing value, extra space:12.0, wrap:center, image data:missing value, placement:moving, shadow angle:missing value, vertical position:57.0, fill type:color, height:100.0, object text:\"text box 2
> \", id:5107277, containing page:page 1 of document id 5441209 of application \"Pages\", shadow blur:missing value, shadow opacity:missing value, shadow color:missing value, color angle:missing value, opacity:100.0, locked:0, containing layer:missing value, name:missing value, shadow:missing value, rotation:0.0, shadow offset:missing value, start color:missing value, single color:{65535, 65535, 13107}, end color:missing value}."
Hello Yvan,
Some kind of terminology conflict, perhaps?
Both shapes and text boxes have a single color property.
But both shapes and text boxes inherit from graphic.
Assuming the first graphic in fact is the document's first text box, this one seems to be OK:
tell application "Pages"
tell front document
tell first graphic
single color
end tell
end tell
end tell
Go figure...
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