• 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: How to position windows in iBooks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to position windows in iBooks


  • Subject: Re: How to position windows in iBooks
  • From: David Gregg <email@hidden>
  • Date: Sat, 30 Apr 2016 11:54:32 -0600

> On Apr 30, 2016, at 11:51 AM, rpoland <email@hidden> wrote:
>
> Thanks Gregg,
>
> Did you try either of these?  I can't get either one to compile.

Yes I had both of them working. I am right now on Yosemite but will momentarily check it on my El Capitan machine.

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


  • Follow-Ups:
    • Re: How to position windows in iBooks
      • From: David Gregg <email@hidden>
References: 
 >How to position windows in iBooks (From: Robert Poland <email@hidden>)
 >Re: How to position windows in iBooks (From: David Gregg <email@hidden>)
 >Re: How to position windows in iBooks (From: rpoland <email@hidden>)

  • Prev by Date: Re: How to position windows in iBooks
  • Next by Date: Re: How to position windows in iBooks
  • Previous by thread: Re: How to position windows in iBooks
  • Next by thread: Re: How to position windows in iBooks
  • Index(es):
    • Date
    • Thread