Would like to relocate and resize the frontmost document window. Tried the following and a few variations.
Is there a repository of example macros?
$doc.windowOrigin = 780;50
$doc.windowSize = 817;2111
Thanks in advance, Ted
Resize Window (newbie)
Resize Window (newbie)
User since 1990
Most current NWp and MacOS
MacBookPro 16-inch 2023
Most current NWp and MacOS
MacBookPro 16-inch 2023
Re: Resize Window (newbie)
Try
Code: Select all
$doc.windowOrigin = Size.new 780, 50
$doc.windowSize = Size.new 817, 2111
philip
Re: Resize Window (newbie)
Philip,
Searched the forum and see how helpful you have been. Thank you on behalf of all of us.
But that did not fly. Terminate at the end of first line.
Searched the forum and see how helpful you have been. Thank you on behalf of all of us.
But that did not fly. Terminate at the end of first line.
User since 1990
Most current NWp and MacOS
MacBookPro 16-inch 2023
Most current NWp and MacOS
MacBookPro 16-inch 2023
Re: Resize Window (newbie)
Hi Ted,
I guess I thought this was a bit of code you had ripped from a complete macro.
Of course for this code to work you will have to first define the variable $doc. So for example:
I guess I thought this was a bit of code you had ripped from a complete macro.

Of course for this code to work you will have to first define the variable $doc. So for example:
Code: Select all
$doc = Document.active
$doc.windowOrigin = Size.new 780, 50
$doc.windowSize = Size.new 817, 2111
philip
Re: Resize Window (newbie)
Thanks. I'll build from there and get back.
User since 1990
Most current NWp and MacOS
MacBookPro 16-inch 2023
Most current NWp and MacOS
MacBookPro 16-inch 2023