The place of simple script for Windows

I used a simple Applescript on my Mac of Indesign for years called Square Up CS installation. It's a handy little script that is by default an object selected into a simple retangle. I think this is extremely helpful when I missed a text box properties accidentally moving a corner or who need to return to a normal text box after changing his shape for some reason any. I am moving to a Windows computer full time and would like good port this script on my new computer, but I'm not a guru script and don't have no idea how to write this in Javascript. Anyone able to help?

Tell application "Adobe InDesign CS6"

'the class gbnd' selection value {a, b, c and d}

the value 'category plst' of 'class ppth' 1 selection to {{b, a}, {a}, {d, c}, {b, c}}

tell the end

Hi, Diane.

Step we must translate the Applescript coding in human readable Applescript, what make you it stick in the Applescript editor and pressing on the compilation. You get this:

tell application "Adobe InDesign CS6"
    set {a, b, c, d} to geometric bounds of selection
    set entire path of path 1 of selection to {{b, a}, {d, a}, {d, c}, {b, c}}
end tell

Second step:

Here is the translation in Javascript. Note that in JavaScript, berries (geometric boundaries and paths) start the meter to zero, rather than one, both "path 1" becomes "paths [0]", etc. ; [in addition, we refer to ' app.selection [0 '] instead of 'selection', because there may be multiple selections and AppleScript lets say 'selection' as meaning first, but JavaScript requires you to be explicit:

var abcd, a, b, c, d;
abcd = app.selection[0].geometricBounds;
a=abcd[0]; b=abcd[1]; c=abcd[2]; d=abcd[3];

app.selection[0].paths[0].entirePath = [ [b,a], [d,a], [d,c], [b,c] ];

I'm not 100% sure what is your test case, so if it turns out that the order of the numbers in the entirePath table is different between Javascript and AppleScript, then something can go wrong. I don't think, but please test it od.

Tags: InDesign

