Find character of table in indesign using applescript

Hi ,
I have one story and it contains 5 tables.
I need index of character  for table 4 in story 1. Please help me.
my code is shown in below. this is right or not please check .
tell application "Adobe InDesign CS6"
    tell active document
        set indx to index of character 1 of table 4 of story 1
    end tell
end tell
if any wrong in my coding please tell me.

Script labels can't be disabled, so I'm not sure what your problem is -- perhaps seeing some code could help. Could it be that you're referencing a page item by label, but it is not responding because the item is part of a group?
Shane Stanley <[email protected]>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

Similar Messages

  • How to set xml tag to nothing in indesign using applescript?

    Hi guys,
    I need set xml tag to nothing(for tables)  in indesign using applescript.
    Please help me.

    Hi,
    tell application "Adobe InDesign CC 2014"
        tell active document
            if (count of story) > 0 then
                tell story 1
                    if (count of tables) > 0 then
                        tell table 1
                            set tag_name to associated XML element ----------------> i can't get xml  tag, i am receiving the  xml tag is nothing.
                            if (tag_name = nothing) then
                                display dialog ("This table has no tag")
                            else
                                set markup_tag to markup tag of tag_name
                                set n to name of markup_tag
                                display dialog ("Tag name is " & n)
                            end if
                        end tell
                    end if
                end tell
            end if
        end tell
    end tell
    I can't get xml tag for table,  i am received nothing

  • Can I find the current tab in Terminal using applescript?

    Running a script from the shell by prepending
    #! /usr/bin/osascript
    as part of my .profile, can I find the "current" tab using Applescript. Most of the time, the "current" tab will not be visible, as the shell is being initialised, or re-initialised.
    I want to set the dircolors for my shell by determining the background color of the tab in which the shell is executing.

    Under the Window menu you can activate any of the palettes that you want. In your case the Field tab is under the Object palette

  • How to enable the script label of a text frames in indesign using applescript

    hi all,
    am using Indesign CS2 with applescript..
    Using script I have to open a template in indesign and flow the word document into it...
    I can able to flow the word document into the template using "Place" command..but script labels of the text frames gets disabled...
    I need the script labels to be enabled...
    can anybody help me
    thanks in advance

    Script labels can't be disabled, so I'm not sure what your problem is -- perhaps seeing some code could help. Could it be that you're referencing a page item by label, but it is not responding because the item is part of a group?
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • How to ungroup the particular table in Indesign using javascript?

    Hi,
    I have written a script for removing dotted lines at the end of text,which has presented inside the table.but this script is not working for the table that has grouped in InDesign.First I want to ungroup the particular table and remove dotted lines,then i need to group that table again.please help me if anyone has idea regarding this.
    Thanks in advance!
    Vimala L

    @Vimala Lakshmanan – to access tables inside text frames of grouped objects, you need not to ungroup.
    You could use the Group objects and iterate through all page items of the group, single out the text frames and access their Texts object and their Tables object within.
    By starting with a Group object (in the following snippet the group is selected):
    var myGroup = app.selection[0];
    var allPageItemsOfGroup = myGroup.allPageItems;
    for(var n=0;n<allPageItemsOfGroup.length;n++){
        var myObject = allPageItemsOfGroup[n].getElements()[0];
        if(myObject.constructor.name === "TextFrame" && myObject.texts[0].tables.length > 0){
            var myTables = myObject.texts[0].tables;
            for(var t=0;t<myTables.length;t++){
                //Do your stuff here:
                //Just an example line, that fills all cells in a table to "Yellow"
                myTables[t].cells.everyItem().fillColor = "Yellow";
    This snippet also considers nested groups, anchored text frames and nested text frames.
    It does not consider objects in not active states of MultiStateObjects.
    Uwe

  • How do I find all the tables that are used by an application component?

    .

    Hi ,
                Goto SE93, then pull down the Transactioncode field then select  SAPApplications. Then you will get all the T-codes application wise. Then try to analyze the tables used by the T-codes.
    Regards,
    Hari.
    Edited by: Hariprasad K on Mar 31, 2008 6:40 PM

  • Move Pages in Indesign using Applescript

    How to set page ranges for "move pages" command in apple script.

    Fromthe pages panel flyout menu make sure Allow Document Pages to Shuffle is checked, and also Allow Selected Spreads to Shuffle for any spreads that show the numbers in brackets if you want them to be able to rearrange as well (in this case you have two pages numbered 2, and that's a problem since by default ID wants to arrange even numbered pages tothe left of the spine and odds to the right).

  • What are the tables to be used for these reports

    hello everybody,
             i am a new user. it is only recently that i have started learning ABAP. i was given a rask by my faculty to develop the following reports. can anyone help me find out the tables that are used for them.
    1.  Report for Sales Orders due for delivery.
    2.  Revenue Reports based on Order Types.
    3.  Report for list of Pending Purchase Orders, Cancel Purchase orders.

    Hi,
    This depends on which fields you are supposed to show in output.Ask the person about layout requirement. How they want output of the report and which fields.
    Normally Functional person will give table name also.
    Here are few tables which can be useful in your requirement.
    Sales Header table : VBAK
    Sales Item table : VBAP
    Delivery Header : LIKP
    Delivery Item : LIPS
    Purchase order header : EKKO
    Purchase order item : EKPO
    Better to concern this with u r requester and u ll get definite answer.
    *MARK if this helps

  • Find character styles

    Hi,
    How to find character styles through javascript

    finding text using character style means the below code will do that...
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.appliedCharacterStyle = "char_style";//character style name
    found = app.activeDocument.findGrep (true);
    for (i = 0; i < found.length; i++){
        found[i].select();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Vandy

  • How to find data base tables

    hi,
    can u guys help me how to find which database tables have been used, for the infocubes and info objects............only in bw side

    Hi Preethi,
    Please find some tables regarding Objects in BW side..
    Go to Se11 and give the table name..
    RSDCUBEIOBJ Objects per InfoCube (where-used list)
    RSDODSOATRNAV InfoObject in ODS (navigational attributes)
    RSDODSOIOBJ InfoObject in ODS
    RSDIOBJT InfoObject texts
    RSDIOBJ Directory of all InfoObjects
    RSDKYF Key figures
    RSDBCHATR Master data attributes
    RSBBSQUERYDIR BW: Directory of the Query Sender
    RSBBSQUERY BW: Query Receiver
    RSBBSQUERYT BW: Texts for Query Receiver
    ROMSDIOBJ BIW: Assignment of master data attributes to InfoObjects
    RODCHA BIW: InfoObjects / characteristics
    RODIOBJCMP BIW: InfoObjects / compounding
    RODKYF BIW: Key figures
    ROAPPLT BIW: Name of the application components
    RSUICDONE BIW: Selection table for user-selection update ICs
    RODTIM BIW: Time characteristics
    RODUNI BIW: Units
    RSIST InfoSource texts
    RSIS InfoSource (transaction data)
    RSISOSMAP Mapping Between InfoSources and OLTP Sources
    RSOSFIELDMAP Mapping Between OLTP Source Fields and InfoObjects
    RSUPDDAT Update rules key figures
    RSUPDKEY Update rule: Key per key figure
    RSUPDROUT Update rules - ABAP routine - check table
    RSRWBINDEXT Titles of binary objects (Excel workbooks) in InfoCatalog
    RSRWORKBOOK 'Where-used list' for reports in workbooks
    RSDDIME Dimensions directory
    RSDDIMEIOBJ InfoObjects per dimension (where-used list)
    RSDDIMET Dimension Texts
    RSZCOMPDIR Directory of reporting components
    RSZELTATTR Attribute selection per dimension element
    RSZELTDIR Directory of the reporting component elements
    RSZELTTXT Texts of reporting component elements
    RSZELTXREF Directory of query element references
    RSZGLOBV Global Variables in Reporting
    RSDCUBET Texts for the InfoCubes
    Hint : If you want find more jus go to se11 --> put  RS* and click the button you can see all.
    assign points if this helps..
    Thanks,
    Sudhakar.

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages. 
    If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of bold, italics, and underline), "character fill color (clicking on the multi-color circle, not the dropdown menu), and then choosing a color that comes up in the "colors" dialogue box.
    I've looked all over and cannot find how to use applescript to set the character fill color in pages. 
    In some examples (not directly related) I see "character fill" used. 
    In others, I see "colorfill." 
    Basically, I want to use applescript, embedded in a keyboard maestro macro, to change the background color of the text (not the text color itself) to particular colors. 
    Given the changes and updates to Pages this year, and to applescript, what's the easy way to do this?
    Thanks!
    Chuck

    Pages v5.2 still does not include selection-object, or character background color entries in its AppleScript dictionary, as does Pages ’09. Indirectly, using System Events, you can get the text selection in Pages v5.2, but then you can do nothing to change the selection. No assurances as to if or when Apple will mature the AppleScript dictionary support for Pages v5 series.

  • Setting options in "Printer" section using Applescript InDesign CS

    How can i set define supplementary options found in the "Printer" section of the InDesign dialog box in a print preset using Applescript?
    I would like my script to set duplex option with the proper binding, according to the page orientation.
    When creating print presets manually, these extra options are stored in the print preset, but I can't find how to access them thru Applescript.
    Thanks,
    Peter

    Shane,
    Thanks for your reply, but it is not yet clear to me.
    I know you can set some print properties in the Apple Print event, such as copies, collating, target printer ...but how can I adress the printer-specific options, such as duplex printing? Could you give me a sample line of code?
    And next step, how can I include this "Apple -print" setting in an InDesign Print preset using Applescript? I suppose I have to set the apple printer prefs before creating the InDesign preset. Right?
    Thanks in advance,
    Peter

  • Using Applescript to Copy a Table Across Sheets

    Hi,
    I am learning to use Applescript and I am not sure how to do the following:
    Copy a cell value from one table in one sheet to another table in another sheet.
    I tried the following:
    tell sheet “B”
    set value of cell 1 of row 1 of table “X” to (value of cell 1 of row 1 of table “X” of sheet “A”)
    end tell
    But that does not work.

    I forgot to write that you must ALWAYS coerce values to strings.
    set value of cell 1 of row 1 of table “X” of sheet “B” to (value of cell 1 of row 1 of table “X” of sheet “A”) as text
    or
    set a_val to value of cell 1 of row 1 of table “X” of sheet “A”
    if class of a_val is date then set a_val to a_val - (time to GMT)
    set value of cell 1 of row 1 of table “X” of sheet “B” to a_val as text
    or
    tell sheet "A" to tell table "X"
    set a_val to value of cell 1 of row 1
    end tell
    tell sheet "B" to tell table "X"
    if class of a_val is date then set a_val to a_val - (time to GMT)
    set value of cell 1 of row 1 to a_val as text
    end tell
    It's necessary for :
    (1) decimal numbers because an Applescript's decimal number use always the period character as decimal separator. Coercing to string replace this standard character by the localized one which is the comma in several countries.
    (2) Numbers doesn't know the object date_time of Ap^pleScript. This is why you got the error : "Numbers got an error: AppleEvent handler failed.”
    Coercing the date to string (or text which is exactly the same task), you send to Numbers a known structure. As you saw, in the 2nd and 3rd pieces of code, I substract the value (time to GMT) when a value is a date_time one. It's required to take care of the Numbers internal behavior.
    Yvan KOENIG (VALLAURIS, France) mercredi 30 mars 2011 20:29:40

  • How to find out that particular structure is used in which tables

    Hello Friends,
    Most of the times through techinal information we come to know the table name for a particular field.And in se16 when i give that table name than system says its structure and not the table.So in se11 when i give that structure name in database table field, its shows all the field in that structure, but not the data stored in that field.
    So my question is how to find out that particular structure is used in which tables,so that i can view data stored in that structure?
    Thanking you guys in advance.
    Regards,
    Jitendra

    Dear,
    When you click on the technical information it will give the structure name and field, double click on the structure and it will take you the display structure screen, there you will have the where-used List icon (Ctrl + Shift + F3) at the top , click on that and it will show the options, select Database tables and execute, it will give the tables related to the structure, you can explore the list of tables and find where your required field is stored in them.
    Thanks & Regards,
    Vijaya Bhaskar A

  • How to find out the tables that will be affected using a transaction

    Hi,
    How to find out the list of database tables that will be affected when we use a standard transaction(ex. VA01, MM01..)...?(like When we create a salesorder, which tables and which fields will be affected..?)
    Is there any transaction or a simple way to find out the solution?
    Thanks,
    Pradeep.

    Hi,
    Give transaction code and in menu(system- status),  double click onthe Program name.
    Check in TOP INCLUDE - you will find all the tables related to that transaction.
    Thanks,
    Anitha

Maybe you are looking for

  • System error in program SAPLRRI2 and form FEMS_IN_FORMULA_GET-01 Message

    Hi Gurus, I am getting error 'system error in program SAPLRRI2 and form FEMS_IN_FORMULA_GET-01' while checking and executing a query. The scenario is : - The query is using Replacement path formula variables and when I do remove these the error disap

  • Dataloading Shortdump

    hai Im trying to load the data from ODS to InfoCube . But im getting the shortdump like below <b>Short dump in the Warehouse Diagnosis The data update was not completed. A short dump has probably been logged in BW providing information about the erro

  • Google TV and adobe air

    Hi to all I am developing adobe air applications in my company and one of our aims is to be able to run an adobe air application in Google TV. We already have a Google TV device (logitect revue) but we are unable to install adobe air or and adobe air

  • Still jpg photos are blurry in Adobe Premiere Pro CS4

    Hi everyone, Please help!  I am somewhat new to Adobe Premiere Pro and have been pretty much self-taught.  I recently put together a wedding video for a friend and added in some still images.  For the life of me, I cannot figure out why when I export

  • Upgrading storage on retina 13"

    I'm considering purchasing the MacBook Pro Retina 13" and find that on the Apple website, the base model (and the next one up) do not seem to allow me to configure them with a larger hard drive. However, the specs page indicates that they CAN be upgr