Page 1 of 1
Resize Window (newbie)
Posted: 2020-05-28 22:51:03
by tedg
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
Re: Resize Window (newbie)
Posted: 2020-05-28 23:06:32
by phspaelti
Try
Code: Select all
$doc.windowOrigin = Size.new 780, 50
$doc.windowSize = Size.new 817, 2111
Re: Resize Window (newbie)
Posted: 2020-05-28 23:23:31
by tedg
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.
Re: Resize Window (newbie)
Posted: 2020-05-29 00:28:41
by phspaelti
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:
Code: Select all
$doc = Document.active
$doc.windowOrigin = Size.new 780, 50
$doc.windowSize = Size.new 817, 2111
Re: Resize Window (newbie)
Posted: 2020-05-29 03:40:43
by tedg
Thanks. I'll build from there and get back.