[JS, CS4] Document window resizing

Hi all

Problems resizing the document window main with the script fragment below. Used to work perfectly in CS3. In CS4, if the document window is maximized and then run the script, it works: it makes the smaller window. If the doc window is smaller than the maximum size and the script is executed, it maximizes the doc window: it is not the size specified in the script. In other words, every second time the script is run it works; other times, it maximizes the doc window. Have tried to use smaller values for the size of the victory, but no matter what values are.

Any idea what goes wrong? It's a little annoying problem for me...

===

left const = 0;  high const = 50; right const = 200; low const = 200;

win = doc.layoutWindows [0];

var limit = win.bounds;
limits [0] = top;   limits [1] = left;   delimits [2] = low;   delimits [3] = right;
Win.Bounds = limit;

===

I tried to do the foregoing point variable victory at app.activeWindow on the contrary - still does not work.

I hope someone can help...


Paul

I have no clue why InDesign, change the size of windows on the second consecutive time on the script.

Try code below, hope this will help you:

var doc = app.activeDocument
const left = 32;  const top = 105; const right = 1500; const bottom = 1500;
win = doc.layoutWindows[0];
if (win.bounds != top+ "," + left +  "," + bottom + "," + right)
{
win.bounds = [top, left, bottom, right];
}

Shonky

Tags: InDesign

