Reply to topic  [ 3 posts ] 
Controlling the size of a window 
Author Message

Joined: 2016-04-24 00:13:31
Posts: 4
I am new to Nisus (and the macro language).

Is it is possible to control the size of a document window?

I would like to open a particular file, turn off toolbars and set the zoom to a particular percentage. All of which I see the right commands in Nisus.

But also I would to position the document window in one side of the screen. Is this possible with the macro language?

2016-04-24 00:20:29
User avatar

Joined: 2007-02-07 00:58:12
Posts: 876
Location: Japan
If memory serves the old Nisus Classic macro language had commands to set the window, but not the current macro language.
This is one area where you can use AppleScript, and you can use the Nisus Writer macro language "Run AppleScript" command from inside a Nisus Writer macro.
Here is an example. You'll obviously have to experiment with the size specification to get the desired result:

$code = 'tell application "Nisus Writer Pro" to set the bounds of the front window to {500, 25, 1550, 850}'
Run AppleScript $code


2016-04-25 09:29:46
Official Nisus Person
User avatar

Joined: 2002-07-11 17:14:10
Posts: 4251
Location: San Diego, CA
If you just want to control the position of the window (and not its size), you can do so using NWP's macro language:
$doc =
$doc.windowOrigin =,50)

But Philip is right that you'll have to dip into AppleScript to change the window size.

2016-04-26 17:03:10
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software