Place graphic in InDesign document via Excel sheet

Hi,
I'm new to scripting in InDesign, but need to work on my skills;)
In school, I already gathered some basic skills in JavaScript, therefore JavaScript is my choice to write a script for InDesign. Even though the environment is Mac OS X and InDesign CS3, AppleScript might be easier to code in?
Here is the problem:
An Excel sheet contains a list of names of .eps files generated from SAP. My goal is to create a script that loads the .eps files in this sheet from the location they're saved into the InDesign document and place them in the designated frames.
My first question: Is this even possible?
Currently I'm testing and reading some manuals and refernces, but I would be happy for every tiny bit of hint or help or how to get started, so, thanks a lot for your help in advance!
Greets,
Alex

Thank you for your help!
After playing around some time, I figured out, it would be easier for me to do an XML Import using a XSLT file.
Unfortunately the XML file generated by Excel is very complex, so I have some issues to extract the needed content.
Has anybody experience in handling the Microsoft Excel XML?
Here is the XML:
<Row>
<Cell ss:StyleID="s23">
<Data ss:Type="String"/>
<NamedCell ss:Name="DATA1"/>
<NamedCell ss:Name="TESTKEYS"/>
<NamedCell ss:Name="TEST0"/>
</Cell>
<Cell ss:StyleID="s23">
<Data ss:Type="String">4</Data>
<NamedCell ss:Name="DATA2"/>
<NamedCell ss:Name="TESTKEYS"/>
<NamedCell ss:Name="TEST0"/>
</Cell>
<Cell ss:StyleID="s23">
<Data ss:Type="String">1</Data>
<NamedCell ss:Name="TESTKEYS"/>
<NamedCell ss:Name="DATA3"/>
<NamedCell ss:Name="TEST0"/>
</Cell>
<Cell ss:StyleID="s21">
<Data ss:Type="String">A63027A01BL</Data>
<NamedCell ss:Name="DATA4"/>
<NamedCell ss:Name="TEST0"/>
</Cell>
</Row>
And this is my XSLT, which just generates the complete content:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:err="http://www.w3.org/2005/xqt-errors" xmlns:zuf="http://www.beispiel.com/zuf/3.0" xmlns:pri="http://www.pmn.net/prn/PntI" xmlns:ws="urn:schemas-microsoft-com:office:spreadsheet" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
     <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
      <xsl:template match="Workbook/Worksheet/Table/Row/Cell[NamedCell[@ss:Name='DATA4']]">
          <Bild>
               <xsl:apply-templates select="Data">
               </xsl:apply-templates>
          </Bild>
     </xsl:template>
     <xsl:template match="Workbook/Worksheet/Table/Row/Cell/NamedCell[@ss:Name='DATA4']">
          <Bild>
               <xsl:value-of select="Workbook/Worksheet/Table/Row/Cell[NamedCell[@ss:Name='DATA4']]/text()">
               </xsl:value-of>
          </Bild>
     </xsl:template>
</xsl:stylesheet>

