Script accepting large chunks of text from outside

I have a workflow where I create mask/shape outlines outside AE that will be imported into AE by changing the contents of a mask/shape layer. The workflow will be very frequent - the outside component is some kind of editor (developed by myself) - so the workflow has to be fast and unobtrusive: Making the user open some specific file manually, for example, is already too awkward.
Since AE doesn't provide scripting access to the clipboard, my next idea was to have a script present a text box ("EditText") and have him paste an encoded text representation of the outlines which the script then decodes. With the script having a shortcut, that might do that trick.
I was defeated by EditText's limitation of 30000 characters (even less characters are actually displayed, about 5000): Even when I zip-deflate the data and use a javascript zip library to re-inflate, that's not quite enough.
(To give an impression for the sizes: The outlines of the text
Text upon text is what the
wizard wrote, and more so
the more he drove himself
into his texting frenzy.
are almost 50k in size even if zipped. It will vary depending on the font and how exactly you represent the data, but I don't think I can get it much smaller.)
So what other options do I have?
Make my external editor provide the data differently, via local files or the network. (Possible, but scripts need "file and network access" then. I can live with that, but I'd rather not.)
Forget scripting and write an extension. (Maintenance annoyance, especially when I need to support both platforms Windows and Mac. At least I can access the clipboard then.)
Does somebody have more ideas?

Hi again,
I have tried to use only the LWRS_RECEIVE with a limit of 256 bytes, reading it into a buffer of 8192 on a COM callback call.
And also tried using only LWRS_RXFLAG (with the CR char '\r') and Zero in the Notify count field.
I even tried to copy all data from COM directly to a large memory buffer (to avoid slow access to files or screen), with no success.
In all cases the results were the same... I still get missing lines or portions of lines.
What am I doing wrong?
Has anyone ever saw a good terminal example written using CVI (event driven that can work with baud of 38400 and up).
I never seem to get the results of SW terminals such as Symantec ProComm or even Microsoft HyperTerminal.
Is the CVI layer built so high over the Windows API that the system cannot respond as fast?
            Gil

Similar Messages

  • HT1688 Is there an "easy" way to either 1) cut and paste a large block of text from the Messages app or 2) access this text through a computer?

    Is there an "easy" way to either 1) cut and paste a large block of text from the Messages app or 2) access this text through a computer?

    Tap and hold the text you want to copy, then tap Copy.

  • InDesign CC is bringing in style sheets from Word and other places that I copy type from, like email, Acrobat. In InDesign CS4, whenever I brought in text from outside it assumed the paragraph style applied to the waiting text box. The loss of this functi

    I used to be able to get text from a Word doc (copy it), and then go into my CS4 InDesign file and paste it into a waiting box that had a paragraph style assigned to it and boom, it would take on the assigned paragraph style of that text box. Now it brings in the style from wherever the text came from. If the font looks similar to what was there it can be too hard to tell that it's different. When you are working on a book with 200 pages and copying text from Word docs and dropping it in here and there in InDesign, it causes alot of extra work and problems.
    In fact I have lost alot of security functions I used to have in CS4 in CC2014 in InDesign, Photoshop, Illustrator and Acrobat and it is making me want to go back to CS4 in a hurry.

    I actually FINALLY found the answer!!!! In the preferences area you choose Clipboard Handling and then you choose "Text Only" under When Pasting Text and Tables from Other Applications (see photo).

  • 4EA3 - ISSUE: run-as-script exits silently, deleting all text from "Script Output"

    I have a short-to-medium sized script I've been developing in SQL Developer 4 EA (build MAIN-13.30).
    It was going pretty well, then just when I was ready to verify the whole thing start to finish, it started silently aborting, deleting output.
    This happened several times with the script.  Because output is deleted, I can't tell definitively when it failed.
    The log messages include pairs of messages matching the runs:
    SEVERE
    3088
    0
    oracle.dbtools.worksheet.commands.scriptrunner.task.executor.DefaultStatementExecutorTask
    java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:261)
    SEVERE
    3087
    10046
    oracle.dbtools.raptor.newscriptrunner.ScriptRunnerContext
    java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:261)
    I perform a bit of unconventional handling of DEFINE variables and WHENEVER SQLERROR, but these have been in the script during successful runs.
    Andrew Wolfe

    You haven't provide ANY information about what the script is even trying to do, what database you are working with or what 'output' you are talking about being deleted.
    I suggest that you perform more troubleshooting on your own to determine more about the issue that might be involved.
    Use the 'binary search' method: cut the script in half and run the first half. If that works add half of the second half of the script (now using 75% of the script) and run that. Maybe 'divide and conquor' will isolate the particular part that is failing.,
    If you are using Oracle then execute the script in sql*plus. If it works there but doesn't work in sql developer that provides more info.
    Run the script in the latest OFFICIAL version of sql developer. If that works then the problem may be related to the un-released version you are using.
    Not much anyone on the forums can do for you unless you post info about what it is you are even doing.
    Because output is deleted, I can't tell definitively when it failed
    Then you need to be more proactive and add steps to the script that display, print or log each step that is executed. Then it is easy to tell which steps completed and which step failed.

  • Move a block of text from one document to another

    How to make a script moving a block of text from a defined area to next document?

    Here is the beast.
    --[SCRIPT exportTextBlocks]
    Save the script as a Script, an Application or an Application Bundle: exportTextBlocks.xxx
    Move the newly created application into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    select something in the source document
    menu Scripts > Pages > exportTextBlocks
    creates a new Pages document with the chunks of texts which where delimited by the markers.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (Vallauris, FRANCE)
    26 avril 2009
    --=====
    Here it would be easy to edit it if required
    property marker : "______"
    on run
    my activateGUIscripting()
    tell application "Pages" to tell document 1
    set nDocSource to name
    set source to body text
    end tell -- Pages
    set source to my decoupe(source, marker)
    set extraits to {}
    repeat with i from 1 to ((count of source) - 1) by 2
    copy item (i + 1) of source to end of extraits
    end repeat
    copy "" to end of extraits
    set extraits to my recolle(extraits, marker & return)
    set destName to dateTimeStamp() & ".pages"
    set destDoc to my makeNewPagesDoc(destName, path to documents folder as text)
    tell application "Pages"
    set body text of document destName to extraits (* inserts the extracted blocks *)
    save document destName
    my selectIworkDoc(name, nDocSource) (* back to source document *)
    end tell -- Pages
    end run
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=====
    on dateTimeStamp()
    return (do shell script "date " & quote & "+P%Y%m%d-%H%M%S" & quote)
    end dateTimeStamp
    --=====
    on makeNewPagesDoc(n, d)
    local f, t
    set f to d & n
    set t to ((path to applications folder as text) & "iWork '09:Pages.app:Contents:Resources:Templates:Blank.template:") as alias
    tell application "Pages"
    open t
    save document 1 as n in file f
    end tell -- Pages
    return d as alias
    end makeNewPagesDoc
    --=====
    Use GUI scripting
    on selectIworkDoc(a, n)
    local m
    if a = "Pages" then
    set m to 9
    else if a = "Numbers" then
    set m to 10
    else if a = "Keynote" then
    set m to 11
    else
    error "The application “" & a & "“ is not accepted !"
    end if
    tell application a to activate
    tell application "System Events" to tell application process a to tell menu bar 1 to tell menu bar item m to tell menu 1 to click menu item n
    end selectIworkDoc
    --=====
    on activateGUIscripting()
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true (* to be sure than GUI scripting will be active *)
    end tell
    end activateGUIscripting
    --=====
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE dimanche 26 avril 2009 22:32:24)

  • Importing a large amount of text into InDesign (Newbie question!)

    Hello all,
    I am new to InDesign and would really appreciate some tips/advice on how best to transfer a large amount of text from Microsoft Word into an InDesign document. I have been tasked with creating a very simple pocket sized book, the content of which will be a series of business Acronyms (700+) and their defintions (just imagine a very simple dictionary). As you can imagine there is a lot of text in the Microsoft Word document so any advice on how to transfer it all as quickly as possible would be really helpful. Or, as the case may be, would it be simpler to just use another programme?
    Can you paste/import all - or large chunks of - a word document in one go? If I format a master page will Adobe InDesign automatically paste the text into the required number of pages? Or do i have to do it page by page from a clipboard?
    Obviously I am not expecting InDesign to format the text perfectly on each page, I just want to dump it all in one go and then go back and tidy it all up.
    Any help or advice would be greatly appreciated.
    Regards
    Matthew

    File > Place.... and navigate to the Word file. Show Import Options to allow you to preserve the Word Formatting, or dump it, or map styles to ne styles in your ID document.
    If you have a text  frame on your master page, put the loaded cursor over the frame area on your document page and watch for the cursor to change so it is surrounded by parentheses, then hold the Shift key and click. If you don't have a master frame (and most experienced users will tell you that more than 90% of the time a master text frame is more hindrence than help if you set your margins correctly), hold the Shift key and click where you want the top of the first column to start.
    In both cases, ID will add pages as required to place the entire document and thread the text through all the frames. If using master frames, they will be linked and overrridden onto the document page automatically, if not, your first frame will start where you click and extend down to the bottom margin and succeeding frames will fill the column guides (hence mention of setting your margins correctly).
    ID is a professional program and you really need to spend some time learning how it works. One good place to start is the Help files. Another is Sandee Cohen's Visual QuickStart Guide to InDesign. If you prefer video training, Lynda.com has good content.

  • Automatically create new slide after pasting large block of text?

    Hello,
    Does anyone know if it is possible to have Keynote automatically create new slides if I paste text that doesn't fit into a single slide? The biggest time waster I've encountered is the apparent requirement to break up large chunks of text manually.
    If Keynote does not do this, any ideas as to an Applescript or something that could help?
    Much appreciated

    I usually try dragging from the bottom up in Web pages, it can be tricky getting at the part you want without the extraneous formatting, since that is concealed from you and web designers use many different methods for layout.
    That's why pasting into a plain text document is a good idea to shake off the web formatting, otherwise you are groping around whatever Pages has interpreted the formatting to mean. Even browsers don't get this all right.
    If the original was formatted as a table which won't fit one of the cells on a Pages page, it just pops and won't continue because Pages does not allow breaks in mid cell. If the cells are small enough to fit and you have pasted the table inline in the main text body of a WP file (between the margins) it will flow.
    Peter

  • Copy text from table to table issue

    Using CS6 on PC Win 7 64bit
    not noticed this before probably becasue I usually copy in from Excel or Word docs, but when I copy text from one table to another in a document  its copying it as a nested table,
    if I just copy a single  cell then thats ok but anything else its placed as a table within the target table.
    Probably something really obvious I've overlooked, but its driving me nuts
    Have looked in  prefs and Clipboard  is set for just text, apart from that I cant see anything
    thanks for any help you can give

    Hi Bob
    thanks for that speedy reply.
    I've just been doing some testing and I'm not sure if the results I'm getting are how things should be.
    I just called up one of my recent excel tables and did what I usually do, highlight from the top left cell to the bottom right hand corner cell, Ctrl-C
    Excel table is always 11 column but  the number of rows varies from week to week, from 50 or so to 250.
    Opened an ID table  template I use which width wise is  the same amount of columns as my source excel file 11 columns, but only a few rows.
    Place the cursor and highlight the first row in ID  Ctrl-V,  table is filled and it auto inserts more rows to the limit of the object box  and then I just drag the table down to fill the page and then just click and drag the loaded cursor to create more table space on the next page if needed, nice and simple.
    Just opened a new  table with 6 rows and 4 columns
    and tried to paste into a table with 2 rows and 4 columns expecting it to automatically fill and give me the overfill red icon on the frame but it doesnt
    but it does with text from outside of ID, I just tested it, it automatically fills all the table and adds rows until the object fram is ful and then I can just use the overfill facility to increase the table size
    Seems odd that this only works with externally copied material

  • Copying text from InDesign to Word: formatting problems

    Hi all,
    I have copied a large amount of text from an InDesign CS4 document into Word. I am now having formatting problems. The main problem is that where long words run over two lines, they are not appearing as hyphenated, and I am not able to stop them running over two lines. Inserting the cursor at the start of the second part of such a word and deleting simply deletes the preceding letter on the line above, as if there were no line break.
    Any help much appreciated.
    Jon Cope

    Instead of Copy/Paste, try selecting the text and exporting to .rtf (or if you have an active cursor, but no selection, theentire story will be exported). Open the .rtf in Word.

  • I recently changed from a Mac Pro to an iMac. A large chunk of emails have disappeared. Time Machine is no help. Any ideas as to how I can get them back?

    I recently changed from a Mac Pro to an iMac. Despite using Migration Assistant, a large chunk of my recent emails and nearly all of my wife's emails have disappeared in transit. Strangely, emails from my distant past are still there. Time Machine is no help; the messages may be on my backup disc but they're behind an invisible  icon. Any ideas as to how I can get them back?

    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click the text on the line below to select it:
    ~/Library/Mail/V2/MailData/Envelope Index
    Copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return.
    A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash.
    Log out and log back in. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
    Test. If Mail now works as expected, you can delete the file you moved to the Desktop. Otherwise, post your results.

  • How to output debug text from script?

    How do you output some debugging text from a script? I'm looking for the equivalent of <c:out> from JSTL. I would like to be able to output the value of a "#{variable}". Thanks.

    Isn't h:outputText sufficient? Furthermore, if you're using JSF 1.2 / JSTL 1.2 with unified EL, then c:out will also work for "JSF EL".

  • Read header text from vf01 and print in script main window

    Hi Gurus,
               I need to read text from vf01 header note 1, there user type max 10 lines i want to read that 10 lines and print in sap script main window after line item printed. i used read text but  one line only  fetched. i declare variable like  data : NEXRSP LIKE TLINE-TDLINE and read_text function module. pls provide solution for this.
    Regards
    G.Vendhan

    HI GURUS,
    Thank u for reply i declare like
        ID = '0002'.
        PERFORM READTEXT USING EN NAME OBJECT ID TEXT_OUTPUT.
        NEXRSP = TEXT_OUTPUT . CLEAR TEXT_OUTPUT.
    FORM READTEXT  USING    P_EN
                            P_NAME
                            P_OBJECT
                            P_ID
                            P_TEXT_OUTPUT.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = P_ID
          LANGUAGE                = P_EN
          NAME                    = P_NAME
          OBJECT                  = P_OBJECT
        TABLES
          LINES                   = LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
       LOOP AT LINES.
        P_TEXT_OUTPUT =  LINES-TDLINE.
        EXIT.
       ENDLOOP.
      FREE LINES. CLEAR LINES.
      ENDFORM.                    " READTEXT

  • Mail Receive from outside in Exchange server 2010 (Accepted Domain)

    Hello All
    Two Exchange 2010 server running existing environment. in front of two exchange server have McAfee firewall. This McAfee Firewall receive the mail from outside and send it to Exchange 2010 server.
    for example abc.com is working well to send and receive mail using exchange server. recently i have add
    Accepted Domain which is bcd.com.   But this Accepted Domain can not receive mail from outside. I have configure MX record, Accepted Domain and also mail point. but the problem is that mail cannot receive from outside
    domain. i have also several time modify the receive connector but abc.com work but bcd.com not work
    Please suggest.
    Error:
    firewall.abc.com rejected your message to the following email addresses:
    [email protected] ([email protected])
    firewall.abc.com gave this error:
    <[email protected]>... Relaying denied
    Your message wasn't delivered due to a permission or security issue. The address may only accept email from certain senders or another restriction may be preventing delivery. For more tips to resolve this issue see
    DSN code 5.7.1 in Exchange Online. If the problem continues contact your help desk.

    Have you checked the SMTP protocol log on the Exchange server? Do you see the 5xx status code in the log when a message is sent to the @bcd.com domain?
    If you see the 5xx status code for that domain, check the "Accepted domains" and verify that you didn't make any typos in the domain name. If it looks okay then stop and start the transport service on the Exchange servers and retest.
    If you don't see the 5xx status message for that domain you should check the machine firewall.bcd.com and verify that it's configured to accept e-mail for the @bcd.com domain. I'm guessing that the firewall.bcd.com machine is acting as a SMTP proxy and not
    as a SMTP relay. However, if there are SMTP log files on that machine you should check them and see which IP address is returning the 5xx status message.
    --- Rich Matheisen MCSE&I, Exchange MVP

  • Importing text from large Word document ID freeze

    I'm converting a large Word document to PDF via InDesign and when I import the text from the Word doc, ID always freezes.
    I want to preserve the styles and formatting in the text but unfortunately the freeze occurs at the beginning where the Placing Microsoft Office Word 2007 document progress bar shows either "Processing character attributes..." or "Processing table attributes..."
    My problem is that it is such a large document with lots of italics, bolds and styles that I would like to take over to InDesign in order to speed up the design process.

    RTF will be fine and will retain all the Bold and Italic and other styles. RTF stands for RICH TEXT FORMAT and I think it's better than the standard .doc saved from Word; for importing to InDesign.
    Try these steps.
    In Word:
    File>Save As
    Choose RTF (that way you are not overwriting the original file)
    In InDesign:
    Start a new document - completely blank - don't worry about page size (A4 will do) and don't worry about margins (standard margins will do)
    Use File>Place and import the RTF file you just saved
    If that imports ok - then select all the text
    File>Export and choose RTF (rich text format)
    Now use that new RTF to import to your layout
    (there is no need to worry about images, you should reimport all  images that are in Word through File>Place; if you have any images in  your Word document. Make sure you use the same source file as when you  placed into Word)
    The reasons for the steps above is because there is a lot of unnecessary styles made with Word - and importing to InDesign and a fresh Export to RTF makes a cleaner file to use with InDesign.
    Have a look at  this too - http://www.paperspecs.com/mainblog/degunkifying-word-files/

  • Copy Chinese Text from Word to SAP Script

    Hi,
    I need to change Chinese form. I am not able to copy Chinese text from word document to SAP Script.
    When I copy Chinese text from word to SAP Script, I am getting the Chinese text &#25215;&#36816;&#21830;&#31614; as ?????.
    I have done the following steps in my PC and SAP front end settings.
    1. At the Operating system level install the Chinees language.[Control panel - >Regional and language Option - >language Tab - > Click on Install Files for East Asian languages] If these language already installed then click on Detail and add the Chinese languages[Chinese (PRS) and Chinese(Taiwan).
    2. At SAP level click on Customizing of Local layout[Alt+F12] and click on options.Go to tab I18N and click on Activate the multi-byte functionalities to support check box.
    4.Take care of the Font while assigning to Character formar or paragraph format. Dont use normal font name. Example of chinese phone "CNSONG".
    Please help on the same.
    Thanks & Regards,
    Govind.

    Hello,
    I hope when you are changing form ,you hv logged in  chinese language .
    Sap log-in: Chinese ,PC-setting : chinese font loaded & correct charcter format in script : chinese font.
    If all this is there then you should not hv trouble in getting chinese text from word to SAP script.
    Thanks.

Maybe you are looking for

  • I am getting the following error messages Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7

    When I tried to install latest updates to Lightroom I am getting the following error messaage: Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7 Ca you explain what I need to do to resolve this?

  • How to hide the sub menus under tabs

    Hi, i have a requirement to hide the submenus(links) under tabs. i succeded to hide the tabs and global menus. but still menus(Links) are showing under the tabs. i wrote the below code OAPageLayoutBean page = pageContext.getPageLayoutBean(); page.pre

  • EEWB - BUPA enhancement not active in other clients.

    Hello, Created an EEWB/BUPA enhancement that worked great in Dev client but is not active in two additional clients. Found similar old questions in SDN but no solid answer -  hoped worth asking again. Has anyone encountered this? Thanks in advance...

  • Small DNS issue; www resolution

    I'm investigating a few small issues with our server and started with DNS. When I type "host X5.testdomain.com", I get the following response: X5.testdomain.com is an alias for testdomain.com testdomain.com has address 216.58.x.x testdomain.com mail

  • How to make Duckduckgo default search engine?

    I downloaded the Safari extension and Safari finds it in the Extensions tab. In General, though, it is not one of my options. I rebooted the computer to no effect. Thank you