Le 07/07/2013 à 23:11, Robert Poland < email@hidden> a écrit : On Jul 7, 2013, at 8:52 AM, 2551 <2551phil@gmail.com> wrote:
On 7 Jul 2013, at 21:26, Robert Poland <email@hidden> wrote:
Phil,
Do you have iBooks Author on your machine?
Perhaps I’ve been unclear, though I thought from your question you’d know what I was talking about. Apologies.
The dictionary for iBooks Author contains only three suites: standard, text, and type. These are available for every app. Most scriptable apps also contain one or more suites of their own, i.e., Safari suite, for... (I think you can guess), which contains commands, properties and elements peculiar to that app and which make its scriptable. iBooks Author contains a number of elements that aren’t in the those ‘standard/regular’ suites and there is no iBooks Author suite itself. Moreover, all the regular commands don’t seem to work (as you discovered, and which occasioned your question to the list).
All the above makes me think it hasn’t been set up for scripting, and that the dictionary is just the default dictionary that’s been included by the developers but they’ve never bothered to hook it up to any actions.
Hope that clarifies where I’m coming from, not that - of course - it helps solve your problem, only to reiterate that you may have better luck going through System Events and looking for buttons and AX objects.
Best
Phil http://applehelpwriter.com
I have, as yet, been unable to find a button for resizing and relocating a window. The green button is almost worthless anymore.
Using GUIScripting you may get the position and the size of the document window. Then you may change them giving you the wanted result.
tell application "iBooks Author" to activate
tell application "System Events" to tell process "iBooks Author" tell window 1 set {wLeft, wTop} to position set {wWidth, wHeight} to size set position to {wLeft + 20, wTop + 10} set size to {wWidth - 10, wHeight + 20} end tell end tell
KOENIG Yvan (VALLAURIS, France) lundi 8 juillet 2013 09:37:33
|