[AS] set Applescript variable to a value of a text variable

Hello.

I have a script that sets a text variable in the active document like this:

say application "Adobe InDesign CS6.

set myDoc for the active document

say myDoc

try

set myOrdrenummerTxt to do new variable text with thenameof properties {: 'lowRes_DPI'}

end try

try

set content of the variable of myOrdrenummerTxt options to '72'

end try

end say

end say

I need to write a new script that uses the variable text stored data.

How can I (with Applescript) store the new value in an Applescript variable?

I guess something like that, but it does not work:

say application "Adobe InDesign CS6.

set myDoc for the active document

say myDoc

the value lowRes_DPI to content of the variables options of 'LowRes_DPI '.

end say

end say

Hi David,

You forgot the variable text

say application "Adobe InDesign CS6.

set myDoc to the active document

myDoc say

the value lowRes_DPI to content of variable options of variable text "LowRes_DPI".

end say

end say

Concerning

Tags: InDesign

Similar Questions

  • Set by default to the value of another text field

    I imported a several page PDF in LiveCycle Designer.  I place a text field on each page of the PDF file.  I want the user can click in the text field on the first page and type its value.  Then I want to fill in any other fields of text on other pages.  How do I put the default value of the other fields to make this work?

    You can bind the fields in the object > tab link. Simply, name them all the same thing and change the global default binding.

  • Setting a variable that I can call it from any symbol value.

    Hey everybody!

    I'm working on a lively game of edge and I'm learning I'll you can tell

    The way I put it in place is that I have a container that contains different symbols depending on the button you clicked on. They symbols open up to a deep part of the game.

    However, I want to be able to define a variable on the stage that I can handle later when different symbols are open.

    What I have so far is my limited understaning of jquery, in the scene that I'm leaving by setting a variable

    var variable1 =     5,
        variable2
    =     10;

    Then in my symbol I want to be able to do something like this


    if(variable1 > variable2) {

    Then do something


    }
    else {

    Then do something else
    }

    }

    Variable1 = 10

    variable2 = 5

    However the problem I'm having is that when I put the value of the variable in time the name of the variable value and whole isn't rememembered in the symbols.

    So is there any code I could write in symbols that can call the variables defined in the scene in the symbols.

    I thank very you much for any help. It is greatly appreciated.

    Hi, I have solved literally just this problem for me! I was unable to include variables in the symbols to remember too. It will be familiar if you have access to the care of in a symbol, like this (this kind - of takes a step backward and takes you to the main stage of symbol):

    sym.getComposition () .getStage ().$("anElement").hide ();

    How I updated the score (shown on the stage) to in a symbol, it's to GET the variable from the scene:

    var score = sym.getComposition () .getStage () .getVariable ("score");

    score += 100;

    sym.getComposition () .getStage ().$("valueDisplay").html (score);

    sym.getComposition () .getStage () .setVariable ("score", notes);

    So for you I recommend you:

    var variable1 = sym.getComposition () .getStage () .getVariable ("variable1");

    var variable2 = sym.getComposition () .getStage () .getVariable ("variable");

    if(Variable1 > variable2) {this}

    Else {who}

    If you want to update the variables and store them on the scene, then you'd in the same way:

    Variable1 ++;

    sym.getComposition () .getStage () .setVariable ("variable1", variable1")

    I hope this helps, I am not 100% and it can be better explained as I learn I will myself!

    Ray

  • Forms 11 - setting a variable in formsweb.cfg can get its value

    Hello

    I need to read .pdf documents stored on a web server using WEB forms. SHOW_DOCUMENT();
    It is web server for dev environment and another for production.
    They do not have the same URL.
    So I need to set a variable in a configuration file in both environments.
    Unfortunately it seems that forms such as getenv functions do not provide much information.
    Right now I use something else, I get the name of the database of database v$, but the DBA is not enthusiastic about the subject to give read permissions to users in production.

    Thanks a lot for your help.

    Hello

    The value of the variable in the /forms/server/default.env file

     ...
     my_var=...
    ...
    

    Then, get the value at run time with the Tool_env.getvar () procedure.

    declare
      v varchar2(512);
    begin
      tool_env.getvar('my_var', v);
    end;
    

    François

  • [ADF, JDev12.1.3] How to set a variable to bind a VO (where clause) in a managed bean?

    Hallo,

    I have a request based on VO.

    The query contains a where clause clause and a bindi variable.

    In a managed bean I would like to access the iterator of VO setting the value of the bind variable and read the result.

    I found this code it is good start, but I do not know how to set the variable binding.

    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    DCIteratorBinding iter = (DCIteratorBinding ) bindings.get("MyVO1Iterator");
    iter.execute();
    
    
    

    You kindly help me?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Sorry if these questions may seem artificial, but I am a beginner, I have many doubts and so I would be happy to receive some tips regarding best practices.

    Thank you

    Federico

    You can use:

    iter.getViewObject().setNamedWhereClauseParam("yourBindVar", value);
    

    Note that this approach is used if you have bind variable in the where clause.

    To set variables bind to ViewCriteria, you must use VarableValueManager.

    This post may be useful for you: binary: how to set the Bind variable values at run time?

    Also, I would like to know if it is generally advisable to use VO directly in controlled beans or whether it would be best to create in the AppModuleImpl methods that do this and return the result.

    You must set "use VO directly.

    For example, from the point of architecture, is probably best to use the method in the model project which will set the bind variable and execute the query.

    Or you can use the ExecuteWithParams operation in your the view layer.

    In my case for example of the VO will return max 1 plug so I'm in doubt, if the creation of a method in the AM that returns a custom class, which attributes contain values of the line of VO.

    Not to complicate your life

    All VO lines are represented as ViewRowImpl class if you already have "custom class".

    Finally, you can generate your own ViewRowImpl class if it is necessary for this.

    Dario

  • Use the button to set a variable

    Hi, can someone help me.

    I would use a couple of buttons I made to set a variable. I would use the name of the instance of the keys as the value stored in the variable. How can I code this?

    Thank you.

    You can use the currentTarget of the event to target the button and acquire its name...

    var btnName:String;

    btn.addEventListener (MouseEvent.CLICK, storeName);

    function storeName(evt:MouseEvent):void {}
    btnName = evt.currentTarget.name;

    trace (btnName); will trace "btn".
    }

  • Set the Variables in a separate timeline of problems

    Hi all

    I'm having a problem strange setting variables in video clips of another (relative chronology). I run the following code from the clip relative to the target child clips it contains.

    setVars = function (clip, value) {}

    clip.val1 = value;

    clip.val2 = 0;

    clip.onEnterFrame = function() {}

    trace ("work function");

    trace ("value 1 =" + val1);

    trace ("value 2 =" + val2);

    };

    }

    I am trying to set variables in a movie clip targeted by the argument of 'clip' setVars service but they are drawn as undefined. However, works of fine function. I have also tried to manually set the variables in the clip and am still not able to change outside the setVars function.

    What I'm doing wrong here? Any help would be greatly appreciated.

    use:

    setVars = function (clip, value) {}

    clip.val1 = value;

    clip.val2 = 0;

    clip.onEnterFrame = function() {}

    trace ("work function");

    trace ("value 1 =" + this.val1);

    trace ("value 2 =" + this.val2);

    };

    }

  • How to set the variable when you click on text/image

    Hello

    I have the following parts of the code. What I'm trying to do is set a variable and then the new window will read this variable and show detail appropriate according to the value. I call the new window, no problem, but struggling to get all of the variable 'productidkey '...

    Image

    < td width = "202" rowspan = 2 align = "center" bgcolor = "#FFFFFF" >
    < a href = 'details.php' > < form method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < img src ="6198.JPG"width ="200"height = '133' alt ="in more detail"border = '1' >"
    < / form > < /a > < table >

    Text

    < td >
    < div align = "right" >
    < are method = "POST" action = "details.php' style =" margin-bottom: 0; ">
    < input type = "hidden" id = "productidkey" name = "productidkey" value = "6198' > < a href = 'details.php' > < span class ="TexteÉlément"> < b >... < /b >"
    </span > < / form > < / div > < table >

    It works:




  • Table row with loop for each group to set the variable.

    HI: There is probably a simple answer for this, but I don't the have not found...

    I have a single row table to move through a group to set a variable containing a sum running. I'm not display the amount in the table but when I saw the report, I see that the table is expanding (add lines) for each loop.

    The only line table has 3 columns.

    1st column
    <? for-each: AC_GROUP? >

    2nd column
    <? xdoxslt:set_variable ($_XDOCTX, 'xAmtVar', xdoxslt:get_variable($_XDOCTX,'xAmtVar') + CURRENT_AMOUNT)? >

    3rd column
    <? end foreach? >

    Can I use <? for each group? > or something else. My requirement is to set the value of the variable with the total running, but because the loop is adding lines for each value he travels (though not displayed), it's also affecting other areas of the presentation of the page.

    Hope it makes sense. Thanks in advance.

    You can do it many ways.

    No need to loop
    You can create a variable and specify the amount of the sum directly to that.

    
    

    or

    loop through, then add as you do.

    
    

    give any space or enter characters in a word between them, just put it in a single form field will be

    But as I said, I'd definitely go with the first option.

  • How to set a variable when loading a flash application

    Hey there all,
    I am very new to flex and flash programming.
    I have an app that I need to specify a certain variable for during the application of the first charge up.
    The .swf file must be able to start with a certain set of variables (as with a command line argument)
    Because I'll be incorporation in markers on google maps. They need to know where and what they are by variables that I spend when they are first initialized

    I hope this question makes sense,

    Shawn

    You can send the query string values and access it from your flex application. Below is the URL of the page that describes how to access the query string parameters in a Flex application
    http://livedocs.Adobe.com/Labs/Flex3/HTML/deep_linking_5.html#245869
    I hope this helps.

  • How to set the variable if condition-based

    I use a generator of BI Publisher model for word 10.1.3.4 and I need set variable based on if condition something like this:

    If Status = "open" set X = X + 1 other value Y = Y + 1


    Thanks in advance

    Dive together and read the variables in the IF.

    http://download.Oracle.com/docs/CD/E12844_01/doc/BIP.1013/e12187/T421739T481157.htm#4535390

  • SQL Loader: Is it possible to set a variable?

    Hello all,.

    I'm loading of data with SQL Loader and find that I can put specific fields of the particular values using 'CONSTANT '. That's great. However, I am load several files in the same format and would like to 'label' each load. This would be by setting a variable before each load and then this to help write the month of the load (e.g. '200901') in the "SOURCE_FILE" column in the destination table.

    I imagine that the syntax would look something like this...

    DOWNLOAD THE DATA

    strSource = '200809'
    INFILE 'source_data_200809.csv '.
    strSource = '200810'
    INFILE 'source_data_200810.csv '.
    strSource = '200811'
    INFILE 'source_data_200811.csv '.

    ADD

    IN THE TABLE DESTINATION_TABLE
    FIELDS TERMINATED BY '; '. SURROUNDED OF POSSIBLY "" "
    TRAILING NULLCOLS
    (Char CUSTNO,
    Barcode tank,
    NAME char,
    Char SOURCE_FILE: strSource)

    Then, for each load I refer to the strSource variable and write the month appropriate in a column/field in the table.

    I've been googling and trawling through the documentation, but I can't seem to find a way to do it. Is this possible? Or maybe there's another method/path/tip for that? Or maybe it's just a matter of syntax?

    Any ideas?

    Kind regards
    Alan Searle

    Hello

    What will be the size of the file...?
    Instead, you can fill the data column in the .csv if possible in the worst case
    apply the ' TO_DATE (: fichier_source, 'YYYYMMDD').

    -Pavan Kumar N

  • Setting a variable link

    Hello

    Is it possible to set a variable in BI a link such as http://127.0.0.1:9704/analytics/saw.dll?Dashboard & NQuser = Administrator & NQpassword = Administrator. In the example, user and pass is set and the user does not login, but can directly see the dashboard page. My question is, as NQUser and NQPassword, then I pass a parameter that sets the value of a variable after logon?


    Thank you

    Yes, it is possible. You can add max 6 parameters in the URL.

    It works like this:
    P0 = the number of filters
    P1 =, operator
    P2 = name of the column to filter on
    P3 = value to filter

    The second filter using p4, p5 and p6, third filter p7, p8 and p9 etc.

    See page 212 of the Oracle Business Intelligence Presentation Services Administration Guide for more information.

    Kind regards
    Stijn

  • Set a variable in an expression of post

    I have a test loop and if one or several tests fail, I want to set a variable 'fail', that I can use at the end of the loop to a sheet of summary data.

    In pseudocode, I want:

    If step.result.status == 'failure '.

    then failure = 1

    There is no further action so the? : operator does not seem appropriate, but I don't see any option IF. So should I write something like:

    (step.result.status is "Failed")? (locals.failure = 1): (locals.failure = locals.failure)

    ?

    Thank you

    JVH


  • Set EL as an outputText value expression

    Hello Experts!

    I use jDev 11.1.2.4.0

    I'm trying to define EL Expression as the value of an OutputText.

    I tried ot1.setValue (#{bindings.) Var.Value});

    I tested the EL Expression and it works perfectly, but not when I try to set it programmatically the OutputText value.

    Best regards!

    You don't set any value of output, so you cannot use setValue() method

    as it is an EL so you must use the setValueExpression() method

    Check -http://jdevadf.oracle.com/adf-richclient-demo/docs/apidocs/oracle/adf/view/rich/component/rich/output/RichOutputText.html

    Ashish

Maybe you are looking for

  • HP Officejet Pro 8600: Pro 8600 message printhead missing or not detected or...

    Message: Missing print head or undetected.   Following instructions, the same restarted several times... always the same message.  How difficult or replace a part?   Thank you JLVB39

  • Sidebar gadget problem

    My sidebar Gadget includes Stocks.  Recently, he was a black box with the message "Service unavailable."  Help.

  • Restrictions to the computer

    "This operation has been cancelled due to restrictions in effect on this computer. Contact your system administrator. » I'M SORRY I DON'T KNOW WHAT MEAN THIS MESSAGE, I DON'T KNOW HOW I CAN CANCEL IT. THANK YOU FOR YOUR HELP

  • Assign privileges on ASA with RADIUS

    Hello. I use ASA 5510 8.2, ACS 4.2 for windows and RADIUS for auth. I would attribute private user to logon level. Docs says that I must send Cisco VAS CVPN3000-privilege-level (id is 220), but I don't see this option in the configuration of the Inte

  • How to run dynamic Action when clicking on a link in a report

    APEX V4.2.3DB EA 11.2APEX listener V2.0.5.287.04.2713 blue-gray themeIE9.0.8112FF26.0I have classic report and I would like to launch a dynamic action (together a show has confirmed and the value of the alert, submit the page, then run a process) whe