Similar Questions

  • I need to know the process to implement encryption for Windows 8, on a HP Pavilion

    Original title:

    Encryption

    There is a choice in my control panel to set up encryption, but I have to go through the TPM module to be able to put in place, and my PC is not safe and has never been, I need to know the process to implement encryption for Windows 8, on a HP Pavilion

    Hello

    Protect your files with the encryption device
    http://Windows.Microsoft.com/en-us/Windows-8/using-device-encryption

    Protect your files using BitLocker Drive encryption
    http://Windows.Microsoft.com/en-us/Windows/protect-files-BitLocker-Drive-Encryption#1TC=Windows-8

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Are there drivers for the recorder sony icd-bp150 for windows 7

    Are there drivers for the recorder sony icd-bp150 for windows 7? I can't recorder to work with the current drivers of dvr3. It works on XP machines but not my computer windows 7...

    Hello sconley3.

    I did some further research and found that, if the worm Software Digital Voice Editor 3.3 is compatible with Windows 7 OS, the recorder itself is not compatible with Windows 7 OS.

    However, you can try to transfer the files from the recorder to a computer with Windows 7 OS installed in it, using the stereo mini plug cable.
    Plug one end of the cable to the headphone jack of the recorder mini stereo jack.
    Plug the other end of the cable to the Microphone Jack on the computer.

    You can follow the link below to transfer files using mini cable plug.
    http://www.KB.Sony.com/selfservice/microsites/search.do?cmd=displayKC&externalID=C1002444

    Kind regards
    ColbyP.

  • I would like to ask what is the official number of built for windows 7 tnx

    I would like to ask what is the official number of built for windows 7 tnx

    Hello Goka86, this is 7600. Paul Smith - MVP for Windows desktop experience... I crawled off NNTP - for now. Detachment Aldershot, United Kingdom. On the internet at windowsresource.net and dasmirnov.net. Please post back to let us know what works and what does not. :-)

  • I have a file Windows pop up message Protection. It is said: the files which are required for Windows to run properly have been replaced by unrecognized versions.

    Original title: Windows File Protection Pop Up Message.

    I have a file Windows pop up message Protection. It is said: the files which are required for Windows to run properly have been replaced by unrecognized versions. To maintain system stability, Windows must restore the original versions of these files. Insert your Windows XP Home Edition CD-Rom now. The problem is that I do not have this CD and need a way to solve this problem. Thank you

    Hello

    1. have you made any hardware changes or software on the computer before this problem?
    2. when exactly you receive popup?

    Run SFC scans the computer and check.

    SFC tool scans system files and replaces incorrect versions of system files by using the correct versions.

    To run the System File Checker tool, follow these steps:

    1. Click Start and type cmd in the box start the search.
    2. right click on cmd in the list programs and then click Run as administrator.

    If you are prompted for an administrator password or a confirmation, type your password or click on continue

    3. at the command prompt, type the following line and press ENTER:

    sfc/scannow

    Reference: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/system_file_checker.mspx?mfr=true

  • Where can I find the Roll Up 2 update for Windows Media Center Edition 2005?

    I'm trying to download Media Player Version 11 and it says that I need to first install the Roll Up 2 update for Windows Media Center Edition 2005.

    Hello

    Before installing Windows Media Player 11 on Windows XP-based computer, you must download and install the Update Rollup 2 for Windows XP Media Center Edition 2005 on your computer.
     
    Initially, download cumulative update 2 for Windows XP Media Center Edition 2005 from this link.

    Update Rollup 2 for the Windows XP Edition Media Center 2005 (KB900325)
    http://www.Microsoft.com/en-US/Download/details.aspx?ID=12939
     
    Check out the link below to install Windows Media Player 11 on Windows XP.
    Windows Media Player 11 for Windows XP
    http://www.Microsoft.com/en-US/Download/details.aspx?ID=8163
     
    For more information, see Help links.
     
    Update Rollup 2 for Windows XP Media Center Edition 2005
    http://support.Microsoft.com/kb/900325
     
    It will be useful.
  • Where to install the IEE 802.11 g for Windows Vista?

    Where to install the IEE 802.11 g for Windows Vista.

    It's for the wireless, as long that you install the latest driver for your wireless manufacturer, it should install. Note that your wireless network must support this standard in wireless hardware.

    If you update your Windows, it could install too last driver update as optional.

  • Could not import the music downloaded from iTunes for Windows Movie Maker.

    Could not import the music downloaded from iTunes for Windows Movie Maker.  He plays in Windows Live Movie Maker and plays on my computer.  Cannot find the codec. Tried the solution to this same question and in help.

    Hello
     
    Some audio and video file formats are not supported in Windows Movie Maker and cannot be imported. However, if you have a video or audio file that is not taken care of, you can use a non-Microsoft video editing software to convert the file into a format supported by Windows Movie Maker, and then import the video file or an audio resulting in Windows Movie Maker. Some files also require you to install a codec before you can use the files in Windows Movie Maker.
    Note: The use of third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
     
    Import video, photos and audio on Windows Movie Maker
    A problem of importing files into Windows Movie Maker
     
    Windows Movie Maker uses. WAV file formats and Apple's iTunes use it. AAC format.
    You can also try saving iTunes songs in the. WAV format instead of Mp3 format and check.
    For more information, see the link:
    Hope this information is useful.
  • Microsoft Bluetooth Notebook Mouse 5000 installation error: "problem installing the driver for the device software - file to install the driver for this device is missing a necessary entry.» Maybe it's because the file INF was written for windows 95 or la

    Original title: Microsoft Bluetooth Notebook Mouse 5000 install problem

    I have a LG S1 Pro Express dual computer with vista sp2. My Bluetooth Notebook mouse 5000 can be coupled to my computer, but after pairing, it will say "Device Bluetooth HID - ready to use" and "unidentified - device failed. It then opens a window saying "problem of installing the software driver for the device - driver for this device is missing a necessary entry.» Maybe it's because the file INF was written for windows 95 or later. »

    I checked some things here and read about intellipoint 7.x and installed but it still does not work. This used to work before mouse

    Hello
     
     
    The drivers that you try to install seems to be corrupted. Let us fisrt remove all traces of the software driver for this device in the Device Manager and then install the drivers from the manufacturer's Web site.
     
    Step 1.
    You can uninstall the audio drivers completely from the Device Manager and re-install from the manufacturer's Web site.
    I would also recommend to check if there are Windows updates for this device.
     
    Step 2.
    Here is the link to download the latest drivers.
    http://www.Microsoft.com/hardware/download/download.aspx?category=MK
     
    Select the type of product like "Mouse" and select the product as "Notebook Optical Mouse" and your version of operating system and the language of the operating system.
     
    This page will direct you to a link to download the IntelliPoint software, which is the software of the mouse.
     
    For more information see the links below.
     
    I hope this helps.
     

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The Electronic Program Guide (EPG) for Windows Media Center stopped display information guide

    The Electronic Program Guide (EPG) for Windows Media Center stopped display guide information beginning January 1, 2013 in the United Kingdom and Ireland.

    Microsoft is aware of the issue with the Electronic Programming Guide for Windows Media Center in the United Kingdom and Ireland.  We have identified the cause and have already deployed a fix for the United Kingdom.  A solution for the Ireland is being prepared and we will post an update when the problem is resolved.

    We apologize for the inconvenience to Windows Media Center users in these countries.

  • I bought the 14 for Mac adobe elements.  Is there a download error.  I received an email with the serial number, but when I went on the site to download the illustrated product was 14 for Windows.  What is the download link for adobe elements 14

    I bought the 14 for Mac adobe elements.  Is there a download error.  I received an email with the serial number, but when I went on the site to download the illustrated product was 14 for Windows.  What is the download link for adobe elements 14 for Mac?

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    -Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • Items 14 to iMac - I bought 14 items laetitia, but when I got on the download site is only for windows. What can I do? I'm not going to install windows on my iMac. Thanks for the reply.

    I bought 14 elements Adobe on the web (adobe.com) and when I got to the download option is only for windows. What can I do? I'm not going to install windows on my mac.

    kglad links in response to #1 here can help https://forums.adobe.com/thread/1986122

  • Why people have suddenly begun to report their entire question in the place that is intended for a brief description of the problem.  Is there something inherently wrong with the new format of format?

    ... Only to repeat it once again here.

    Why people have suddenly begun to report their entire question in the place that is intended for a brief description of the problem.  Is there something inherently wrong with the new format of format?

    Ahhh, now I see.

    The man, who is just really, really bad design forum.

    I know that it will hurt, Adobe, but you will be away to Jive at a given time.  You're going to have to, as Jive moves further and further away from the ease of use.  So... Dick.22 now, or le.45 later.

  • Why the reader most recent Flash for Windows so plant them?

    Why the reader most recent Flash for Windows so plant them?

    I use the latest update of Flash player that has developed on this computer.  It's Flash player version 11.1.102.62 on a Windows 7 computer.  I have experienced excessive crashes Flash player in Firefox and Internet Explorer.  Since the two latest updates of Flash player who, it seems to come from Adobe it is a big problem with Flash player crashes.

    Previously, there was no problem... then there was the update yesterday and problems began.  I was hoping the last update would have fixed this problem, but now it's worse.

    Is it possible to return three updates and install older Flash Player?

    Adobe will never get this fixed number?

    Thank you

    Digi

    reproduce crashers regularly contributes to refine specific problems.  the random thugs are difficult to follow and difficult otherwise.

    the latest version of Flash Player, 11,2,202,228, were announced last week.  It would make 11,1,102,62 version two behind.  Would you mind upgrade to the latest version of the player?  There are a few crash fixes in our last offer.  You can go here to update: http://get.adobe.com/flashplayer/

    It is possible to downgrade, but it is not desirable that the old version will be always up-to-date with patches secuirity.  If you option for this, you can retrieve older versions here: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html#main_Archived_v ersions

    Note: Make sure you completely uninstall the existing version.

    Thank you...

  • How can I disable the auto restart (following updates) for Windows 7 Home Premium (without messing around w / the register)?

    Hello.  About all of the weeks I have my upload computer files from one day to the next.  It's a 17-hour process, and I don't want the computer off or restarted during this process.  Murphy's law usually results in an update windows & restart related happening whenever I put my computer to download said.  First of all, it is deeply annoying that windows would reboot my computer without asking me (Yes, I realize he asks you, and if you are away for an extended period, he just goes ahead and does it... but really, what the $#! % is the point of asking you if she goes ahead and that anyway when you get him just enough early?)  Wow!  Incredibly retarted the Windows for this.)  But anyway, how can I disable this for Win7 Home Premium?  (As if in the first place is not quite annoying, making it virtually impossible to figure out how to turn it off is like adding insult to injury).  Please NOTE, I've seen some other forum post responses on this site that is: (1) link to an information page on the group policies for system administrators, but nowhere does really explain where and how to access these policies and change them!  (2) has a process that begins with 'gpedit.msc' running, but when I started > box to search for this file, there is no result.  (3) the hacking the registry (seriously?  Please, don't.)  SO, please tell me how to disable the auto restart, step by step, without messing with the registry, for WINDOWS 7 HOME PREMIUM.  Ideally, I'd like to be able to potentially re - activate cela in the future and/or switches back as my usage dictates.  And for the record, it's nut that's not a simple option toggle any, as when my computer or monitor sleeps...  Thank you!!

    Thank you.  I'll do it and change my Windows Update settings.  BUT, FYI, in an act even more incredible, the same night I posted my question here, my computer was said upload, and I was still in place at 03:00 (when Windows is set to d/l and install updates).  I went to the kitchen for a bit and returned to my computer to find a countdown - he downloaded updates and "will re-start in 7 minutes" or so and counting down... I said "AH HA!"  I caught you! "I clicked the button of REPORTER and went to bed smiling that I myself had saved wasting many hours of work.  But when I woke up the next morning... HE HAD DONE IT AGAIN!  This means that it is: (1) downloaded another "critic" (cough) update later in the evening, which seems likely because it took to do this at 03:00 and had already done so... or (2) the REPORTER button defers only during a certain period of time (maybe an hour, or even less, by the look of it) and then do it again anyway.

    This is ridiculous.  As it is not ridiculous to called 9 10 patches 'critical', so critical that an urgent restarting your computer is necessary EVEN IF HE is BUSY WORKING, the substitution of the computer user asks to postpone and reboot anyway is absolutely unacceptable.  How the manufacturers of Windows might think this makes sense, let alone was a good idea?  Reporter should make the computer restarts DO NOT until * I * say he is allowed to do.

    In this case, finish the work of 17 hours, that the computer was in the Middle has been MUCH more critical that whatever is downloaded updated.  NO doubt about it.  I know.  Apparently, my operating system is not smart enough to know.  So to take it upon himself to replace my reporter application is crazy.  And in addition, the operating system MUST be smart enough to understand this - it's really not that difficult - if the computer is a lot of work, something intense, a download that is not finished, a sort of bar of ANY progress on ANY application which is not 100% yet, etc., it should be smart enough to WAIT to reboot anyway.

    Thanks again once, change Windows Update settings so it will download updates but let me choose to install them, since this operating system is so poorly thought.

Maybe you are looking for