Similar Questions

  • Resizing the document window, windows control panel

    I'm working on an iMac, and when I opened Fireworks CS5, the document window extends to almost the full screen.  The panels like the Properties Panel also expand to fit the width of the screen.

    I want to make these little ones.  But it does not re-sizing handles on one of these and there must be a way to do this, but I can't find anything that gives me instructions on how to do!

    Can someone give me a hand please.

    Thank you!

    Nina

    Try changing your workspace type with the selector of the workspace. Also check if you have enabled the functionality of Framework Application (window > Application frame)

  • Size of document window

    On a daily basis, I have opened up to 50 .eps different documents in Illustrator CS4, I then have to go through each document window and resize them and change the display in the window.  (usually 25%)  I'm doing this because we create about 14 different types of products that create customers through our Web site.  The files we receive from their orders are full of images and vector data .eps files.  Almost all orders has some minor positions we have to switch out for vector data.  It's easier for change us to resize the document window, the display to "Adapt to the window" (Ctrl + 0).  This does not seem a lot of work, but when you do it 50 times per day can become very high.

    Currently I get the bottom right of the document window and drag it to the upper left corner until the window is about 2 "-3" in size (on screen). "  I then Ctrl + 0 to make elements of the docutment resize according to the window; which is usually about 25%.  After doing this about 50 times that I then organize document per product function stacking windows.

    QUESTION:

    Is there a way to make Illustrator automatically this?  Tabs do not work, because I need to see all the files at once.

    The Application bar and Npages functionality are available in CS4 or CS5.

  • Problems when viewing files in the 'My Documents' window

    When I look at the files and folders in the My Documents window (in mode ' list') there is a wide space between the columns of information - I can barely hold two columns of names of files on my computer screen even if I do the window the maximum width.  It is a new problem - I used to be able to view the columns 3 or 4 names of files before.  My OS is Windows XP. Can you tell me how to reduce the space between the columns of information?  Thank you.

    Thanks for your reply "Tricky", unfortunately it doesn't work in "List" mode, and it is has no column headers.

    Apologies,

    I've been guilty of reading what I thought I only saw what I saw in fact.

    The only thing I know to which increases the width of the columns in the list view is the size of the names appearing in this column, they are files or folders. Check the lengths of file/folder name by renaming them, there might be some characters non-display, resizing of the window in the vertical direction might help identify the sections where the long name exists (if indeed that is the problem).

    Tricky

  • Diff between dialog and Document Windows?

    Hi all

    What is the Diff between dialogue and Document Windows?

    Thank you

    Window Style antonyms:

    MDI applications display a default parent, called the application window window. All other application windows are document windows or dialog windows.

    Document windows remain as part of the application window. If the user resizes the application window so that it is smaller than a document window, the document window is cropped. An operator can enlarge a document window occupies the whole workspace of the application window.

    Dialog windows are floating, and the operator can move outside the window of the application if they have been defined as mobile. They cannot be minimized, maximized, or resized by the operator.

    Valid only for a secondary window. (A root window is a document window.)

  • Safari doesn't remember the window resizing

    Using Safari Version 9.0.3 in Yosemite.  Safari NEVER remember the size of the window that I put it to the previous use. Does anyone know how to make Safari window resize the stick?

    Thank you!

    May be a corrupt .plist.

    Make a backup, preferably 2 backups on 2 separate drives.

    Quit the application.

    Go to Finder and select your user folder. With this Finder window as the windshield, select Finder/display/display options for presenting or order - J.  When the display options opens, check "show the library folder. This should make your visible user library folder in your user folder.  Select the library. Then go to Preferences/com.apple.Safari.plist.  Move the .plist on your desktop.

    Restart your computer, open the application and test. If it works fine, delete the plist for the office.

    If the application is the same, return the .plist where you got it, crushing the latest.

    Thanks to leonie for certain information contained in this.

  • CS4 on Windows 10 platform

    I am currently running CS4 on windows XP and you want to change to win 10. Are there known problems this change, using CS4?

    The major problem is that it probably won't quite work

    An idea that MAY work to install or run some programs in Windows 10 old... works for some, not for others

    -http://www.tenforums.com/tutorials/15523-compatibility-mode-settings-apps-change-windows-1 0 - a.html

    - or run as Administrator http://forums.adobe.com/thread/969395 to assign permissions Windows COMPLETE can help... said yet, but sometimes it is necessary for all Adobe programs (this is same as using an administrator account)

  • control the document window position/size?

    Is it possible for us to javascript (or other) to control the size of the document window (33.3%, 66.6%, etc.) or in position on the screen?

    With respect to zoom:

    by michael l hale;

    function setZoom (zoom) {/ / percentage}

    cTID = function (s) {return app.charIDToTypeID (s) ;};} of xbytor

    var activeDocument.resolution = docRes;

    activeDocument.resizeImage (undefined, undefined, 72 /(zoom/100), ResampleMethod.NONE);

    var / / desc = new ActionDescriptor();

    Var ref = new ActionReference();

    ref.putEnumerated (cTID ("min"), cTID ("MnIt"), cTID ('PrnS'));

    desc.putReference (cTID ("null"), ref);

    executeAction (cTID ("TPCV"), desc, DialogModes.NO);

    activeDocument.resizeImage (undefined, undefined, docRes, ResampleMethod.NONE);

    };

    app.activeDocument.suspendHistory ('zoom', ' setZoom (65) ');

  • I can install adobe pro cs4 on windows computer first 64 bit I can install

    I can install adobe pro cs4 on windows computer first 64 bit I can install

    Yes, you can install it.

  • How instale CS4 on windows 10

    Hello

    I installed cs4 on windows vista but now we do update and have a new computer with Windows 10

    The problem is when we installed CS4 on this computer purchased the license , but downloaded online.

    How can we online installations of CS4 through the adobe site?




    Thank you.

    An idea that MAY work to install or run some programs in Windows 10 old... works for some, not for others

    -http://www.tenforums.com/tutorials/15523-compatibility-mode-settings-apps-change-windows-1 0 - a.html

    - or run as Administrator http://forums.adobe.com/thread/969395 to assign FULL permissions can help... said yet, but sometimes it is necessary for all Adobe programs (this is same as using an administrator account)

  • Fire destroyed the computer, software, documents. Adobe can have my subscription for 3 Photoshop CS4 documents?

    Fire destroyed the computer, software, documents. Adobe can have my subscription for 3 Photoshop CS4 documents?

    Adobe will honor my membership by downloading CS4 and activating the latter?

    You need to contact Adobe directly for this kind of request, but I don't hold much hope.  They no longer support the older products and are more likely to get that back here as soon as you mention nothing other than to request a reset of your activation.  If they send you back here, I recommend trying to find a member of staff and private messaging to see if they'll lend a hand.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat

    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • Document windows does not use all the available on new monitor display area

    Hello

    I have a new monitor - a Benq BL2711.

    I have set up as my secondary monitor on display in Windows 8.

    I can put Photoshop (CS6) on this screen and maximize the it, but there is a vast space not used in the document window, which is not used. I want to show a lot more of my images that I can currently, but the document window will not only fill all that screen real estate. A large part of it is lost.

    The panels occupy the right space to the bottom of the screen, but the window of the document (or the display area?) uses only 60% of the height of the screen.

    What is a limitation or do I have to configure something? (I have reset the workspace of photography).

    Thanks for any help

    Nick

    It is really a shot in the water, but it's the space used by the "timeline" Panel when it is open. Try to check in the menu window and close the bottle.

    Other that that, there are always some good old Reset preferences. Make sure you save the custom actions/brushes/presets and so forth first!

  • CS4 on Windows 10 seems to be broken... at least I can't clone. Before that, Silver FX and the related add ons did not work. I would like to remove and re-install Photoshop CS4 on Windows 10, but I'm afraid that none of these upgrade CD I will work t...

    CS4 on Windows 10 seems to be broken... at least I can't clone. Before that, Silver FX and the related add ons did not work. I would like to remove and re-install Photoshop CS4 on Windows 10, but I'm afraid that none of these upgrade CD I will work... they are all dependent on a previous installation. If I remove photoshop and try to use the CS4 install disc I have, it fails? Will I need to re - install Photoshop 5.5 and each single update since then go to CS4?

    You need not install older versions in order to get the last update enabled.  During the CS4 activation process, you can specify the eligible previous version (choose the oldest among a list, then enter its serial number).  Choose any one you had just before CS4.

  • I can't reinstall or uninstall CS4 on Windows 7. I get a message indicating one or more CS4 applications are running and neet being closed, which is not.

    How can I reinstall or uninstall CS4 on Windows 7. I get a message indicating one or more CS4 applications are running and neet being closed, which is not.

    Hello

    Please close the process below the monitor activity/task manager and try again:

    Kind regards

    Sheena

  • Intel atom cs5/cs4? Windows 10

    First of all, I can always download cs5/cs4 on windows 10 or it will be saved too old?

    * I can not download the latest version of photoshop because I fear that it won't work on my laptop.

    Here are the specifications of my laptop:

    -windows 10

    -Intel Atom 1.33 GHz

    -8 GB RAM

    So I guess I'll have to count on cs5 or cs4 because maybe the newer versions will be too strong... Who do you think will be better for my listing?

    Yes I checked the system requirements for photoshop, but all im asking is can I download it and do stuff slight retouching or I totally cant? and my laptop will crash and I wouldn't even open photoshop again?

    Thank you.

    You can download one of these (CS6 or same last CC) Version.

    Versions of Photoshop officially only CC and above have been tested on Windows 10. CS6 will probably also work. I can't say whether or not older than CS6 versions will work. You can install and try.

    But, don't forget to use 3D and some other intense graphics have on Photoshop (CS6, CC) you must have minimum 512 MB of dedicated on your computer with updated drivers, graphics card

    Check other system requirements according to the version of Photoshop here system requirements | Photoshop

    Concerning

    Assani

Maybe you are looking for