[JS IDCS5 Server] app.menuActions.item ("Go to Item") .invoke ();

I have the following script applies xml attribute values to scale the image size and offset:

#include "glue code.jsx";

main();
 
function main(){
 
var myDoc = app.activeDocument;
var myRuleSet = new Array (
new findObjAttribute("//Afbeelding")
);
 
with(myDoc){
var elements = xmlElements;
__processRuleSet(elements.item(0), myRuleSet);
}
}

 
 
function findObjAttribute(XPATH){
this.name = "Afbeelding";
this.xpath = XPATH;
this.apply = function(myElement, myRuleProcessor)
{
with(myElement){
try {
var myXmove=myElement.xmlAttributes.itemByName("yoffset").value;
var myYmove=myElement.xmlAttributes.itemByName("xoffset").value;
var myHeight=parseInt(myElement.xmlAttributes.itemByName("height").value);
var myWidth=parseInt(myElement.xmlAttributes.itemByName("width").value);
var myScale=parseInt(myElement.xmlAttributes.itemByName("scale").value);

          app.select(myElement);
            try {
                app.menuActions.item("Go to Item").invoke();
                }catch(e){};
                app.selection[0].graphics[0].move(undefined, [myYmove, myXmove]);
                app.selection[0].geometricBounds = [0, 0, myHeight, myWidth];
                app.selection[0].graphics[0].horizontalScale = myScale;
                app.selection[0].graphics[0].verticalScale = myScale;
            app.selection = null;
     } 
catch(e){};
}
return true;
}
}

InDesign desktop it works very well. On InDesign Server, it does not work!

app.menuActions.item("Go to Item").invoke();

The line above does not work on InDesign Server because it has no interface? And the way to generate scripts to make it work?

Best regards, Sjoerd

No, no.

You do this:

app.select(myElement);
...
app.selection[0].graphics[0].move(undefined, [myYmove, myXmove]);

Never do this. If you mess with the user's selection, you're doing something wrong. It will be slow, it will mess up the State, it's probably not idempotent, and it won't work with InDesign server.

Instead, operate directly on myElement:

myElement.graphics[0].move(undefined, [myYmove, myXmove]);

(If this does not work, you may need to adjust the exact specifier or XML element you use, or use .xmlContent or whatnot.)

Tags: InDesign

