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: Barry Fass-Holmes via AppleScript-Users <email@hidden>
- Date: Mon, 23 Oct 2023 12:16:42 -0700
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