execution of actions on a selection based on the object type

Hello.

I am trying to write an AppleScript that considers the current selection, then redefines the scaling of all lines of that selection to 100%, and then sets the absolute horizontal scale of the remaining elements of the selection to 100%.

My attempts so far are:

say application «Adobe InDesign CS3»

put Original_Selection to selection

put to each graphic line of Original_Selection Lines_Selection -this part is not working

put transform reference point of window layout 1 to anchor Center

Choose Lines_Selection

redefine the scaling to the selection {1.0 , 1.0}

Choose Original_Selection - but it must be ' Original_Selection less Lines_Selection ' somehow

put horizontal scale absolute at 100

end say

None of this really works as I expect, but I can't find out the required syntaxes. Anyone know where I am going wrong?

Thank you.

Try this:

say application «Adobe InDesign CS3»

the value transform reference point of window layout 1 of anchorage Center

redefine the scaling of (each point of selection which class is the line graph) to {1.0, 1.0}

the horizontal scale absolute value of (each element of selection whose class is not graphic line) to 100

end say

--

Shane Stanley [email protected]>

AppleScript Pro, April 2010, Florida http://www.applescriptpro.com>

Tags: InDesign

Similar Questions

  • dynamic action turns an article based on the result, and checks the database!

    I use Apex 4.1

    I do not know how to accomplish the following:
    If a pick list is changed, a function is checked and based on the results of a another field is disabled or enabled.

    I created a dynamic action (change) that executes a PL/SQL code, now I need to disable the other element.

    the problem is that I can't save the dynamic action because of the sign #.

    example:
    Start
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ('$('#P35_FT_00010_DOC_NO').attr ("readonly", "true")');
    HTP.p ("< /script >");
    end;

    I tried document.getElementById, but an error occurs also when I try to save.

    I think the wrong way?... Help, please

    1. create a step forward (not the simple/standard one) dynamic action.
    2. create initially unconditionally (the wizard will not let you take the PL/SQL expression as a condition but we will go back and change it later)
    3 assume that TRUE from your PL/SQL will lead to disable the item, then choose 'Disable' and the item you want to disable.
    4. Once created, go back in the DA and change the status of PL/SQL expression and put your PL/SQL in there (suppose you have a function returns boolean called MY_FUNC and TRUE to him means disable).
    5 copy the DA in its entirety to a new DA will be FALSE to activate the element.
    6. Once copied, go into the new DA and change the status of PL/SQL to NOT (my_func).
    7 change the REAL action of the DA to activate the element.

    So now you should have two similar DAs... one for when MY_FUNC is true and disables the element, a when "NOT (my_func)" is true and allows the element.

    If you do not disable, you can run javascript instead to set readonly. It seems that this is kind of what you tried to do, but you seem to use a jQuery selector, I suppose that (I did not recognize your syntax to off the bat)?

    Try to use the javascript API instead Apex:

    if ($v('P35_EN_DIS_DOC') == 1 )
      $x('P35_FT_00010_DOC_NO').readOnly='true';
    else
      $x('P35_FT_00010_DOC_NO').readOnly='';
    
  • Automatic filling of multiple selection based on the selection list

    Hello

    I have a problem in filling multiple selection data in the selection list.
    I would like to take an example and explain.
    I have 3 tables: employee, Department and a link table for employee and department.
    The selection list contains employee and the Department is a multiple selection. Employee selection, all departments must be posted and belongs to the Ministry of which employee (which comes from the binding table) must be selected (high-lighted). How can I do this?

    HI 841762 :),.

    Do not use the 'style' to highlight that you would have found out by now that would make the blue text background while the font color remains black and this will make the text unreadable. Plus if there is a button on the page when you submit it to us, I doubt that it will store the State of the selected items in a multiple of P1_DEPT in session state. then try this...

    In the application process, replace, the status of 'style' that you used to highlight as you...

    ....
    If (rec.R=cnt)then
    htp.prn('');
    ELSE
      htp.prn('');
    end if;
    ...
    

    Then in the JS, use

    appendToSelect(list, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue,l_Opt_Xml.getAttribute('selected'));
    

    and change the function "appendToSelect".

    function appendToSelect(pSelect, pValue, pContent,pIsSelected) {
    
     var l_Opt = document.createElement("option");
     l_Opt.value = pValue;
    
    if(pIsSelected)
    l_Opt.setAttribute('selected','selected');
    
    if(document.all){
      pSelect.options.add(l_Opt);
      l_Opt.innerText = pContent;
     } else {
      l_Opt.appendChild(document.createTextNode(pContent));
      pSelect.appendChild(l_Opt);
     }
    }
    
  • ItemRenderer custom - decide if selectable based on the dataProvider

    Hello

    I want to have a list with unselectable items, except some that have a property like {selectable: true} in the item object.

    Thank you.

    This message may be useful: http://flexponential.com/2009/12/20/disable-selection-on-some-items-in-a-spark-list/

    Be sure to check the implementation of Tink in the comments.

  • Would it not be possible to make a selection based on the percentage instead of pixels? For example: 90% left, 5% of the upper part.

    Im having a little trouble getting a Photoshop Action to work the way I need to.

    Product photos are taken in different batches, and the only thing that is guaranteed, it must be transparent in the upper right. This means I need an action that makes a selection with the 'magic wand' tool and is independent to define an absolute selection through pixels (see images below).

    selection.PNG

    Photo: how it behaves

    selection2.png

    Photo: How I need to behave

    Anyone know how I can solve this problem without resizing the canvas to an exact size?

    Thank you in advance,

    Edvard

    Hi edvardkrupke

    Please try and change the rules per cent in Photoshop preferences.

    Check the screenshot below.once you change restart Photoshop to check

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • checkbox selection based on the name within a field

    I have a PDF form

    the form has 2 selections of checkboxes.  M or F (male or female)

    I can get a field to fill with M or F or man or woman, but how do I get a checkbox to select M or F based on

    What comes in a field?

    You can use the custom validation script of the--of the text field to change the check box, for example:

    If (event.value == "Male") this.getField("CheckBoxMale").checkThisBox (0, true);

    Else if (event.value == "Female") this.getField("CheckBoxFemale").checkThisBox (0, true);

  • XML E4X nodes select based on the attribute of the child node.

    Hey,.

    I'm making a selection on the following XML code.

    I want to retrieve the list of the variable node when its child nodes metadata attribute 'name' is not equal to "transitional". I have read the documentation, but have not been able to solve this problem, and it should be pretty simple. So far, I tried with something like.

    variable var: XMLList = classInfo.variable. (the metadata. (@name! = "transitoire")) ;

    variable var: XMLList = classInfo.variable. (metadata.@name! = "transitional");

    But he returns all the nodes variable.

    "< name =" type com.sca.dataModel::PresentationDataEntity"base =" com.sca.dataModel::BaseEntity "isDynamic ="false"isFinal ="false"isStatic ="false">
    < extendsClass type="com.sca.dataModel::BaseEntity"/ >
    < extendsClass type = 'Object' / >
    < variable name = "subtitle" type = "string" >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
    < arg key = "pos" value = "128" / >
    < / metadata >
    < / variable >
    < variable name = "id" type = "Number" >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
    < arg key = "pos" value = "153" / >
    < / metadata >
    < / variable >
    < variable name = "tableName" type = "String" >
    < name of metadata = "transitional" / >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
    < arg key = 'pos' value = '118' / >
    < / metadata >
    < / variable >
    < variable name = "db_SortAsc" type = "Boolean" >
    < name of metadata = "transitional" / >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
    < arg key = "pos" value = "281" / >
    < / metadata >
    < / variable >
    < variable name = "title" type = "String" >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
    < arg key = "pos" value = "100" / >
    < / metadata >
    < / variable >
    < method name = "setData" declaredBy = "com.sca.dataModel::BaseEntity" returnType ="*" > "
    < parameter index = '1' type = 'Object' optional = "false" / >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/ >
    < arg key = "pos" value = "330" / >
    < / metadata >
    < / method >
    < name of metadata = "__go_to_ctor_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
    < arg key = "pos" value = "167" / >
    < / metadata >
    < name of metadata = "__go_to_definition_help" >
    < arg key = 'file' value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/ >
    < arg key = "pos" value = "42" / >
    < / metadata >
    < / type >

    Try classInfo.variable. ([email protected] (.indexOf("transient')) is

    (- 1).

  • Can I set selection based on the 'selectedItem.label' instead of 'selectedIndex '?

    I searched the forums for this one but no luck. It's also a little difficult without being able to download a file, but this is:

    In a simplified version of my question, I have a ComboBox control named "cb". I can put its selectedIndex 1 (corresponding to 'Red' selectedItem.label) easily with:

    cb.selectedIndex = 1

    However, given that the 'Reds' are not necessarily at a selected index of 1, if it is asked another entry in the list, I'd rather base my code on selectedItem.label, because it will always be 'red '.

    How can I do this? I can at least draw corresponding to the label with the code as selection index:

    var frameSelect:Number = cb.selectedIndex;
    trace (frameSelect)

    Do I need some sort of loop function? Or y at - there a simpler way? I can define a variable at the beginning of my code to figure out what the corresponding selection of 'Red' date index here? I need essentially

    var frameSelect:Number is cb. [Index of everything goes with the label of 'Red']

    If it is useful for you, what I'm doing (on a scale of simplified) uses a drop-down list box to change the color of a clip. The user can click on 'Blue' or 'Yellow' or 'Red' in the box of comb and clip changes color. However, I also need a simple button that has only a single result ('Red') where the user clicks the button and thus sets the index selected in the combobox control directly to the 'red'. As I said, I can do it quite easily using the setting selectedIndex, but this means I have to manually update my button code whenever a new color option has been added. Not ideal remotely, because the actual implementation has hundreds of colors in tables and there will be many buttons create different arrangements of comboboxes.

    (For example a combobox is colors, one of the forms, and one is size. The final objective is to let the user experience as much as they want through drop-down menus, OR click on a 'Small green circle' button to go directly to a particular result.)

    Any help would be greatly appreciated!

    You need just a little loop on the elements in the dataProvider and check the labels against 'red '.

    Something like so should work for you:

    function getIndex(s:String) {}

    var ind:int = - 1;

    var dp:DataProvider = cb.dataProvider;
    for (var i: int = 0; i< dp.length;="">
    If (dp.getItemAt (i) .label == s) {}
    IND = i;
    break;
    }
    }

    return ind.

    }

    cb.selectedIndex = getIndex ("red");

  • Selection based on the date of no recovery no lines

    Hello

    Why this doesn't work (returns 0 records)

    < cfquery = name 'interrogate' Datasource = "#Application.Datasource #" >
    SELECT *.
    THE VOTING
    WHERE the arguments start_date > = #DateFormat (now (), "dd-mm-yyyy") # and end_date < = #DateFormat (now (), "dd-mm-yyyy") #.
    < / cfquery >

    There are two rows on the table. One with start_date 12/01/2006 and the date of 12/19/2006, the other with 12/20/2006 start_date and end_date of 31/12/2006. Any of these get selected, once the current DAT files are 31/12/2006.

    Thank you

    My lack of formal training is showing through... I jump into the deep end.

    I changed the statement for...

    WHERE the #DateFormat (now (), "dd-mm-yyyy") # BETWEEN start_date and end_date

    I read this as "where is today > = past date and today.<= future="" date".="" i="" want="" a="" date="" between="" the="" start="" and="" end.="" but="" that="" doesn't="" return="" any="">

    What shocks you on the date format? JMA is the Australian date format.

    I will start this topic.

    Thank you
    Tanya

  • cord cable fiber type selection based on different types of SFP connectors?

    need help with fiber patch cable cord type selection based on the different types of SFP connectors, y at - it links online or any documents that will be useful...

    The type of connector, usually (but not always) follows the form factor of the transceiver. For example, most SFP and SFP + transceiverss use dual LC.

    However, always check the Datasheet on the link I provided above to confirm if there is any doubt.

    Please indicate your question as answered if it was.

  • Selection list in the form of manual based on a previous article

    I have a manual tabular presentation with multi-column, a column (seller) is a selection list that should be based on a previous column (Type of supplier - internal/external). So if the user selects internal to the provider Type, selection of the provider column list must contain these sellers with type of Interior. Moreover, it also uses the APEX collections.

    Select

    apex_item. Hidden (1, C015) STATUS.

    apex_item. CheckBox (2, SEQ_ID,' title = "check to remove" "") CHECK box.

    case

    When (c001 is not null and c002 is not null) then

    "< a onclick =" return false; "href =" f? p ='|| : APP_ID | » : 20 :'|| : APP_SESSION |':NO:20:P20_ID, P20_REQ_ID, P20_SEQ_ID :'|| C001 | «, » || C002 | «, » || SEQ_ID. ' "" > < img alt = "" src="/i/ed-item.gif" > < / a > '

    end |

    apex_item. Hidden (4, C001) ID,.

    apex_item. Hidden (5, C002) JOB_QUOTE_ID,.

    apex_item.date_popup2 (6, C003, "MM/DD/YYYY", 11, 2000, "onChange =" f_set_end_date (this.id,'|) "") ROWNUM. ');"') ||

    apex_item.select_list_from_query (7, C004, 'select svcs_description d, svcs_code r from csrsr_service_codes order by 1 CAD', null, 'YES', null, "- Select -"). ' < BR / > '.

    apex_item.date_popup2 (8, C005, "MM/DD/YYYY", 11).

    apex_item. Text (9, C006, 8, 15,'style = "" text-align: right; ' ") ') || ' < BR / > '.

    apex_item.select_list (10, C007,';) S, external; E', null, 'YES', null, "- Select -").

    apex_item.select_list_from_query_xl (11, C008, 'select $vendor_name d, csrsr_vendors_v r vendor_number', null, 'YES', null, '- Select-'). ' < BR / > '.

    apex_item. Text (12, C009, 50, 100, "colspan = 2') COL12,.

    apex_item. Text (13, to_char (to_number (C010), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') AMT1,

    apex_item. Text (14, to_char (to_number (C011), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') AMT2,

    apex_item. Text (15, to_char (to_number (C012), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') AMT3,

    apex_item. Text (16, to_char (to_number (C013), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') AMT4,

    apex_item. Hidden (24, C001) |

    apex_item. Hidden (25, C002) |

    apex_item. Hidden (3, SEQ_ID) |

    apex_item. Text (17, to_char (to_number (C014), 'FML999G999G999G999G990D00'), 10,15,'style = "text - align:right;"') CHBK_AMT,

    'value' COLTYPE

    Of

    apex_collections

    where

    collection_name = "CSRSR_JOBCOSTS_C" and

    C015 in ("O", "U", ' only)

    Union of all the

    Select

    apex_item. Hidden (1, null) STATUS.

    apex_item. CheckBox (2, null,' title = "check to remove" "") CHECK box.

    apex_item. Hidden (24, null).

    apex_item. Hidden (4, null) ID,.

    apex_item. Hidden (25, null).

    apex_item. Hidden (5, null) JOB_QUOTE_ID,.

    apex_item.date_popup2 (6, null, ' MM/DD/YYYY", 11, 2000," onChange = "f_set_end_date (this.id,'|)" ") ROWNUM. ');"') ||

    apex_item.select_list_from_query (7, null, 'select svcs_description d, svcs_code r from csrsr_service_codes order by 1 CAD', null, 'YES', null, "- Select -"). ' < BR / > '.

    apex_item.date_popup2 (8, null, "MM/DD/YYYY", 11).

    apex_item. Text (9, null, 8, 15,'style = "" text-align: right; ' ") ') || ' < BR / > '.

    apex_item.select_list (10, null,';) S, external; E', null, 'YES', null, "- Select -").

    apex_item.select_list_from_query_xl (11, null, "select d, vendor_number csrsr_vendors_v r $vendor_name", null, 'YES', null, '- Select-'). ' < BR / > '.

    apex_item. Text (12, null, 50, 100, "colspan = 2') COL12,.

    apex_item. Text (13, null, 10, 15, "style =" text-align: right;) (' ') AMT1,.

    apex_item. Text (14, null, 10, 15, "style =" text-align: right;) (' ') AMT2,.

    apex_item. Text (15, null, 10, 15, "style =" text-align: right;) (' ') AMT3,.

    apex_item. Text (16, null, 10, 15, "style =" text-align: right;) (' ') AMT4;

    apex_item. Hidden (24, null).

    apex_item. Hidden (25, null).

    apex_item. Hidden (3, null).

    apex_item. Text (17, null, 10, 15, "style =" text-align: right;) (' ') CHBK_AMT;

    'value' COLTYPE

    Of

    Double

    How can I accomplish this?

    Request Express 4.1.2

    Oracle 10g Rel 2

    Robert

    Hello

    Then, you are probably looking for cascading select list in a table?

    http://dbswh.webhop.NET/HTMLDB/f?p=blog:read:0:article:2003800346210117

    Kind regards

    Jari

  • Command tab selected, based on navigation

    Hello

    I have a jsf (jspx) page with a navigation pane, which has three navigation elements. Now by clicking one of the navigation feature a different jsf page will appear in a new window. This page has three tabs. Now, I want to show a tab is selected, based on the navigation point clicked. I have a managed bean where I put the disclosed ownership of the retail show based on the clicked point navigation. But it is throwing null pointer exception.

    public void firstitemClicked() {}

    this.getTab1 () .setDisclosed (false); This line is an error

    this.getTab2 () .setDisclosed (true);

    this.getTab3 () .setDisclosed (false);

    }

    And this method is called the navigation item that is located on the first page.

    Mallaury,

    Make the Boolean type as "static".

    In your DemoBackingBean, do the "static" variable that we were missing before.


    Private static boolean first = false;

    Tip: I prefer to use "af:setActionListener" instead of writing code for such requirement

    Thank you

    SAIF

  • Dynamic action - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

    Demo:
    http://Apex.Oracle.com/pls/Apex/f?p=19543:2

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    
  • change the field type selection list of text based on the data in the other domain.

    Hello

    We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.

    Say, we have two fields

    Day:

    Products:

    If day = 'Monday' produced a drop in low field of another product would be a free text field.   Is this possible in APEX?

    This is the configuration I did.

    I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.

    However, when I click on submit, it throws an error:

    ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored


    Kind regards

    Satya

    You can have both share the same database column, the process of the APEX DML does not know how to consolidate.

    You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

Maybe you are looking for

  • Satellite A10 - boot priority must be changed

    Hello world I have an old Satellite A10 here, and I'm supposed to put a new operating system on it.Problem: He doesn't let me boot from the CD/DVD!In the BIOS (APCI BIOS version = 1.30), I can not change the boot priority, which is I can not put the

  • HP pavilion dv4: fast hard drive / full test 1 fault

    Hard drive test failed hard drive 1 quick (203) hard drive 1 complete (305)

  • Windows installation 7 of 15 t-j100

    I recently took a Touchsmart from HP Envy 15 t-j100 with Windows 8, and while I see many stories to success on installing Windows 7, I was unable to do it myself.  I have a drive that has managed several times, so I do not suspect the media, but when

  • Homegroup does not connect to internet

    original title: homegrouphelp me with the conncut enternet plese

  • Recover a file that I saved accidentally on

    I'm so frustrated.  I record a new file and was clicking on the folder to put it in.  When I arrived, I didn't that he has highlighted another file as name - so I clicked OK and now I've completely lost the old file.  I'm upset because the old file i