Similar Questions

  • MenuActions.item () .invoke () CS3 - How can I select a specific palette?

    My javascript is running:

    app.menuActions.item("$ID/SortByName").invoke ();

    for her "sort by name", at least, the character Styles palette, palette of Style paragraph and probably others.
    I want to target just the "$ID/CharStylePanelPopup '...
    app.menuActions.item("$ID/CharStylePanelPopup.SortByName").invoke (); It does not work
    Is there something else I can do?
    Thanks for the tips...
    --
    Google

    Hey Google,

    Try something like this:
    myMenu = app.menus.item("$ID/CharStylePanelPopup var");
    var myMenuItem = myMenu.menuItems.item ("sort by name");
    var myMenuAction = myMenuItem.associatedMenuAction;
    myMenuAction.invoke ();
    Thank you
    OLE
  • Server.app and port 4444

    I was checking my open ports on my Mac server recently and noticed that the port 4444 was open. (To my knowledge) I have not all installed services using this port, so I was a little confused. All that is using this port runs under launchd so I can't kill him directly. When connecting to this port on telnet it returns an HTTP 405 error. As a test, I uninstalled Server.app temporarily and when I checked my ports once again, he was more open. What is Server.app uses this port to?

    Thank you

    This port must be accessible from the server itself on localhost.  It is the process of krb524 (translator of Kerberos 5 to 4) and is used with Directory Services.  With installed Server.app and services that are running, it's a normal service.  but as mentioned, he must answer only when he is interviewed by localhost.  If you do a port scan or telnet from another machine on your local network, the service should not respond.

    Reid

    Apple Consultants Network

    Author - "El Capitan Server - Foundation Services.

    Author - "El Capitan Server - Collaboration & control»

    Author - "El Capitan Server - Advanced Services '.

    : IBooks exclusively available in Apple store

  • In App purchase items

    Hello

    I made an app with opportunities to buy new items (eg. graphics, sounds,...).

    My questions:

    -Objects are they integrated application and unlocked when buying?
    -Otherwise, where they are kept after purchase?

    Thanks in advance for your help.

    I think his question is whether the assets of all that is in the items 'locked' appear in the original file bar or if they are they received in a way via the 'unlock' process by in app purchaes.

    If that is the question, then the answer, it is possible to do anyway, but it is much easier to pack the locked content (graphics, sounds, etc.) in the original toolbar file and have the app to buy flip a bool to unlock objects instead of downloading assets from an external server (that you would have to run yourself) and have those loaded into the app.

  • Move the 'concurrent processing server' app server-to-Server DB

    Hello Experts,

    Kindly, I have to know hOE to move 'competitor Manager' of the App server at DB server.


    # Environment:

    Application version: 12.1.3

    The basic version: 11 GR 2

    Operating system: Solaris 10 Sparc x 64


    Thank you

    Hello

    A way to do it is to clone the application layer to the database server, run adcfgclone and enable the service only of batch processing.

    On the current application layer, change the context file and the batch of treatment to the value disabled and run the automatic configuration.

    Kind regards

    Bashar

  • All DPS (mutifolio + right server) App and the AppStore approval

    Hello

    We are building a Mutlifolio + right asks to be distributed free of charge, via the Apple AppStore.

    When getting the app, customers without username/password did not able to see folios until they get the appropriate credentials.

    In this case the folios are forthcoming "Retail" to be managed by the right (right) Server?

    What do I need to create purchase inApp in this application, even though the folios to share are free?

    Thank you

    If you don't want any what folios visible until the user logs then don't set up any in-app purchases in iTunes. Folios will remain hidden until the Player connects. Do not publish folios retail and non-free, producer of Folio.

    Neil

  • When I start to Oracle Application server apps I got below error mention with the log file

    Service control script execution:

    /U01/appstier/vis/inst/apps/VIS_prod/Admin/scripts/adalnctl.sh start

    Timeout specified in the context file: 100 second (s)

    script gave:

    ****************************************************

    adalnctl.sh version 120.3

    Check executable FNDFS.

    From listening APPS_VIS process.

    adalnctl.sh: exit with status 0

    adalnctl.sh: check the logfile /u01/appstier/VIS/inst/apps/VIS_prod/logs/appl/admin/log/adalnctl.txt for more information...

    .end std out.

    .end err out.

    ****************************************************

    Service control script execution:

    /U01/appstier/vis/inst/apps/VIS_prod/Admin/scripts/adapcctl.sh start

    Timeout specified in the context file: 100 second (s)

    script gave:

    ****************************************************

    You are running version 120.7.12010000.2 adapcctl.sh

    From OPMN managed instance Oracle HTTP Server (OHS)...

    adapcctl.sh: exit with status 0

    adapcctl.sh: check the logfile /u01/appstier/VIS/inst/apps/VIS_prod/logs/appl/admin/log/adapcctl.txt for more information...

    .end std out.

    .end err out.

    ****************************************************

    Service control script execution:

    /U01/appstier/vis/inst/apps/VIS_prod/Admin/scripts/adoacorectl.sh start

    Timeout specified in the context file: 100 second (s)

    script gave:

    ****************************************************

    ERROR: Timed out (100000): Exception interrupted

    You are running version 120.13 adoacorectl.sh

    From OPMN managed OC4J instance OACORE...

    ****************************************************

    Service control script execution:

    /U01/appstier/vis/inst/apps/VIS_prod/Admin/scripts/adformsctl.sh start

    Timeout specified in the context file: 100 second (s)

    script gave:

    ****************************************************

    You are running version 120,16 adformsctl.sh

    From successful OPMN FORMS OC4J instance...

    adformsctl.sh: exit with status 0

    adformsctl.sh: check the logfile /u01/appstier/VIS/inst/apps/VIS_prod/logs/appl/admin/log/adformsctl.txt for more information...

    .end std out.

    .end err out.

    ****************************************************

    Service control script execution:

    /U01/appstier/vis/inst/apps/VIS_prod/Admin/scripts/adoafmctl.sh start

    Timeout specified in the context file: 100 second (s)

    script gave:

    ****************************************************

    You are running version 120,8 adoafmctl.sh

    From OPMN managed Association OC4J instance...

    adoafmctl.sh: exit with status 0

    adoafmctl.sh: check the logfile /u01/appstier/VIS/inst/apps/VIS_prod/logs/appl/admin/log/adoafmctl.txt for more information...

    .end std out.

    .end err out.

    ****************************************************

    Service control script execution:

    /U01/appstier/vis/inst/apps/VIS_prod/Admin/scripts/adcmctl.sh start

    Timeout specified in the context file: 1000 second (s)

    script gave:

    ****************************************************

    You are running version 120.17.12010000.3 adcmctl.sh

    Starting at the same time responsible for LIVE...

    Departure VIS_1202@VIS internal competitor Manager

    Default printer is noprint

    adcmctl.sh: exit with status 0

    adcmctl.sh: check the logfile /u01/appstier/VIS/inst/apps/VIS_prod/logs/appl/admin/log/adcmctl.txt for more information...

    .end std out.

    .end err out.

    ****************************************************

    Service control script execution:

    /U01/appstier/vis/inst/apps/VIS_prod/Admin/scripts/jtffmctl.sh start

    Timeout specified in the context file: 100 second (s)

    script gave:

    ****************************************************

    You are running version 120.3 jtffmctl.sh

    Validate the patch level of achievement by/u01/appstier/SCREWS/apps/apps_st/comn/java/classes

    Valid fix Fulfillment level.

    From realization for SCREWS on port 9300 server...

    jtffmctl.sh: exit with status 0

    .end std out.

    .end err out.

    ****************************************************

    [Service Control implementation report]

    The format of the report is:

    < group Service > < Service > < Script > < status >

    Root active Service

    Root Service Oracle Process Manager for VIS_prod adopmnctl.sh Started

    Entry Point active Web services

    Entry point Web Services Oracle HTTP Server VIS_prod adapcctl.sh Started

    Web Entry Point Services OracleTNSListenerAPPS_VIS_prod adalnctl.sh Started

    Application Web enabled services

    Web Application Services OACORE OC4J Instance VIS_prod adoacorectl.sh Failed

    Web Services FORMS OC4J Instance VIS_prod adformsctl.sh Started

    Web Application Services Association OC4J Instance VIS_prod adoafmctl.sh Started

    Services enabled processing batch

    Batch Processing Services OracleConcMgrVIS_prod adcmctl.sh Started

    Batch Processing Services Oracle Fulfillment Server VIS_prod jtffmctl.sh Started

    Other disabled Services

    Other Services OracleFormsServer - forms VIS_prod adformsrvctl.sh disabled

    Other Oracle Metrics customer VIS_prod adfmcctl.sh people with disabilities Services

    Other Oracle Metrics Server VIS_prod adfmsctl.sh people with disabilities Services

    Other Oracle MWA Service VIS_prod mwactlwrpr.sh people with disabilities Services

    ServiceControl dating status 1

    ============END OF LOG FILE=======================================

    Here are the results of some queries:

    The query result

    Select the status from v$ instance;

    STATUS

    OPEN

    Select INSTANCE_NAME from v$ instance;

    INSTANCE_NAME

    SCREW

    If you have changed the IP address, then you must purge FND_NODES, then run AutoConfig on the node of the database layer and the application layer node to populate the table. Once the correct entries exist in the FND_NODES table, and then you can start services and check - assuming that the IP address was successfully changed at the level of the BONE.

    Thank you

    Hussein

  • Web App store Item produced

    Is it possible to transform an element of web application in a product from store through Automation?

    I work for an organization not-for-profit and we have a web application that allows users to submit projects that can give donors to. Once a user proposes a project and it is approved by us, it will be on our "online store". I know that we can manually create a new store, but I hope that he stays the way with BC that once a user submits a project he could automatically become a disabled product.

    Hey there,

    You can not convert a web application in a prodocut.

    If you have a seamless payment gateway you can sell the items web app themselves however. Looked at this option?

  • Web app lists items in secure areas

    I have an application single web, and I'm trying to distribute items web apps secure through secure areas, that a client can connect.

    For example, client A is a member of Secure Zone 1, which contains the secure web app elements X, Y, Z

    Client B is a member of the Secure area 2, which contains the secure web app components U, V, W

    What I discovered that both clients can see all the elements of web application (U V W X Y Z) in the layout of the list view, but clicking to view the details of an article not in their secure area invites you to connect.

    Is this correct? If I GET an element by placing it in a secure area, I do expect to appear in a list for a customer who is not a member of this secure area.

    Your understanding of the work of the BC is correct.  Only the details page will respect your setting of the safe zone.

    To achieve that you need, the page that contains the list of issues should be fixed in the appropriate box, and you should always output by category, Setup may list a category to each of your secure mirrored areas.

    An extension to that would allow you to have a single output page would be to ajax in the output of list view and draw on the specific page based on the secure area of users.  You can get the names of the users secure areas using a builtin BC {module_subscriptions} tag

  • error of Server.app DNS-Service reading settings

    Hello!

    Under MacOs X with more than 5.2 10.11.6 I realize a problem when I try to click on the DNS service. I get a message like

    "error reading settings...". »

    The DNS service seems to work but I get none of my poster DNS configurations...

    A server restart does not solve the problem.

    No idea what I can do?

    Thank you

    Peter.

    P.S.: "sudo serveradmin settings dns" gives no answer

    The first line of my first assignment should be:

    Under MacOs X with server 5.2 10.11.6 I realized a problem when I try to click on the DNS service.

    Sorry!

  • Can not connect to server.app 5.1.5

    It is the most recent version on the latest version of El Capitan 10.11.5. I noticed that I was no longer able to connect to my Web site and opens.app to see if Apache is running. Unfortunately, I'm unable to connect. I have the "no move", as if my password is incorrect. I searched this problem and the answers were available for older versions. Unfortunately, change system-show/hide accounts and the command 'sudo launchctl load-w /System/Library/LaunchDaemons/com.apple.servermgrd.plist' did not set. Any other ideas? Thank you.

    Open a session?

  • Server.app 5.0.15 in areas of mail multi

    Hi all

    We must implement a configuration with several e-mail accounts to a single network (open directory) account but with boxes associated with letters completely separated. In detail, we need a configuration like this:

    For example.

    [email protected] -> a.randy network account

    [email protected] -> alex.randy (aka a.randy network account)

    Scenario:

    When someone writes for [email protected], the [email protected] must be NOT too that mail.

    For the moment, we are able to create the alias, but all emails are shared between email accounts.

    Kind regards

    Puzzle defence team.

    You must create 2 users in.app. You can't do this with a single user account. How do I know which mailbox to open a session with a combination of username/password particular name in your email client?

    Then, assuming you have set up the areas in.app, double-click each user and delete addresses for the fields you do not want the user to be part of.

  • Cannot get rid of the Logitech Media Server app

    Hi, I installed Logitech Media Server on my rn104, but I don't need. I tried to remove it from the web INTERFACE, but it is still visible to the computers on my network and always accessible on port 9000. When I reboot the NAS, he reappears in pre-installed applications. Any ideas how I can kill this annoying thing?

    I sent you a PM.

  • Failed to connect to the DB Server App-ORA-1017

    Oracle Enterprise Manager 10g Application Server Control 10.1.2.0.2
    DB server1 - Has two DB instances SID=X, SID=Y
    DB server2 - Has two DB instances SID=Y, SID=Z
    The application server file Tnsnames.ora had entered for X and Y.
    Y =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST =DB server1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = Y.WORLD)
        )
      )
    After installation of the Y, Z in tnsnames.ora to server2 (without moving there DB DB server1) DB to modify as follows
    Y =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST =DB server1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = Y.WORLD)
        )
      )
    TO
    Y =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST =DB server2)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = Y.WORLD)
        )
      )
    Now applications Forms deployed to the application server, we can connect to Z, but we can not connect to Y. We can connect to DB via SQL * Plus application server.

    Need friendly suggestions.

    Best regards
    Franck

    Hi Frank,.

    Check this setting

    SQL> SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    sec_case_sensitive_logon             boolean     TRUE
    

    If the value is True set it False.

    SQL> ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
    
    System altered.
    

    Try this hope it works.

    Concerning
    Santosh mandin

    Published by: SanOra13 on March 15, 2012 23:59

  • Consistency API solves all the problems of coherence Client/Server App.

    While working on consistency client/server applications, I hope that only the consistency API would be enough for the part coding mainly for the management of the caches.
    It is necessary to adopt some other APIs such as 'Spring AOP + Annontation' for the management of caches through webservices, pls?

    Edited by: online247 July 19, 2011 15:02

    Re: "I hope that only consistency API would be sufficient for the part coding mainly for the management of the caches.

    Yes.

    But hiding a lot more than simple 'management' (i.e. start then get / put.) You may want to use a larger section of the API to make "in place" data processing where he resides in fact (i.e. on the server side) using input processors, etc. etc. Same read/write of data from external sources, that is the basics. Good reading to the top of the dev Guide. What coherence do (some of them not even you force to actually encode anything via the API.)

    Re: "is it necessary to adopt some other APIs such as 'Spring AOP + Annontation' for the management of caches through webservices, pls?

    Well, only not for the 'management' of the caches. You tend to do more monitoring and management via JMX.

    But for 'access' caches...

    If you want a 'web services' interface on your registry caches, it's your call, how to go about it. I had good results with Apache CXF in the past, using the standard Java Web Service Annotations to the drive. The use of the spring and Spring AOP is yours. Consistency do respect, it's just a choice that you make about how you want to achieve the specific requirements of your project.

    See you soon,.

    Steve

