Re: How to position windows in iBooks
Re: How to position windows in iBooks
- Subject: Re: How to position windows in iBooks
- From: rpoland <email@hidden>
- Date: Sat, 30 Apr 2016 11:51:42 -0600
- Z-usanet-msgid: XID495uDdRzQ7520X32
Thanks Gregg,
Did you try either of these? I can't get either one to compile.
> On Apr 30, 2016, at 11:42:AM, David Gregg <email@hidden> wrote:
>
>> On Apr 30, 2016, at 9:59 AM, Robert Poland <email@hidden> wrote:
>>
>> Since Apple has chosen to not support Applescript in iBooks is there any way to set the position of the main window of iBooks?
>
> Using System Events to set the left top position of the window to 100, 100
>
> set newTopLeftPosition to {100, 100}
>
> tell application "System Events"
> tell process "iBooks"
> set position of window 1 to newTopLeftPosition
> end tell
> end tell
>
> You can also set it up to be centred on the screen, if you like, by using:
>
> tell application "Finder" to set {screenLeft, screenTop, screenWidth, ScreenHeight} to bounds of window of desktop
> tell application "System Events"
> tell process "iBooks"
> set {windowWidth, windowHeight} to size of window 1
> set position of window 1 to {(screenWidth - windowWidth) / 2 as integer, (ScreenHeight - windowHeight) / 2 as integer}
> end tell
> end tell
>
>
>
>> TIA,
>>
>> Robert Poland
>> iMac, Late 2013, 14,2
>> 3.2 GHz Intel Core I5, 27”
>> 16 GB Ram, 1TB Fusion HD
>> OS X 10.11.4
Robert Poland
Fort Collins, CO
_______________________________________________
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