Short cut coding

Hi all

The code below is to create margins for spreads masters. If any coding for this shortcut.

See my code below

myDoc var = app.activeDocument;

mydoc.masterSpreads.item (0).

pages. Item (0).marginPreferences.top = "6 p";
mydoc.masterSpreads.item (0).pages.item (0).marginPreferences.left = "3 p";
mydoc.masterSpreads.item (0).pages.item (0).marginPreferences.bottom = "6 p";
mydoc.masterSpreads.item (0).pages.item (0).marginPreferences.right = "3 p";
mydoc.masterSpreads.item (0).pages.item (1).marginPreferences.top = "6 p";
mydoc.masterSpreads.item (0).pages.item (1).marginPreferences.left = "3 p";
mydoc.masterSpreads.item (0).pages.item (1).marginPreferences.bottom = "6 p";
mydoc.masterSpreads.item (0).pages.item (1).marginPreferences.right = "3 p";

Alert ("Done")

Kind regards

Assia

Or for the real reasons of brevity: ;-)

app.activeDocument.masterSpreads[0].pages.itemByRange(0,1).properties={marginPreferences:{top:'6p',left:'3p',bottom:'6p',right:'3p'}};

Just a point to note that square brackets [0] instead of .item (0) is a bit more convenient.

PS Marc, sorry for the plagiary.

Concerning

Trevor

Tags: InDesign