Maybe you are looking for

  • Excel 2013 ActiveX object not available

    I try to open an Excel ActiveX reference but can't. I'm using LabVIEW, 2012 and 2013 Excel. I placed an open VI of automation on the block diagram and created the refnum of entry control. When I click on select class ActiveX control (see below), the

  • Change of PFI terminal while the task is accounting

    Hello I have the following code which outputs two pules on some PFI lines. For example ctr0 on PFI1 and on PFI2 ctr1, now I want that when my task runs after a minute, the ctr0 should offset PFI3 and ctr1 in PFI4. Additional after one minute ctr0 PFI

  • I get an error code 80070013

    Unable to get windows update to install the important updates. get the error code 80070013 when you try the automatic and install it manually. It keeps failing one episode a week.

  • The delegation of rights sharing in Windows 2008 / R2?

    I want to achieve this in a 2008 R2 member server but do not have to do so via local administrators or power users groups.That's why I'm looking for in the same way as in XP/2003 where you can do with TweakUiPowertoySetup.exe. Any thoughts? See you s

  • error code 39 drivers damaged or missing

    I have an older zv5000 HP Pavillion with the 224th CD Teac DW - a/DVD RW disk in it.  After doing a full format of the system and restore by using the original cd system has worked well for about a week.  Then I tried to get the drive to install soft