Similar Messages

  • How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    Or choose Window > Arrange > Tile
    And, you of course can copy/paste without tiling.

  • Uploading Data in DMS via excel sheets

    Please help me out in suggesting ways to uplaod data (Doc Type,Doc version,Doc Part,Characteristics.....etc) in DMS from excel sheet.
    I guess 'BAPI_DOCUMENT_CREATE2' might be useful in this. But dont know whethre this would work for the cases in which same file has got two versions in the excel sheet.
    Also help me with sample code for the above BAPI.
    Rewards assured.
    Thanx,
    Akhil

    hi,
    Refer this threads..
    Re: problem with BAPI_DOCUMENT_CREATE2
    Re: Bulk upload of documents (pdf) - DMS ?
    Cheers
    Alfred

  • Online Preview of inDesign document (via CC website)

    Hello.
    I'm using inDesign to build a document.
    This document uses mainly Typekit desktop fonts.
    When previewed in the CC online, the desired font (Crete) is not recognized as Typekit, hence rendered as a basic sans serif font.
    I verified on my CC-typekit account the fonts are synchronized.
    Is there something i miss ?
    (doing this from inDesign CC mac 9.2 on a mac OsX 10.7)
    (I can privately share the doc)

    Hi Franck,
    This is Ben from Typekit Support. I just wanted to let you know that this isn't an error you're seeing. Right now, the Creative Cloud web app doesn't preview with the synced fonts. However, this does sound like a good idea, though there might be some technical constraints due to the fact that it's in the browser.
    That being said, I've shared this with the team. Feel free to shoot us an email here: [email protected] if you have any further thoughts or questions.
    Cheers,
    Benjamin

  • Downloading a file to excel sheet

    To all forum people 
    While I download an internal table into an excel-sheet I would like to place a field name in the excel-sheet corresponding to each field in my internal table so how could this be done are there any function modules pertaining to this issue or is there any other method to do this.....
    murali

    Hi 
    The following is a sample code download to EXCEL file
    REPORT Sample
    NO STANDARD PAGE HEADING
    LINE-SIZE 180
           LINE-
            COUNT 90                                             0001-
            LINE-COUNT 65                                             "0001+
            MESSAGE-ID z1.
    TABLES: MARC.
    DATA : BEGIN OF i_marc OCCURS 0,
           matnr LIKE marc-matnr,            "Material
           werks LIKE marc-werks,            "Plant     
           mmsta LIKE marc-mmsta,            "MM/PP Status
           ekgrp LIKE marc-ekgrp,            "Purchasing Group
           dispo LIKE marc-dispo,            "MRP Controller
           plifz LIKE marc-plifz,            "PDT (Planned Dlv Time)
           webaz LIKE marc-webaz,            "GRT (Goods Receipt Time)
           fevor LIKE marc-fevor,            "Production Scheduler
           insmk LIKE marc-insmk,            "Post to Inspection Stock
           ladgr LIKE marc-ladgr,            "Loading Group
           kautb LIKE marc-kautb,            "Automatic PO     Allowed
           kordb LIKE marc-kordb,            "Source List
           prctr LIKE marc-prctr,            "Profit Center
           lgpro LIKE marc-lgpro,            "Issue Storage Location
           abcin LIKE marc-abcin,            "Cycle Count Phys Inventory Ind
           sernp LIKE marc-sernp,            "Serial Number Profile
           lgfsb LIKE marc-lgfsb,            "Stor Loc for External Procure
           END OF i_marc.
    STRUCTURES DECLARATION
    DATA: BEGIN OF wf_msg.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF wf_msg.
    DATA : BEGIN OF rec_marc,
           matnr(18),
           z_delim1(1),
           werks(4),
           z_delim2(1),
           mmsta(2),
           z_delim3(1),
           ekgrp(3),
           z_delim4(1),
           dispo(3),
           z_delim5(1),
           plifz(3),
           z_delim6(1),
           webaz(3),
           z_delim7(1),
           fevor(3),
           z_delim8(1),
           insmk(1),
           z_delim9(1),
           ladgr(4),
           z_delim10(1),
           kautb(1),
           z_delim11(1),
           kordb(1),
           z_delim12(1),
           prctr(10),
           z_delim13(1),
           lgpro(4),
           z_delim14(1),
           abcin(1),
           z_delim15(1),
           sernp(4),
           z_delim16(1),
           lgfsb(4),
           z_delim17(1),
           END OF rec_marc.
    VARIABLES DECLARATION
      DATA: w_lines   like sy-tabix,
            w_records like sy-tabix.
    ****DELIMETERS DECLARATION
      DATA: p_del  type c  value ',',        "delimeter
            p_del1 type c  value ';'.        "delimeter
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:
      s_matnr FOR marc-matnr,
      s_werks FOR marc-werks,
      s_mmsta FOR marc-mmsta,
      s_ekgrp FOR marc-ekgrp,
      s_dispo FOR marc-dispo,
      s_plifz FOR marc-plifz,
      s_webaz FOR marc-webaz,
      s_fevor FOR marc-fevor,
      s_insmk FOR marc-insmk,
      s_ladgr FOR marc-ladgr,
      s_kautb FOR marc-kautb,
      s_kordb FOR marc-kordb,
      s_prctr FOR marc-prctr,
      s_lgpro FOR marc-lgpro,
      s_abcin FOR marc-abcin,
      s_sernp FOR marc-sernp,
      s_lgfsb FOR marc-lgfsb.
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION SCREEN FOR DOWN LOAD OPTION
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
    PARAMETERS:
      r_list  radiobutton group a1,
    p_del   default ',',                  "delimeter
    DATA: p_filePC TYPE rlgrap-filename value 'C:\zmarc.xls',
          typ TYPE rlgrap-filetype value 'DAT',
          fname TYPE rlgrap-filename,
          ftype TYPE rlgrap-filetype,
          fsize TYPE i.
    SELECTION-SCREEN END OF BLOCK blk2.
    START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM get_data.
    END-OF-SELECTION
    END-OF-SELECTION.
    if r_list = 'X'.
        PERFORM output_list.
      elseif r_dldPC = 'X'.
        PERFORM download_file_PC.
      endif.
    *&      Form  get_data
          Get data from table MARC
    FORM get_data.
    CLEAR: i_marc. REFRESH: i_marc.
      SELECT matnr
             werks
             mmsta
             ekgrp
             dispo
             plifz
             webaz
             fevor
             insmk
             ladgr
             kautb
             kordb
             prctr
             lgpro
             abcin
             sernp
             lgfsb
        INTO TABLE i_marc
           FROM marc
             WHERE matnr IN s_matnr
             AND werks IN s_werks
             AND mmsta IN s_mmsta
             AND ekgrp IN s_ekgrp
             AND dispo IN s_dispo
             AND plifz IN s_plifz
             AND webaz IN s_webaz
             AND fevor IN s_fevor
             AND insmk IN s_insmk
             AND ladgr IN s_ladgr
             AND kautb IN s_kautb
             AND kordb IN s_kordb
             AND prctr IN s_prctr
             AND lgpro IN s_lgpro
             AND abcin IN s_abcin
             AND sernp IN s_sernp
             AND lgfsb IN s_lgfsb.
    ENDFORM.                    " get_data
    *&      Form  output_list
          Output List with Column Headings
    FORM output_list.
      CLEAR: w_lines.
      DESCRIBE TABLE i_marc LINES w_lines.
      if w_lines gt 0.
        ULINE.
        WRITE:/28  'MM/PP',
              38  'MRP',
              48  'Prod',
              58  'Purch',
              68  'Profit',
              80  'Planned',
              92  'GR',
              100 'Post to',
              114 'Auto',
              122 'Source',
              132 'Issue',
              140 'CC Phys',
              150 'Loading',
              160 'Serial No',
              172 'SLoc'.
        WRITE:/1  'Material',
              20  'Plant',
              28  'Status',
              38  'Ctrlr',
              48  'Sched',
              58  'Grp',
              68  'Ctr',
              80  'Dlv. Time',
              92  'Time',
              100 'Insp. Stock',
              114 'PO',
              122 'List',
              132 'SLoc',
              140 'Indicator',
              150 'Group',
              160 'Profile',
              172 'for EP'.
        ULINE.
        LOOP AT i_marc.
          WRITE:/   i_marc-matnr,
                20  i_marc-werks.
          set left scroll-boundary." Added to keep the left 2 columns fixed
                                   while viewing the list online
          WRITE:28  i_marc-mmsta,
                38  i_marc-dispo,
                48  i_marc-fevor,
                58  i_marc-ekgrp,
                68  i_marc-prctr,
                80  i_marc-plifz,
                92  i_marc-webaz,
                100 i_marc-insmk,
                114 i_marc-kautb,
                122 i_marc-kordb,
                132 i_marc-lgpro,
                140 i_marc-abcin,
                150 i_marc-ladgr,
                160 i_marc-sernp,
                172 i_marc-lgfsb.
        ENDLOOP.
        ULINE.
      endif.
    ENDFORM.                    " output_list
    *&      Form  download_file_PC
          Download file to Local directory on PC
    FORM download_file_PC.
    CLEAR: w_lines, w_records.
      DESCRIBE TABLE i_marc LINES w_lines.
      if w_lines gt 0.
    Download file
        PERFORM open_file using p_filePC.
        PERFORM output_file_PC.
        PERFORM close_file using p_filePC.
        PERFORM write_summary.
      endif.
    ENDFORM.                    " download_file_PC
    *&      Form  write_summary
    FORM write_summary.
      write : / '******************************************************'.
    write : / '****     PROGRAM IS ENDED SUCCESSFULLY           **'.0001-
      write : / '****   PROGRAM HAS ENDED SUCCESSFULLY         *****'."0001+
      write : / '******************************************************'.
      skip.
      write : /  'No. of recds written  :', 38 w_records.
      skip.
      if r_dldUx = 'X'.
        write : /  'Output file name : ' , p_fileUX.
      elseif r_dldPC = 'X'.
        write : /  'Output file name : ' , p_filePC.
      endif.
      skip.
      write : / '******************************************************'.
    ENDFORM.                    " write_summary
    *&      Form  open_file
          text
         -->P_P_FILEUX  text
    FORM open_file USING output_file.
      OPEN DATASET output_file FOR OUTPUT IN TEXT MODE.
      if sy-subrc <> 0.
    Send technical message
        CLEAR wf_msg.
        wf_msg-msgid  = 'ZB'.
        wf_msg-msgnr  = '003'.
        wf_msg-msgtyp = 'E'.
        wf_msg-msgv1  = output_file.
        CALL FUNCTION 'Z_ERROR'
             EXPORTING
                  msg    = wf_msg
                  pid    = sy-cprog
             EXCEPTIONS
                  others = 1.
      endif.
    ENDFORM.                    " open_file
    *&      Form  close_file
          Close File
    FORM close_file USING    output_file.
      close dataset output_file.
      if sy-subrc <> 0.
    Send technical message
        clear wf_msg.
        wf_msg-msgid  = 'Z3'.
        wf_msg-msgnr  = '003'.
        wf_msg-msgtyp = 'E'.
        wf_msg-msgv1  = output_file.
        call function 'Z_ERROR'
             EXPORTING
                  msg    = wf_msg
                  pid    = sy-cprog
             EXCEPTIONS
                  others = 1.
      endif.
    ENDFORM.                    " close_file
    *&      Form  output_file_PC
          Write Data to Local PC File
    FORM output_file_PC.
    DATA: BEGIN OF i_PCFile OCCURS 0,
              rec(2000) TYPE C,
          END OF i_PCFile.
      data: dload_record(1000).
      DATA: flength TYPE i.
    Transfer Header Line
      clear: dload_record.
      concatenate 'Material' 'Plant' 'MM/PP Status' 'Purch Grp.' 'MRP Ctrl.'
                  'Planned Dlv. Time' 'GR Time' 'Prod Sched'
                  'Post to Insp. Stock''Loading Group''Auto PO'
                  'Source List''Profit Ctr.' 'Issue SLoc''CC Phys Indicator'
                  'Serial No Profile' 'SLoc for EP'
                   into dload_record
                   separated by p_del.
      condense dload_record no-gaps.
      i_PCFile-rec = dload_record.
      append i_PCFile.
      clear i_PCFile.
    Transfer Data
      loop at i_marc.
        w_records = w_records + 1.
        clear: rec_marc, dload_record.
        move-corresponding i_marc to rec_marc.
        move p_del to:  rec_marc-z_delim1, rec_marc-z_delim2,
                        rec_marc-z_delim3, rec_marc-z_delim4,
                        rec_marc-z_delim5, rec_marc-z_delim6,
                        rec_marc-z_delim7, rec_marc-z_delim8,
                        rec_marc-z_delim9, rec_marc-z_delim10,
                        rec_marc-z_delim11,rec_marc-z_delim12,
                        rec_marc-z_delim13,rec_marc-z_delim14,
                        rec_marc-z_delim15,rec_marc-z_delim16,
                        rec_marc-z_delim17.
        move rec_marc to dload_record.
        condense dload_record no-gaps.
        i_PCFile-rec = dload_record.
        append i_PCFile.
        clear i_PCFile.
      endloop.
      IF p_filePC NE SPACE.
        CALL FUNCTION 'DOWNLOAD'
             EXPORTING
                  filename            = p_filePC
                  filetype            = typ
             IMPORTING
                  act_filename        = fname
                  act_filetype        = ftype
                  filesize            = fsize
             TABLES
                  data_tab            = i_PCFile
             EXCEPTIONS
                  invalid_filesize    = 1
                  invalid_table_width = 2.
        IF SY-SUBRC NE 0.
          WRITE 'File can not be opened'.
        ENDIF.
    Begin 0001+
      Set PC Filename to whatever is returned from the Function Module, to
      display later
        p_filePC = fname.
    End 0001+
      ELSE.
        WRITE:/ 'Please Enter File Name'.
      ENDIF.
    ENDFORM.                    " output_file_PC
    if it helps please reward points
    Regards
    Prabhakar

  • How to  send ALV output data into Excel sheet format via Mail to the user?

    Hi friends,
    I have a doubt ie,
    How to  send ALV output data into Excel sheet format via Mail to the user?
    regards
    Moosa

    Hi,
    Provide the output internal table to the objbin in the below FM
    Send Message
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                document_data              = i_docdata
                put_in_outbox              = c_x
           TABLES
                packing_list               = i_objpack
                object_header              = i_objhead
                contents_bin               = i_objbin
                contents_txt               = i_objtxt
                receivers                  = i_reclist
    and specify the document type
      i_objpack-doc_type   = 'XLS'.
    and try.
    Regards,
    Nandha

  • Create Indesign book from paths in an excel sheet

    Hello All
    I have started to learn some scripting, and want to know if it is possible to read information from Excel sheet? In this case it is paths to Ind files.
    Today we are working with several documents which we compile into a book, this to create custom-made manuals for our customers. The script I'm looking for or will try to create will use these paths from the excel sheet to compile an Indesign book.
    Any tips where I can find information about similar tasks.
    Please respond

    Thanks for your advices.
    So if I understood it right it is impossible for Java or VB through Indesign to access information located within sheets in an Excel document. That is too bad.
    We don't have the possibility to convert the .xls to for example .csv, becouse of .csv does not support more than one sheet. An SQL database could be a possible solution, but this shouldn’t either work?
    What I don’t really understand is why you can merge information from an excel sheet into an Indesign page, but not collect strings from an excel sheet when running a script.

  • How may i place a Numbers spreadsheet in an InDesign document?

    How may i place a Numbers spreadsheet in an InDesign document?
    It's possible?

    Hi.
    You can import a .xls file.
    First, go to Preferences > File handling > check "Create links ... spreadsheet files" in order to be able to update your table when modified in Excel.
    Note that you won't be able to get any formatting from Excel file, so you should create a custom table style, along with paragraph and character styles.
    While importing your Excel file, check "import options", select "Unformatted Table", and apply your table style.
    Of course, no dynamic math operation can be make within InDesign Table, you must do it in your source file, then resave it and update your link.
    If you properly used cells, paragraphs and characters styles, the formatting will be preserved when updating link to the spreadsheet.
    Don't forget your .xls file is now linked to your indesign file (just like a picture), so don't move or delete it without caution...

  • Automatically place images within multiple InDesign documents

    I work for a publishing company of agricultural trade magazines and work on few titles each month. We are trying to streamline our production procedures and previous company I worked for had a script they used to place images within text pages by searching for the file name, however there were some limitations with this script (it would only work within 1 InDesign document and only within 1 InDesign story at a time). The company I am with now breaks out each editorial story into separate InDesign files and we place image boxes when the display ads are going to go. For our purposes now, I am looking for a script that, once all of the image boxes were tagged with the image file names, could search between multiple InDesign documents in a folder and automatically place all the images for us. Is anything like this available or able to be created? If so, would it have the capacity to search between multiple InDesign documents and search the entire document for the image file names? Any help would be greatly appreciated!

    Hi Kasyan,
    They were tagged using a program called Pathways created by a computer programmer the company used at the time. The issues that I was working on were annual Buyers' Guides so they were mainly just listings and inline graphics. The kinds of issues I work on now are monthly issue with various stories and no inline graphics, but display advertisements. And each story is created and laid out in a separate InDesign document. So I would need a script that can search an entire group of documents for file names and/or image boxes instead of just in one story in one document for inline graphics. (sorry if this is confusing).
    I currently do not have a script to work from and am looking for something new that can be used to save use the time of placing every ad manually.
    Thanks for your help and feedback!
    Matt

  • How to open and read Excel Sheet from SharePoint 2013 Document Library using C# Visual Studio 2012

    Hi,
    To achieve these are the steps that I had followed :
    1. Add the document Library path into Central Admin -> Application Mgmt -> Manage Service App -> Excel Service App -> Trusted File Locations
    2. Add Documnet Library link to Trusted Connection Proivder
    3. Open Visual Studio as Run as Administrator
    4.Create an SharePoint 2013 Empty Project.
    5.Add Service Reference : http:\\<server>\_vti_bin/excelservice.asmx
    6.Service added successfully
    7.Create a class file and add the Service Reference namespace
    There is no such class as ExcelService to call. 
    Please let me know if somebody knows how to open the Excel file into C#(2012)  either using ExcelService or any other way to open. I tried old methods of Sharepoint 2010 server but it's not able to access classes.
    Requirement is :
    Need to read the excel sheet  from Document Library and transfer all data into DataTable.
    Please help asap. 

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the SharePoint 2013 development forum
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?forum=sharepointdevelopment
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • I want to place an image in my InDesign document that can work with an address like this (\Resources\Thumb) rather than this (C:\Users\JSmith\Desktop\InDesign thumbnail Test\001\Resources\Thumb) is this possible?

    I want to place an image in my InDesign document that can work with an address like this (\Resources\Thumb) rather than this (C:\Users\JSmith\Desktop\InDesign thumbnail Test\001\Resources\Thumb) is this possible? In a nutshell I want to point the link to an image in a directory that uses just part of the address.

    I know this is something you can do in Maya with linked files. I guess InDesign just isn't there yet.
    MW Design -  Yeah I think "Relative paths" is the right term! I want to create a Layout with an image in the center of the page - and then duplicate my folder structure with that file. With that, I want to replace the Linked image file with a diferent image file of the same name. In effect having multiple files of the same layout with different images.  I hope that made sense.  

  • How to place tif file through a script in an indesign document?

    how to place tif file through a script in an indesign document?

    Emanuele:
    it works if i just run a script....
    but since i have been using a gui to do some functions, this  place command is not able to place the output tif file back into the  document

  • Place multiple InDesign document pages (ImportedPages)

    Hello,
    I need a way to place multiple pages from an InDesign document in much the same way as the sample PlaceMulitpagePDF.jsx does but with InDesign documents rather than PDFs.
    The following is the critical line where the PDF page number to import is set:
    app.pdfPlacePreferences.pageNumber = myCounter;
    What is the equivalent command for setting the InDesign document page number when choosing a page to import?
    I have tried using:
    Application.ImportedPageAttribute.pageNumber
    but without result.
    TIA

    Why, thank you Mr. Schneider!
    I am embarassed to say that my problem was a couple of typos, (reading the Zanelli script made that obvious to me). The command should have been:
    app.importedPageAttributes.pageNumber
    Note the lowercase "i" on "imported" and the "s" after "Attribute."
    Your help is very much appreciated!

  • Start script automatically after place Word text in indesign document

    I need start a script, automatically, after plece Word text in indesign document...
    It's possible ???

    This is how I'd approach it - it captures a 'place' or 'paste' of a blob of text. It is not perfect - it will also 'fire' if you simply copy some text from one frame in the document to an empty frame, but I don't think that would be an issue in most cases.
    Create a page item on the pasteboard; use the Active Page Item Developer palette to set the List of Subjects to * (just an asterisk), and the Event Filter to subjectModified* ('subjectModified' with an asterisk appended). Set the attached ExtendScript to the script shown below.
    I've not tested this heavily - it's only a proof of concept...
    (function(theItem)
      const kKeyForSavedTextLength = "com.rorohiko.savedTextLength";
      do
        var theFrame = theItem.eventSource;
        if (! (theFrame instanceof TextFrame))
          // Not a text frame - bail out
          break;
        var previousTextLength =
          theFrame.getDataStore(
            kKeyForSavedTextLength);
        if (previousTextLength == null)
          previousTextLength = 0;
        if (previousTextLength > 0)
          // Already has text in it - bail out
          break;
        var curTextLength = theFrame.contents.length;
        theFrame.setDataStore(
          kKeyForSavedTextLength,
          curTextLength);
        if (curTextLength == 0)
          // No text in it - bail out
          break;
        alert("Pasted or placed a blob of text");
      while (false);
    (theItem));

  • Can't place MS Word 2007 Document in InDesign CS5 -- InDesign Crashes

    I'm working in Windows Vista, trying to place an MS Word document that has had the "track changes" feature turned on. InDesign starts to process the fonts, etc., and then it stops working. Is my problem the "track changes" feature? Is the Word file corrupted? Do I have a workaround?

    Anything is possible, but you'll get much better answers on the product specific forums for inDesign, so please ask your question again there.
    Mylenium

Maybe you are looking for

  • How do I save ico in Photoshop CC

    I have recently updated to Photoshop CC and can no longer save files to ico format. In CS6 I had a plugin from this website: http://www.telegraphics.com.au/sw/ but they don't have anything for CC listed yet. I tried to drag that plugin into the CC pl

  • Payment notification in SD

    Hello Experts, I am looking for a way to send payment notifications in SD, to be clear I need an email to be sent when a specific type of invoice gets paid. I want to send an email to specific email address (not the customers) is this possible using

  • Issue tabbing across page breaks in dynamic form

    Hi all, I have a strange problem that I'm having trouble getting to the bottom of, relating to my dynamic form. This form grows and shrinks depending on how the user fills it out.  I have a questionnaire section where certain questions are hidden or

  • OBY6 - need to expand a field

    Hi all, so I would need to expand a field in Additional Deatila of a Company Code. Old tax number was length 8 and new is length 11. Any pointers? Thank you and best regards!! D.

  • Enable exception handling in trigger

    Hello- I am fairly new to Oracle, and have written a simple audit trigger to insert old values into an audit table upon updates to an existing table. I am trying to incorporate some exception handling in case there are errors. Is there a way to 'enab