Re: AppleScript for resizing/repositioning Preview document windows
Re: AppleScript for resizing/repositioning Preview document windows
- Subject: Re: AppleScript for resizing/repositioning Preview document windows
- From: Deivy Petrescu via AppleScript-Users <email@hidden>
- Date: Mon, 23 Oct 2023 15:31:52 -0400
- Ui-outboundreport: notjunk:1;M01:P0:QM3ghh1GxoA=;2RGTOz3E54onqM/V7p6Nb8FkWq0 I7FFwVsrblIRO/bJ+E6sGf2BAdGYnlVVQMZPIcIX3pxhpZcqSekszuqWZ5S7NtEKDlbPM7k1K FpOqpERvRT6MKdAYSpxrlN6UYaU0nwERu5l46cUHN6xLamCmHjH0p5WH0DT1bW1GQPfqBb6yr MxSZJJtUv/cJ6lulLcoX/4kPLoEI6SDhjiPx6jC4n8p/371/tRilW7Pt3IvfEMGJytfZDYbUy WkOO3QhXv2JSUBDXZ4mwEMR+Qfhauh+DAJOsYeCQLIWaYqqIQMjvk3cNFKZKhDnFn2NAtizWj fg1H1I0nTaULsUTg94PtbepMDPckrJBF4/jzlZ8m/eHqycbanDo08eSAeXusU3kv9g4AVe0r8 qDemoTxnfNCzLNuZ90EPn7YaYQm+0Fk6oieKgs/ZDqnxBiewz8XHuwKSX/SYRUGCM781Nx3+9 nQ8jTDNN+Ie7o/DXHQH+iRpBO1PpR6+ABtUJjoFWfaMPqtqkAaRq/V6IjiIbVmVBVt+BEIMB5 LHtavAePsKedwK4HRYI/AJQcosjtMdo7uwG2Fx5mZlZCRFfO3zHVrKASNyyiQtaI3G8b9oGnD gj89mNzdoRkyrURPZ99Q5ebeR9DkqR2fxjSRONNiV6TIcLSlyzldtwJPQWu/OBoV/kcoYdzwt v3HnuaaftomPrHlLsr1iu/2YCYDeTMpNeXZ1Aq2qQ0Tlenz3H5wxSze5dnMTD+FO18SEyHK9t wmQsWi6KlvXlPJQ8wd/lnPAFZ9wKdljtk/m26cQictHu1dZoqCjE4Hri8NegMdjlxfT6jsKI7 Dv0deCQp9+ey/pERRWL/Bhm21joR4C7sU29YCo09QC8kQAEZGyJztCNx8+JforsIVHTLGn7HM ciEKil+9QGkJXVg==
Hello Barry.
Glad it did it.
I would advise you get used to adding "contents of” every time you loop over a
list of items.
> On Oct 23, 2023, at 3:16 PM, Barry Fass-Holmes <email@hidden> wrote:
>
> Hi Deivy,
>
> *Many* thanks; that did the trick (woo hoo!).
>
> Barry
>
>> On Oct 23, 2023, at 11:23 AM, Deivy Petrescu <email@hidden> wrote:
>>
>> Hello Barry
>> I am not sure if the loop doesn’t set the size or it is the last bound that
>> doesn’t work, or both.
>> In any case, when you loop with items like you did, the loop goes through
>> reference of the items and not the items that we want it to loop.
>> So, in general, when I loop in loops like the one you used, instead of
>>
>> set this_item to item i of _theWindows
>>
>> I use
>>
>> set this_item to contents of item i of _theWindows
>>
>> The contents of this_item is going to be the windows and not a reference to
>> item x of _theWindows.
>>
>> In any case, with this modification Laine’s script works here.
>>
>>
>> Best, be safe, wear mask, get vaccinated and keep social distance.
>>
>> Deivy Petrescu
>> email@hidden
_______________________________________________
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