Dynamic link send problem between AE and CS4

Every clip or composition I attempt to send to AE CS3 causes an App Hang in Premiere CS4. AE opens, but no clip appears, then CS4 hangs. After about 5 minutes it responds and gives a message that it could not link
Going the other way seems to partially work, for instance AE linking to CS4 capture module from a new AE project, but sending a project to CS4 does not work--nothing happens, and no error messages.
Anyone else having this problem? Any potential solutions? Thanks in advance.

Thanks josh, I'll stop pounding my head against the bricks.
I was beginning to suspect that. Strangely, when choosing to Replace with AE composition, it goes as far as opening AE CS3, but then hangs for a while, then unhangs and says it can't find AE.

Similar Messages

  • RFC Sender problem  between 46D and RFC adapter

    Hi,
    I have this simple integration scenario where I want to send data to a archiving system;
    SAP -> (tRFC) -> XI -> (MQ) -> BizTalk -> (MQ) Arch.syst.
    SAP side ***
    A Z-program using a Z func. like;
        CALL FUNCTION 'ZSD_DCF_SEND_TAG'
          IN BACKGROUND TASK
          DESTINATION 'XISYSTEM_TRFC_DCF'
          EXPORTING
            pt_filing_info = gt_filing.
        COMMIT WORK AND WAIT.
    XI side ***
    Both IR and ID is configured correctly, in the development environment everything works just great. I have created a test program where I can define how many calls I will do, looping over the func. call with a commit inside the loop - 500 or more msgs are ok.
    The integration scenario is transported to quality enviroment using CMS, and the RFC sender comm.ch. is configured accordingly.
    The problem in quality ***
    When sending just 1 msg, everything is just fine, message received and delivered to MQ.
    When sending >= 2 msgs, the 1 msg is always ok, BUT all others fails due to the following from Adapter monitor;
    RFC_HISTORY
    - Error: 2006-01-19 10:55:18 CET: com.sap.aii.af.rfc.afcommunication.RfcAFWException: lookup of alternativeServiceIdentifier via CPA-cache failed for channel 'RFCSender_XI0002' (02d4d30de3593874942ed0659add0827, party '', schema 'TechnicalSystem', identifier 'Q93#120')
    - OK: 2006-01-19 10:55:17 CET: Message processed for interface ZSD_DCF_SEND_TAG
    My sending system is Q93 CLI 505 so I can understand the error, BUT I cannot understand why the RFC adapter is saying the TechnicalSystem is Q93#120 - it should be Q93#505. My Q XI has client 120...
    It seems to me that the RFC adapter is kind of confused about the sender..
    I have created a OSS message and SAP has looged on and looked into it with both a XI expert and RFC expert without being able to answer - all is configured correctly.
    - The SLD config. for bus.system Q93 is ok -
    - The bus.system in ID is showing correct vaues for
    Adapter Specific Identifiers (SID Q93, client 505)
    - Both Dev. and Qual. environment are running on XI 3.0 SP 14 latest patch, RFC component version on the SAP side is identical between dev. and qual. SAP systems
    - It doesn't matter which gw I use (Q93 gw or XI gw), the error is persistent
    - It doesn't matter if I increase initial conn, max conn.
    I have also tried to use qRFC instead, but with the same result.
    Anyone using tRFC for asynch. communication from SAP to XI seeing something similar?
    Meanwhile, I will do RFC trace on GW and RFC Adapter on AE....
    Please, do not say SP15, oss msg for FAQ RFC adapter or links to RFCAdapter config....
    best regards
    Torstein

    Hi,
    SAP Note 730870 FAQ: XI 3.0 RfcAdapter Q.no 15
    <i>Q 15: Whats wrong when the error message "lookup of alternativeServiceIdentifier via CPA-cache failed" shows up while sending a RFC call to the RfcAdapter?
    A: A RFC sender channel is located beneath a service within the Integration Directory. Within this service choose "Service" -> "Adapter-Specific Identifiers". The values in the fields "R/3 System ID" and "Client" has to be maintained with the correct values of the system, that sends the RFC call to the RfcAdapter. It normaly only makes sense to have these values filled for services of type "Business System". If maintained in SLD, this fields will be filled automaticaly for services of type "Business System" and can be updated with the button "Compare with System Landscape Directory".</i>
    - Give correct appserver and gateway service details in XI.
    - Open the service holding the RFC adapter you are trying to use. On the top menu, goto Service -> Adapter Specific Identifiers..
    Regards,
    Prateek

  • CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there

    CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there a way around this?  Is there a patch to correct it?

    To build CD's???
    What problem does Encore have with DL?
    If DL is not working properly for you the way around this is to export from Premiere to either mpeg2-dvd for DVD or BluRay H.264 for BD-disks and import the files in Encore.

  • Adobe Dynamic Link or Export from Premiere and load into Encore?

    Hi
    I'm making some tests about authoring DVDs and Blu-Rays from Encore CS6. My video editions are made in Adobe Premiere Pro CS6.
    Looks like I have 2 ways to send contents from Premiere Pro to Encore.
    1) I can set all my editions in Premiere Pro, then Export the entire timeline to a MPEG-2 DVD or MPEG-2 BLU-Ray file, then start a new Encore project and import this video file as a timeline.
    2) I can finish my editions in Premiere Pro, then use the Adobe Dynamic Link > Send to Encore options. So, it's not necessary to export files, since the task of transcoding is an Encore's task.
    Question is: Any advantage of using way 1 or 2??? Thinking about speed to finish the job, is one way better than other?
    What do you use do choose?
    Thank you for these tips
    Gustavo.

    Hi Stanley
    Thank you very much for your tips. Just one thing:
    In Premiere we can choose, for Blu-Rays, the MPEG-2 or H.264 codecs. You mentioned the H.264 Bly-Ray choice.
    Any advantage regarding the H.264 instead of the own MPEG-2 coded?
    Best Regards and thank you very much again.
    Gustavo.

  • Problems between PE4 and 10

    I have a drawing that was resized to a certain length using PE4. I have now upgraded to PE10 and when I print the drawing , it prints 3-4 times  larger than what it should be. When I view the drawing, the ruler at the top of the screen shows it being the correct length and when I checked the deminsion in the resize box, it also has the correct length. Have I done something wrong or should I delete the drawing and start over from scratch?

    Could you be a little more specific please? Sorry, I am not a tech guy just a poor laymen.
    Date: Thu, 2 Aug 2012 20:30:55 -0600
    From: [email protected]
    To: [email protected]
    Subject: Problems between PE4 and 10
        Re: Problems between PE4 and 10
        created by photodrawken in Photoshop Elements - View the full discussion
    Check your PSE print settings, especially the DPI value in the "Print Quality". Ken
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4595437#4595437
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4595437#4595437. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Do any of you experience Im having with my ipad? I can't make a comment in Facebook for older posts and I can't open numerous comments from old posts of my friends. but everything works perfectly when I use laptop. is there problem between apple and FB?

    do any of you experience Im having with my ipad? I can't make a comment in Facebook for older posts and I can't open numerous comments from old posts of my friends. but everything works perfectly when I use my laptop(non-apple). is there problem between apple and FB?

    Facebook apparently has their site coded poorly for tablets with touch screens. Try using the Facebook app. It is not perfect either but it is better than view in a browser lately.

  • How can I fix a problem between Firefox and my printer? When I try to print a window appears Save as ,then another saying Firefox not responding and printing does not work

    I used to be able to print correctly using Firefox as my browser,but something changed in the last month or so,possibly after a Firefox update. I`m not really sure how it happened but there seems to be a problem between Firefox and my printer. So I have been using Internet Explorer as my default so I can print. I would prefer to use Firefox again since that is where my bookmarks are. Is there a way to get the connection between Firefox and my printer back?

    '''Save as''' = sounds like you don't have your printer selected, or you have ''Print to file'' selected
    http://kb.mozillazine.org/Problems_printing_web_pages

  • Difference between CS3 and CS4 when placing images, percentage not kept

    There is some kind of difference between CS3 and CS4 when placing images. The images I've dealt with right now were vector images but it might apply to all kinds of images.
    When replacing an existing image, the CS4 behaviour is to let the image fill up the frame. In CS3 the percentage was set to 100% as default (the % you see when selecting the image, not the container).
    Also when replacing an impage in CS4, the "inner" image frame is kept, while in C3, the percentage was kept.
    Is there some kind of placement preferences / settings to let CS4 act the same wat as CS3 did, when placing an image?
    -- Andreas

    Yes, the behavior was changed in CS4 (and many users, like me, prefer the new system).
    If you click and drag a loaded image place cursor the entire image will be be scaled to fit the proportionally drawn frame -- a huge timesaver if you mostly place uncropped art. If you want 100% of the image at 100% scale, just click and release -- same as before, or as before you can pre-draw a frame and place into it and your image will come in cropped at 100% (unless you've changed the fitting options for the frame before placing).
    Peter

  • Color differences between LR and CS4

    I've recently switched from PC to MacbookPro and installed latest versions of Lightroom and CS4. I do most of my editing in Lightroom and sometimes export to Photoshop. I noticed that there is a huge difference between the colors in Lightroom vs the colors in Photoshop even with NO editing done at all when I firt import to Lightroom. I import my raw files into Lightroom, do no editing, reset the files to ensure no editing, and then export into Photoshop and the image looks totally different color wise. Any ideas as to why?? My color settings are all set to srgb consistanty amongst all the 2 systems. Any other thoughts on what could be causing this? THanks

    >I change the color working space in PS from my monitor profile (Eye One display tool-generated) to ProPhotoRGB, which is apparently what LR uses.
    You NEVER EVER want to use the monitor profile as the working space. The only exception is when you make small graphics (i.e not photographs) for websites that need to match CSS code. Photoshop needs to be setup as the first image in
    this link i.e. using a standard workingspace (mostly sRGB, adobeRGB, or prophotoRGB) and to respect all embedded profiles.
    >In other words, if I use the calibrated monitor profile in both the system preferences color profile (i.e., on my MacBook Pro) and in PS, the PS and LR images don't match. I'd really love to solve this problem, or determine what I don't understand here. Thanks, Mitch
    Photoshop does not need to be told about the monitor profile. It already automatically converts everything you see to it since it knows the monitor profile by simply asking the system software. What you see in your case is that Lightroom (or ACR if you use the RAW photoshop integration) correctly exports the image in a standard color space (whatever you choose in Preferences) and then you have set up Photoshop to completely disregard this fact and treat the image as if it was in the monitor profile. This is not a good thing to do.

  • Communication problem between NetBeans and Tomcat

    hi!
    i got a quite mysterious problem. here is what happens:
    - i start NetBeans 5.5.1 (the first time)
    - i want to debug my JSF-Project, the Debugger starts
    - After a few seconds the debugger waits for tomcat (it sais: "Waiting for Tomcat...") and tomcat starts
    - Again after a few seconds the tomcat-debugger-output sais "Tomcat startet in 3333 ms".
    okay.
    when i enter http://localhost:8084/ in my browser i get the tomcat homepage, so the server has definitely started! But nothing happens in NetBeans and nothing happens with my project....
    In the lower-right corner i see this blue working-bar that sais "deploying project" but nothing happens. The Project-Debugger-Output still sais "Waiting for Tomcat..." but nothing happens...
    And after something around 3 minutes (i guess it's a timeout) i get the error "Starting of Tomcat failed." But is HAS started, i can login to the Administration-Area in my browser!
    so i guess there is a communication problem between netbeans an tomcat. Netbeans waits for a message from tomcat but tomcat doesn't send it..or netbeans doesn't understand it.
    But the story goes on:
    When i press the debug-button a second time it takes only a few seconds till i get the message: "Tomcat server port 8084 already in use". OF COURSE! Because Tomcat has already startet and can't be stoped by NetBeans.
    i'm trying to solve this problem for 4 days now, so i would be very happy if anyone has an idea where to start/continue the search...
    thanks,
    flo.
    some system-info:
    - windows vista business 32-bit
    - no firewall is running
    - AntiVir Personal Edition IS running
    - Yahoo Widgets Engine IS running
    - no other software is running
    and finally the tomcat-log:
    Using CATALINA_BASE: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base
    Using CATALINA_HOME: C:\Program Files\NetBeans\enterprise3\apache-tomcat-5.5.17
    Using CATALINA_TMPDIR: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\temp
    Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_12
    Listening for transport dt_shmem at address: tomcat_shared_memory_id
    21.09.2007 18:27:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_12\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\cvsnt;
    21.09.2007 18:27:50 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:50 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1862 ms
    21.09.2007 18:27:50 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    21.09.2007 18:27:50 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    21.09.2007 18:27:50 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    21.09.2007 18:27:53 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:54 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    21.09.2007 18:27:54 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=null
    21.09.2007 18:27:54 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    21.09.2007 18:27:54 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3626 ms

    As i wrote before, the same problem occured for me. I have found a solution which is : Go to tools menu and then select options . In the proxy info, select No Proxy.
    I hope this help you

  • Premiere to AE Dynamic Link CinemaDNG Problem

    Hi Guys,
    I'm having a problem when I dynamic link from premiere to after effects. I have raw shot on a BMCC and edited it in Premiere Pro. It's for a greenscreen with alot of effects. So I selected all the clips in my timeline and selected make this a AE comp. The adobe camera raw settings pop up and I set the colour and it all seems fine until..... I go to play the clip! I can see it's only imported 1 frame of the entire clip. I'm not sure how to work around this problem because I want to keep my edits but also have access to indivdual clips in AE. HELP! What am I doing wrong? I tried reloading the clips in AE but it loses all the edit points.

    CinemaDNG sequence per se can be easily imported into AE. The issue is the OP has edited PrPro project with improperly stored data in .prproj file, which reference each CinemaDNG sequence as a single frame because of importer implementation.
    He can not relink CinemaDNG sequence to another image sequence because of long standing PrPro inability to relink a footage to an image sequence. However, he can replace them with a footage in MOV or AVI container, be it a proxy or an intermediate, and then easily replace all those proxies or intermediates with original CinemaDNG sequences in AE retaining proper In and Out points.
    NB: Prior to relinking CinemaDNG sequences to MOVs or AVIs inside PrPro project they have to be interpretted as having proper frame rate, not their default 1 fps assinged on importing.

  • Adobe Dynamic Link will not work - Premiere Pro CS4 to After Effects CS4

    Hello,
       I am edited a video with a deadline, I'm importing a sequence from Premiere Pro CS4 to After Effects and making edits in After Effects. I'm able to import the Premiere Pro sequence into After Effects using Dynamic Link, but  I go back to Premiere Pro and nothing has changed. Then I have to export the 21 minute long video in After Effects and that takes about 12 hours, that I can't afford. I don't know what I'm doing wrong, before I imported the timeline into AE, while I was in Premiere Pro I right clicked it and selected -Edit original. It took me to the .mov that I imported- since it's a redo. I learned how to use Dynamic Link from this tutorial-
    http://tv.adobe.com/watch/learn-cs4-production-premium/using-dynamic-link/
    At first when Dynamic link didn't work I thought it was because I was cutting the imported Sequence from Premiere Pro in After Effects becasue I was motion tracking. When you import a Premier Pro sequence can you cut it into individual layers in After Effects? 

    I'm importing a sequence from Premiere Pro CS4 to After Effects
    That doesn't create the type of Link you want here.  In this case, changes made to PP would show up in AE.  You want the reverse.  (And you can only go one way, not both.)
    http://help.adobe.com/en_US/PremierePro/4.0/WS725e431141e7ba651172e081238226cdf5-8000.html

  • Encore, Premiere, Dynamic Link, MPE & Problem?

    My set-up is CS5 with an nVidia GTX-460 (hacked to conform for MPE).  The project used is HDV 1080i60.  I created the Encore project by importing Premiere sequences.   I am burning a DVD.
    First an interesting discovery -
         I was surprised to see that Encore used MPE when transcoding.  I have a gadget that shows GPU load.
    Now the not so good -
         I was having a terrbible time getting the, very simple, single timeline, no menus, just chapter marks, DVD to burn.   Sometimes I got an "Encode Failed".  And a few times the system (Win 7 64-bit) blue screened!  Until this this system has been rock solid.  In my debugging I figured that I'd turn-off MPE and see if that helped.  Hmmmm.  No option for that in Encore.  However, I went into the Premiere project and turned it off there.   Voila!  Encore now does not use the GPU and the DVD burn completed.
    Of course, this could be an issue with my un-supported GTX-460.  But maybe not . . . .
    Comments?

    I can't help directly, but I never use Dynamic Link because I have read of problems
    http://forums.adobe.com/thread/936216
    http://forums.adobe.com/thread/938108
    http://forums.adobe.com/thread/938549
    So, as a test, export as appropriate out of PPro and then import the files (video & audio) into a new project in Encore

  • Encore Adobe Dynamic Link Audio problem

    I have a multiple video files that I have put together in Premiere.  The are HD Dolby 5.1 sound.  I have about 10 of these together. So I export them to Encore using the Adobe Dynamic Link. I built the menu system.  When I burn the dvd and try it.  It plays through the first two clips just fine and when it gets to the third. The sound goes out and never returns on the rest of the clips.  But when I test it in Encore and Premiere there is sound and it works great.  Anyone know why when i burn the dvd I loose the sound on the 3rd clip?  Thanks.

    I can't help directly, but I never use Dynamic Link because I have read of problems
    http://forums.adobe.com/thread/936216
    http://forums.adobe.com/thread/938108
    http://forums.adobe.com/thread/938549
    So, as a test, export as appropriate out of PPro and then import the files (video & audio) into a new project in Encore

  • Text find and change problem in CS3 and CS4 script

    I use the script below to find some text and change into others.
    There is one thing the script can't do it for me.
    Example:
    (g) Management
    (1) that no law which is enacted in the Cayman Islands imposing any tax to be levied on profits, income, gains or appreciation shall apply to the Company or its operations; and
    (2) that the aforesaid tax or any tax in the nature of estate duty or inheritance tax shall not be payable on or in respect of the shares, debentures or other obligations of the Company.
    Example:(END)
    I got a lot of topics or points in the passage. And I want to change the space between '(g)' and 'Management' into a tab character. So I revised the plain text file 1text.
    PS: 1text.txt is filled with what to change.
    text {findWhat:"^p(^?) "} {changeTo:"^p(^?)^t"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all space-dash-space and replace with an en dash.
    The result is:
    (^?)^tManagement
    (^?)^tthat no law which is enacted in the Cayman Islands imposing any tax to be levied on profits, income, gains or appreciation shall apply to the Company or its operations; and
    (^?)^tthat the aforesaid tax or any tax in the nature of estate duty or inheritance tax shall not be payable on or in respect of the shares, debentures or other obligations of the Company.
    PS: ^t is a tab character.
    result (END)
    This is not what I want.
    It should be '(g)^tManagement'.
    PS: ^t is a tab character.
    Please someboady help me out to revised the script below to change the text into what I want. Thanks so much.
    Here is the script.
    //FindChangeByList.jsx
    //An InDesign CS4 JavaScript
    @@@BUILDINFO@@@ "FindChangeByList.jsx" 2.0.0.0 10-January-2008
    //Loads a series of tab-delimited strings from a text file, then performs a series
    //of find/change operations based on the strings read from the file.
    //The data file is tab-delimited, with carriage returns separating records.
    //The format of each record in the file is:
    //findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
    //Where:
    //<tab> is a tab character
    //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
    //findProperties is a properties record (as text) of the find preferences.
    //changeProperties is a properties record (as text) of the change preferences.
    //findChangeOptions is a properties record (as text) of the find/change options.
    //description is a description of the find/change operation
    //Very simple example:
    //text {findWhat:"--"} {changeTo:"^_"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double dashes and replace with an em dash.
    //More complex example:
    //text {findWhat:"^9^9.^9^9"} {appliedCharacterStyle:"price"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find $10.00 to $99.99 and apply the character style "price".
    //All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
    //If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
    //as shown in the example below:
    //{findWhat:"\\s+"}
    //For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
    main();
    function main(){
    var myObject;
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    if(app.documents.length > 0){
      if(app.selection.length > 0){
       switch(app.selection[0].constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "Text":
        case "Cell":
        case "Column":
        case "Row":
        case "Table":
         myDisplayDialog();
         break;
        default:
         //Something was selected, but it wasn't a text object, so search the document.
         myFindChangeByList(app.documents.item(0));
      else{
       //Nothing was selected, so simply search the document.
       myFindChangeByList(app.documents.item(0));
    else{
      alert("No documents are open. Please open a document and try again.");
    function myDisplayDialog(){
    var myObject;
    var myDialog = app.dialogs.add({name:"FindChangeByList"});
    with(myDialog.dialogColumns.add()){
      with(dialogRows.add()){
       with(dialogColumns.add()){
        staticTexts.add({staticLabel:"Search Range:"});
       var myRangeButtons = radiobuttonGroups.add();
       with(myRangeButtons){
        radiobuttonControls.add({staticLabel:"Document", checkedState:true});
        radiobuttonControls.add({staticLabel:"Selected Story"});
        if(app.selection[0].contents != ""){
         radiobuttonControls.add({staticLabel:"Selection", checkedState:true});
    var myResult = myDialog.show();
    if(myResult == true){
      switch(myRangeButtons.selectedButton){
       case 0:
        myObject = app.documents.item(0);
        break;
       case 1:
        myObject = app.selection[0].parentStory;
        break;
       case 2:
        myObject = app.selection[0];
        break;
      myDialog.destroy();
      myFindChangeByList(myObject);
    else{
      myDialog.destroy();
    function myFindChangeByList(myObject){
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, myStory;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/FindChangeSupport/1test.txt")
    if(myFindChangeFile != null){
      myFindChangeFile = File(myFindChangeFile);
      var myResult = myFindChangeFile.open("r", undefined, undefined);
      if(myResult == true){
       //Loop through the find/change operations.
       do{
        myLine = myFindChangeFile.readln();
        //Ignore comment lines and blank lines.
        if((myLine.substring(0,4)=="text")||(myLine.substring(0,4)=="grep")||(myLine.substring(0, 5)=="glyph")){
         myFindChangeArray = myLine.split("\t");
         //The first field in the line is the findType string.
         myFindType = myFindChangeArray[0];
         //The second field in the line is the FindPreferences string.
         myFindPreferences = myFindChangeArray[1];
         //The second field in the line is the ChangePreferences string.
         myChangePreferences = myFindChangeArray[2];
         //The fourth field is the range--used only by text find/change.
         myFindChangeOptions = myFindChangeArray[3];
         switch(myFindType){
          case "text":
           myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "grep":
           myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "glyph":
           myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
       } while(myFindChangeFile.eof == false);
       myFindChangeFile.close();
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change preferences before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    myFoundItems = myObject.changeText();
    //Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep();
    //Reset the find/change grep preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change glyph preferences before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph();
    //Reset the find/change glyph preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    function myFindFile(myFilePath){
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File(myScriptFile);
    var myScriptFolder = myScriptFile.path;
    myFilePath = myScriptFolder + myFilePath;
    if(File(myFilePath).exists == false){
      //Display a dialog.
      myFilePath = File.openDialog("Choose the file containing your find/change list");
    return myFilePath;
    function myGetScriptPath(){
    try{
      myFile = app.activeScript;
    catch(myError){
      myFile = myError.fileName;
    return myFile;

    It takes me a lof of time to comprehend the sentence you write. Cause I am a Chinese. My poor English.
    I have to say "you are genius". I used to use the indesign CS2. There is no GREP function in CS2. When I get the new script, I do not know how to use it. Just when I saw the
    'grep {findWhat:"  +"} {changeTo:" "} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double spaces and replace with single spaces.'
    Being confused.
    Thanks so much. It seems I have to relearn the advanced Indesign.

Maybe you are looking for

  • Licensing has stopped working is just the beginning...

    About a month ago I got the error "Licensing has stopped working" when I tried to launch Photoshop CS3. I followed the steps on the forum http://helpx.adobe.com/creative-suite/kb/error-licensing-stopped-windows.html finally uninstalled and reinstalle

  • Offline Disc In Degraded Mirrored RAID Set

    I have a 2 disc (300GB each) mirrored RAID set that has worked fine up until recently. One slice appeared failed so I attempted to rebuild it. 7 hours later it still showed up as failed. I attempted a rebuild once more and the same result. I then shu

  • Conditional Processing: Request is Contained within Expression 1

    I believe I have found a bug with the Process Conditional Processing logic, where "Request is Contained within Expression 1" is used. Here are three of the buttons that I have on my page: GET_RES_CIVIC_ADDR - This button is displayed among the Region

  • Can I install itunes on my second hard drive?

    Hello All, Just wondering if I can install iTunes on the secondary hard drive where I keep all my audio/video files. That way, when I reinstall my OS or do an upgrade to Vista, I won't have to reload iTunes? Thanks!

  • My Ipod doesn't show some of the songs I have? Please I need an answer

    My Ipod is perfectly organized by Artists and when I select some of them, few song are shown; for example I have 10 songs of The Doors and it only shows 4. If I search them, with the search feature, they appear. How do I fiz this?