Similar Questions

  • When I click on the shortcut it does not open firefox but if I hold the cursor on the short cut it shows tabs from last time, but not open them

    But if I hold the cursor on the short cut, that it shows the last tab and how many pages come from my last visit, but will not open them no matter how many times I click it

    If you think that your Firefox window can be "off-screen" somewhere, what happens sometimes to certain users, this discussion has a few things to heal that: when I go to open firefox it appears on my toolbar, but not on my screen where it is?

  • Create keyboard Short Cuts

    I use El Capitan and want to create a keyboard shortcut that will restore a window that I minimized (command-M).  I know where the short cut menu, but I'm not able to get the new command to work (I tried Command-R).  Any suggestions?

    Perhaps this departure from OS X Daily http://osxdaily.com/2013/03/22/5-simple-window-management-keyboard-shortcuts-to-improve-workflow-in-mac-os-x/.

  • short cuts on the desktop for the URL will not work. Try to connect the browser when rises the address has not been transposed, it's all just white

    short cuts on the desktop for the URL will not work. Try to connect the browser when rises the address has not been transposed, it's all just white

    There may be some problems that repair tools are not picking up. It may be preferable to a repair facility. This can help with any corruption of the registry, which could happen by the deletion of these programs. http://support.Microsoft.com/kb/917964

    Keep in mind when running all that modifies the system it is always a good idea to have your data and backup programs (it's general advice for any system its always good to have a backup in case of possible failure of material/virus)

  • the window live mail error 0x800ccc78 there is a padlock sign on the short cut

    window mail liv is no woring, keeping see error 0x800ccc78 and the short cut shows a padlock, went to currys to fix for me but they do

    because they sayn is a problen of microsof

    Windows Live Mail is supported in this forum
    http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail?tab=all

  • First (German version) "excerpt" short cut (shift - Ä) won´t work

    Hello

    It s the short cut in the German version of first CC won´t work.

    Lift works ('') but extracted and close space (shift - Ä) does not work.

    First 2015 V/3

    MacBook Pro 2015

    and iMac too

    someone out there who has the same problems?

    This is a very important shortcut, I used it all the time while I just changed with Avid.

    CAN´t understand that this passed the beta test.

    Any help would be nice...

    A by the way, why the different languages were shortened in different positions, I Don t get this?

    For me, it makes no sense.

    And Wochenende would have something like a 'keyboard', so Wochenende see shortcuts?

    the search box is nice, but you can´t find things if you don t know them...

    Thanks pele

    Shortcuts are based on a USA keyboard.

    What's yours on USA or German?

    I assume his German as

    Mine is set to USA and lift for me is; and the excerpt is"

  • PNG, short cut sequence

    Hello

    I'm working on a video sequence of 10 minutes and one of my animations is a PNG 430 image sequence.  This was introduced in the project very well and I continued to work on pieces later.  For some reason any when I rub the timeline back on this first part of the project that it has cut sequences short png animation, it plays around 25% of the animation, and then maintains.  It should play at 100% then hold on the end condition.

    When I display the properties of this clip, the duration of the end says 476 and is located at the end on the scroll bar.  If I move it it aligns with 100 and will not go further.

    Retiming of the clamp to 100% it's still playing less, about 10% of the animation completes.  Replacing media with the same png sequence does nothing.  The only solution is to remove the clip and re - import and redo my animation on this subject.  I had to do this several times throughout the project for previously filled groups / layers that were very well originally.

    All media is on the local drive.

    Any ideas what I could do wrong?   I copy clips to the timeline and paste sections later and then change the properties of the duplicate (not clone) which I think mess with the original somehow that it is always on the clips that are reused.

    Thanks for any idea.

    Check your field of play.

    You might have accidentally shortened it by typing the command-option-O instead of simply type O to define an outpoint on another object, or put you and I forgot about it.

    Or

    You set an out point on the group that contains the image sequence.

    Or

    You may accidentally set the length of the piece (to point) of one of the images in the sequence to a longer time (and it was probably moved to the top of the layers in the image group.)

    All sorts of things could have happened.

    Try to re-import the image sequence and clone group.  Do new clones of the original whenever you need a new copy.

  • Photoshop cs6 - scanning - how to find the version 32 bit - short cut?

    I had to reinstall Photoshop CS6. I lost my cutting short 32 bit version, so I can plug my EPSON scanner. I downloaded the plugin from the ADOBE support TWAIN and managed to drag the TWAIN file in the plugins folder, I found that:

    C:\Program Files (x 86) \Adobe\Adobe Photoshop CS6\Plug-Ins\


    I downloaded the latest driver for my EPSON scanner and my scanner works perfectly.

    I opened my Photoshop, went to FILE-> IMPORT-> and connected to my Epson Scanner. His name was there and I clicked it.


    In respect of the IMPORT-> WIA scanner works but only as a generic scan.

    Previously, I also used the 32-bit version of my CS6, who, according to Adobe, the two versions are uploaded at the same time.

    However, I can't find the 32 bit version.

    Can someone help me, so I can scan with more options? Thank you.

    Because the 32-bit version seems to be installed right click on the Photoshop.exe and create shortcuts for it.  Copy to your office to your taskbar your startup programs file where you want a.

    The .exe is not displayed because you the settings of Windows has Windows hide known extensions...

  • When, on a website, is it possible to insert a Word frequently used with a customization of Firefox or short cut?

    I have to insert a Word, often on a particular Web site. I don't want that he memorized by a form fill password program. I'd love to set up a way to paste several times using Firefox and with only one or two keys. Any ideas?

    Thank you.

    That's close enough...

    There is an extension called cuts you use to store extracts of the text you want to insert. After you create a cut, you can assign a keyboard shortcut to it. With the help of the key includes two steps:

    • CTRL + Alt + v for calling clipping shortcut key dialog box
    • Pressing the button inserts the clipping

    https://addons.Mozilla.org/firefox/addon/clippings/

  • Change the camera Angel in Multicam "short cut".

    Hello!  I just finished a dance performance filmed with 4 cameras.  My master multicam sequence is finished and ready to export.

    Screen Shot 2015-12-17 at 6.51.08 PM.png

    As you can see above, there are a ton of cuts on the timeline between each of the 4 cameras.  The customer wants a plan just as wide.  I want the titles, credits and dissolved not to change at all.  Without hovering over each clip, y at - it a shortcut to select all the clips and with a click of the mouse. change all the angels to the camera I want?

    * I tried and highlighted every time it needed to be changed for 1 camera, right click; nothing there.  I kept had highlighted them and clicked the camera Angel, I wanted in the Viewer, only an angel that I flew over changed.  Can someone help and save me the hassle of more time?  Thank you!

    * I tried and highlighted every time it needed to be changed for 1 camera, right click; nothing there.

    It should work. I can choose different, many camera angles, mixed cameras - now (Windows) shift while selecting, then right-click > popup > choose multicamera > drag on a specific camera > select - and all the selected camera angles change of 'new' selected camera

  • Apple Watch Update 3, frends short cut missing?

    I updated my Apple Watch version 3. I have more frends function to quickly access the frends. Is there a simple job to quickly access the frends or is he a good replacement app?

    Hello

    Under watch OS 3, the friends feature (which was available in previous versions) comes over and there is no direct replacement for it.

    When making calls or sending of new messages, contacts instead can be selected via the phone and Messages applications or using Siri:

  • I need to save a Web site on my desk for a short cut. How do I do that? There is no other choice

    I need to save the address of the website https://my.waldenu.edu/portal/User/LcpLogin.aspx to my desk top shortcuts. I can do it with internet explore, but I don't like it and can't find an option to do it with my Firefox. Can someone please?

    1. Resize the Firefox window so that the part of the office shows.
    2. Click and drag the icon on the left side of the bar (usually a globe or a padlock) address on the desktop.
  • How can I create a 'short cut' with my email address becomes a one-click function

    I get my e-mail several times during the day. would like to have a quick shortcut that remembers the full address with a single click

    Firefox has a feature that will hold the values you type in web forms. So the next time that you fill in your e-mail address if you just type the first letter, Firefox will offer a value that you can auto complete. He put to work by default. This article describes how it works - check if Firefox automatically fills in forms.

    Other that that, there is "Clipboard managers" - programs that add additional functionality to the Windows Clipboard function. This wikipedia article lists a few of them http://en.wikipedia.org/wiki/Clipboard_manager#Windows

  • How to solve the problem of the short cut the http doesn't have a program recorded when opening a file?

    I have I've unloaded .a pixela application disc ver.3.5 (pixela corporation). It has been downloaded successfully... but when I tried to open it, it was said that the http shortccut doesn't have a register ed program and there do not have open.what do I open the file?

    Hello

    ·          What version of the operating system is running on your computer?

    I suggest you to reinstall the program and check whether the problem is resolved.

    Uninstall a program: http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program

    To reinstall: http://www.pixela.co.jp/oem/canon/e/pixela_application_disc_ver30/download.html

  • Short cut and Document link problem

    Some of my shortcuts on the desktop do not work. also when I have a link in a Word document it does not connect and then I get a message: "this operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator. «Note: my operating system is Windows XP.» Any help will be appreciated, thanks.

    Some of my desktop icons/shortcuts work and some do not. Internet links in word documents do not work. This all started about two weeks ago. Please help, thanks

    Hello

    I suggest you run the fixit tool and check.

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    http://support.Microsoft.com/mats/system_maintenance_for_windows/en-us

    I also suggest that you send your query to Microsoft office (word).

    http://answers.Microsoft.com/en-us/Office/Forum/Word

Maybe you are looking for

  • iPhone and itunes

    my iPhone 6 s icon does not appear in iTunes but my iPad only.

  • How can I find out what all the "others" are on my hard drive?

    I'm trying to free up space, storage, there are so many other space of plug, but I'm not sure how to locate files to remove. Help

  • Qosmio F10-136 VGA does not work with the INVENTOR

    Hi, I bought a qosmio f10-136, I use CAD/CAM software and when I started working on the INVENTOR he used to close, when I contacted AUTODESK they told me that my VGA is not certified for use with INVENTOR 10.0, I tried to update my VGA driver toshiba

  • HP photosmart 7510: print

    Help!  I hope I can explain this: I print on sheets 4 X 6 in a document created in microsoft word.  I would like to map main paper in the tray, press on print and he was there. My printer stop working so I reinstalled it.  Now, it resumes from the ph

  • Smartphone blackBerry Bold 9780 new e-mail configuration problem

    I tried to establish a new email on my phone and go through the wizard to do.  However, whenever I select the 'E-mail accounts' option in the installer, I get an hourglass and nothing will happen. Occasionally, by selecting 'Email accounts' will actu