Targeting Acrobat from a script begun in InDesign

My goal:
Export a pdf, have the pdf open in Acrobat and run a preflight setting.
I can get the pdf to open but InDesign is still the active application. What is the code to target Acrobat.
I've tried:
#target "Acrobat"
because I found #target "InDesign" would target the latest InDesign version.
Bonus points: Help with selecting the preflight setting would be helpful too.
Thanks in advance.
John

Hi 2i Geert and thanks for the idea.
I have made it with:
reply = "";
conn = new Socket();
if (conn.open("192.168.91.184:8888)) { // my port and host
conn.write(" GET /myfile.php?" + variousVariable + " HTTP/1.0\n\n");
reply = conn.read(999999);
conn.close;
With this code, the myfile.php seems to been executed.
But I'm still searching for a better solution.

Similar Messages

  • How do I prevent Acrobat from encoding # in hyperlinks to %23 when generating a PDF from Word 2010?

    Existing posts seem to indicate that the only solution is to manually modify each hyperlink in the generated PDF. This is a tedious and time-consuming process that I would like to avoid at any cost. Is there an alternative?
    Joe

    It is relative, but I don't want it to be. The problem is that I don't see any way in either Acrobat or InDesign to specify that it must be absolute.
    It sounds like if I were to keep my working file on a local drive and export from there, it would automatically create an absolute link to the network path, but another designer is also working on the project and needs to be able to access the file. I could also copy the entire working folder to a local drive before exporting each time, or manually update the links in Acrobat from a local copy of the PDF after each export... but these both seem like ridiculous extra steps that shouldn't be necessary.
    Is it really possible that neither program allows the user to control whether a link is relative or absolute? Should I post this in the InDesign forums, though the issue seems to be in Acrobat?

  • Opening ADF page from java script

    I am trying to use window.open(url, winName) to open an ADF page from java script.
    I have set the same winName but when i call the window.open method every time it opens up a new window.
    The code is as below:
    <html>
    <head>
    </head>
    <body>
    <script>
    function openwin() {
    window.open("about:blank", "winDocPrint", "width=800,height=600,location=no");
    </script>
    <form action="http://127.0.0.1:7101/RegionRefresh-ViewController-context-root/faces/EnterAndDisplay?_afrLoop=3611588465186&_afrWindowMode=0&_adf.ctrl-state=zoaas2mc3_4" target="winDocPrint" onsubmit="openwin">
    <input type="submit" value="Print Comments Call ADF">
    </form>
    </body>
    </html>
    when I click the button first time, it opens a new window, and keeps opening a new windows on clicking the button again.
    I want it to use the same window that was opened first time.
    Any help would be appreciated.
    Thanks,
    Sandeep M.
    Edited by: user8895611 on Mar 25, 2010 11:44 PM

    Hi,
    you need to keep the window handle reference so you can access the same window
    http://www.irt.org/script/874.htm
    Frank

  • Please help to call oracle procedure with out paramter from shell script

    Hi
    I want to call a process with out parameter from shell script. I am calling process in shell script in below way
    function Process_loads {
    ( echo 'set serveroutput on size 1000000 arraysize 1'
    echo "set pagesize 0 term on verify off feedback off echo off"
    echo "BEGIN"
    echo " dbms_output.put_line('Before Calling The package'); "
    echo " x ( '$1', '$2', '$2', '$4', '$5', '$error_code'); "
    echo " dbms_output.put_line('After Calling The package'); "
    echo "EXCEPTION "
    echo " WHEN OTHERS THEN "
    echo " dbms_output.put_line('BIN_LOAD_ERROR' || SQLERRM); "
    echo " ROLLBACK;"
    echo "END;"
    echo "/" ) | sqlplus -s $USER/$PASSWORD@$SID
    Here $error_code is out paramter. All varaibles passed in process are declared with export command.
    When executing .sh it gives below error
    "sh ERROR at line 3: ORA-06550: line 3, column 99: PLS-00363: expression '' cannot be used as an assignment target ORA-06550: line 3, column 3: PL/SQL: Statement ignored".
    Please help to get rid from this error or please suggest how to call a oracle procedure with out paramter from unix shell script.
    Thanks in advance

    You can try this:
    From sql*plus
    SQL> ed
      1  create or replace procedure my_proc(p_id in int, p_result out int)
      2  as
      3  begin
      4  select 10 * p_id
      5  into p_result
      6  from dual;
      7* end my_proc;
    SQL> /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2  v_r int;
      3  begin
      4  my_proc(10,v_r);
      5  dbms_output.put_line(v_r);
      6  end;
      7  /
    100
    PL/SQL procedure successfully completed.
    from bash:
    testproc.sh:
    #!/bin/bash
    (echo 'set serveroutput on';
    echo 'declare';
    echo 'v_r int;';
    echo 'begin';
    echo 'my_proc(10,v_r);';
    echo 'dbms_output.put_line(v_r);'
    echo 'end;';
    echo '/';) | sqlplus -s u1/u1
    Console:
    oracle@mob-ubuntu:~$ chmod u+x testproc.sh
    oracle@mob-ubuntu:~$ ./testproc.sh
    100
    PL/SQL procedure successfully completed.With kind regards
    Krystian Zieja

  • How to make separate/individual text frame from one parent frame in indesign with javascript

    Hi all,
    Please suugest - how to make separate/individual text frame from one parent frame in indesign with javascript.
    Thanks
    Rohit

    @Larry – ah, your interpretation could be the right one…
    May I rephrase the question:
    "How to split threaded text frames to single ones?"
    "SplitStory.jsx" or "BreakFrame.jsx" under Scripts/Samples indeed could be the answer.
    From the comments in the code of "BreakFrame.jsx":
    //Removes the selected text frame (or text frames) from the
    //story containing the text frame and removes the text contained
    //by the text frame from the story.
    //If you want to split *all* of the text fames in the story, use the
    //SplitStory.jsx script.
    Uwe

  • Installing Rosetta from a script

    Hi,
    I need to be able to install the rosetta component in Snow Leopard from a script file. We have a management tool that allows us to run scripts on our macbooks. We need to install a new piece of software across the company and this software requires rosetta to be installed. Some of the older macbooks are fine but the newer ones need to have it installed.
    We can detect whether it's there or not but for love nor money I can't find out how to install it from the terminal or a script.
    I've tried;
    installer -pkg /path/to/Optional\ Installs.mpkg -target /
    which says that it is installed but looking at it none of the components there have actually been installed.
    There must be a way to tell the installer which features within the Optional Installs package need to be installed.
    Any ideas?
    Olly

    Hello,
    Did you ever figure out how to do this? I'm working on the same scenario. My next step was to copy the /usr/libexec/oah/ folder to another mac and figuring out how to add an entry to /Library/Receipts/InstallHistory.plist. Please let me know.
    Thanks!

  • How do I prevent Acrobat from changing paths to linked files when a PDF is saved locally?

    Hi,
    I'm creating a PDF for internal company use. Each page will include a button to view a video; the videos themselves will be hosted on an internal network drive.
    When I create the button in InDesign, I create an Open File action, browse to the video I want to link to, and it creates (what appears to be) an absolute path to the file. When I export to PDF, the path still appears to be absolute in the button properties, and if I open the PDF directly from its network location, the video button opens the video and works properly.
    If the PDF is sent as an attachment or downloaded from the network and saved locally, however, the video links no longer work. The filepath in the button properties still appears to be absolute, but now points to a local folder ("C:\Users\...")
    I need users to be able to download and save the PDF locally, but I don't want to embed a dozen videos, for obvious reasons. How can I ensure, then, that the filepaths to the videos are truly absolute and will consistently point to the network location no matter where/how the PDF is saved?

    It is relative, but I don't want it to be. The problem is that I don't see any way in either Acrobat or InDesign to specify that it must be absolute.
    It sounds like if I were to keep my working file on a local drive and export from there, it would automatically create an absolute link to the network path, but another designer is also working on the project and needs to be able to access the file. I could also copy the entire working folder to a local drive before exporting each time, or manually update the links in Acrobat from a local copy of the PDF after each export... but these both seem like ridiculous extra steps that shouldn't be necessary.
    Is it really possible that neither program allows the user to control whether a link is relative or absolute? Should I post this in the InDesign forums, though the issue seems to be in Acrobat?

  • Load an Advanced Print Setting in Acrobat via Java-Script

    Hi there,
    I'd like to know, if there's a way to load an advanced print setting in the Acrobat via Java Script or some other way? (See Screenshot)
    Or is it possible to set an created setting as default-setting? (also via Java or something)
    Or can somebody tell me, where these created print settings are saved? (in Acrobat X)
    Thank you very much for your help and sorry for my english, I hope you understand me. :-)
    Kind regards
    Mankro

    Why wouldn't you want to set itas part of an input/output parameter?
    This is really the right way ofdoing this. Otherwise you'll end up with hardcoded variable name in your customcomponent and that not ideal.
    If you're trying to define a default value for it coming from a properties file, you can just make it a "Configuration" variable and set the value from adminui.
    Jasmin

  • Is it possible to store script settings with InDesign file?

    Hi,
    I have some crazy idea: is it possible to store script settings with InDesign file?
    In that case scripters will be able to store those settings with file, and when script runs - it can check if those setting exists - if so - script can run without showing dialogue with parameters... (as all necessary parameters stored with indesign file), and of course we can force InDesign to show script parameters dialogue if we run it with alt/option key pressed while running this script. Maybe even different scripts will be able to share those settings and interact with each other.. we will be able to have settings that will be saved with file, or temp settings for current document or session (till InDesign is closed). With eventListeners and startup scripts we will be able to do scripts that would be able to check for updates, and automatically execute when we placing images and text, and so on.. this can be a whole InDesign scripting framework, that allow to write scripts that will use same libraries and ui so we don't have to write everything from scratch everytime and just included required libs..
    so here is 2 main questions for now:
    1) is it possible to store script settings with .indd file
    2) who is intrested in creation InDesign scripting framework (because this only makes sense if many people will use it)
    PS: I know that it's possible to store settings in external file, but this time I'm interested only for saving params with .indd

    Ok, here is the labels parser I end with, actually it works extremely fast!
    Thanks again, Harbs!
    var labels = GetDocLabels(app.documents[0]);
    function GetDocLabels(doc)
        var idmlFile = File(Folder.temp + "/temp.idml"); 
        doc.exportFile(ExportFormat.INDESIGN_MARKUP,idmlFile); // asynchronousExportFile works, but script fails as it try to execute before file fully exported
        var folder = Folder(Folder.temp + "/temp_idml"); 
        app.unpackageUCF(idmlFile,folder); 
        var designMap = File(folder + "/designmap.xml"); 
        var valuePairs = GetValuePairs(designMap); 
        return valuePairs;    
    function GetValuePairs(file)
        file.open("r");  
        var contents = file.read();  
        file.close();   
        var contXML = XML(contents);
        var vals = {};
        for each(var pair in contXML..KeyValuePair)
            vals[[email protected]()] = [email protected]();       
        return vals;  
    //> START of DELETE FOLDER Function
    function deleteFolder(path)
        removeFolder = path; // path to folder that need to be removed
        filesToRemove = removeFolder.getFiles();
        for(i = 0; i < filesToRemove.length; i++)
            try
                innerFolders = filesToRemove[i].getFiles();
                if(innerFolders.length >= 1)
                    for(f = 0; f < innerFolders.length; f++)
                        innerFolders[f].remove()
            catch(e){}
            filesToRemove[i].remove(); // remove temp files once we done
        removeFolder.remove();
    }//< END of DELETE FOLDER function
    // remove temp files once we done
    deleteFolder(Folder(Folder.temp + "/temp_idml"));
    File(Folder.temp + "/temp.idml").remove();
    // DUMPER FUNCTIONS
    function dump(o)
        out = "";
        for (var p in o)
            out += p + ": " + o[p] + "\n";
        return(out);
    function alert_scroll (title, input)
       if (input instanceof Array)
           input = input.join ("\r");
       var w = new Window ("dialog", title);
       var list = w.add ("edittext", undefined, input, {multiline: true, scrolling: true});
       list.maximumSize.height = w.maximumSize.height-100;
       list.minimumSize.width = 550;
       w.add ("button", undefined, "Close", {name: "ok"});
       w.show ();
    alert_scroll ("Document Labels", dump(labels)); exit();

  • Dynamic xml from php script throws error: #1088 or #1085

    Hi,
    I'm importing xml formatted data from mysql via php script:
    [code]
    <?php
    require_once('require.php');
    $result = mysql_query("SELECT * FROM `songs`");
    if($result)
        header ("Content-Type: text/xml");
        echo"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
        echo"<songComments>\n";
        while ($row = mysql_fetch_array($result))
            echo"<testimonial>\n";
            echo"<songComment>" . $row['title'] . "</songComment>\n";
            echo"</testimonial>\n";
        echo"</songComments>\n";
    ?>
    [/code]
    In one of my flash projects it's working just fine. But in the new one that I just sterted not anymore. And i have no idea why. I get this errors:
    TypeError: Error #1085: The element type "songComments\n" must be terminated by the matching end-tag "</songComments\n>".
    or:
    TypeError: Error #1088: The markup in the document following the root element must be well-formed.
    When I output that php into txt file and loaded in flash everything is fine, but not from php script directly.
    Could it have something to do with that I'm testing that mysql locally on my computer using WAMP ? Previous project got all data from mysql from server.

    Ho could I trace what flash sees?
    var url:URLLoader = new URLLoader();
    url.addEventListener(Event.COMPLETE, xmlLoaded);
    url.load(new URLRequest("getDataFromDB.php"));
    private function xmlLoaded(event:Event):void {
                myXML = new XML(event.target.data);
                trace(myXML);
    I  got rid of that \n everywhere or move them around  and it's still the same error 1088 or 1085

  • Import from sl-script

    Hi,
    I was looking for a method to import a mapping or other objects from sql-script and found this nice sample:
    http://blogs.oracle.com/warehousebuilder/newsItems/viewFullItem$132
    unfortunately it seems to deal with an older version of OWB and I can't find such an import function in 10.2.x
    can somebody tell me how to import an easy sql-script into OWB ?
    Actually I am looking to build an easy DML-statement as a mapping, but can't find a method how to force the mapping performing only this particular operation like 'delete'.
    1 idea was to use lookup operator to do something easy like this:
    delete from tab_A
    wehre TAB_A.col1 in (select col2 from tab_B)
    But in OWB even easy things become pretty complicate and I can't find, how OWB must be driven to do such an easy operation.
    thanks for any hint, LaoDe

    Hi LaoDe,
    you may access source records with lookup operator - you can link fields from source table and from lookup operator to the same input group of any operator (for example FILTER or JOIN, etc.).
    In your case I recomend you to use splitter with three output groups:
    1) first group - for matched records for update TAB_A (condition - primary key of lookup table IS NOT NULL);
    2) second group - for not matched records for insert into TAB_ERR (condition - primary key of lookup table IS NULL);
    3) third group - for not matched records for delete from TAB_A (condition - primary key of lookup table IS NULL).
    So you should use TAB_A in this mapping three times (as source, as target for update, as target for delete).
    Don't forget to set target order loading (delete operation from TAB_A must be last).
    And maybe set Commit control to Correlated.
    Regards,
    Oleg

  • Urgent Problem in Executing perl script from shell script

    Hello,
    I've a shell script on one server (source) and a perl script on another (target).
    My perl script will check whether the directoryname, filename provided by shell script exists on the target server or not.
    My shell script is as follows:
    #! bin/bash
    cmd=`ssh user@target "perl /home/user/test_dir/validate_file.pl"`
    echo $cmd
    And my perl script uses a package CU_Functions.pm, which is in the same directory as the perl script on the target server.
    But when I invoke the perl script from shell script, I get the following error:
    Source:user> (db:ias10g12_mid_db) /home/user/perl
    $ sh /home/user/arcs/arcs_conn.sh
    user@target's password:
    Can't locate CU_Functions.pm in @INC (@INC contains: /local/perl-5.6.1/lib/5.6.1/i686-linux /local/perl-5.6.1/lib/5.6.1 /local/perl-5.6.1/lib/site_perl/5.6.1/i686-linux /local/perl-5.6.1/lib/site_perl/5.6.1 /local/perl-5.6.1/lib/site_perl .) at /home/user/test_dir/validate_file.pl line 13.
    BEGIN failed--compilation aborted at /home/user/test_dir/validate_file.pl line 13.
    Please let me know if I need to do any configurations prior to call the perl script.

    As for the Perl INC, I cannot recall the environment variable that sets that but the following example should work:
    ssh user@host "export ENV_VAR=/path/to/include/files:$ENV_VAR ; /full/path/to/script"

  • How to get the parameter from Java Script into the Parameter crystal Report

    Hi All,
    Crystal Report is integrated with Oracle 10g. I created the base SQL query for col1, col2, col3 and col4. Java Script pass parameter value (185) to Col1.
    My question is how to create crystal report to make Col1 as parameter and how to get the parameter value 185(Col1) from Java Script. Is there any additional code I need to include in the crystal report?
    FYI.
    Java script sends the right parameter value.There is no issue in java script.
    This is an automatic scheduled process when batch runs, Java script should pass the parameter value and the crystal report should get the value and produce the output report.

    Not sure if this is an application question or if you are trying to hook into Crystal Reports parameter UI? If the later then no option other than report design. If an application then I can move this to the Java Forums.
    If you are asking how to alter the parameters I suggest you remove the Java reference and post a new question so it's not confusing the issue.
    Please clarify?

  • I just downloaded and instaled firefox 4. Now, everytime I institute a command I get a po[p-up from Java script that tells me to uninstal set. I cannot go on untin I press ok and then I am good for one more command and it starts with the pop-up again.

    I'm not even sure if this is an extension or plug-in and all I can tell you is what I have already stated. I can only make one command at a time and after each one I get a pop-up from Java script that says uninstal set. I must depress ok to move on, but only for one more command and it starts over again. This also happened when I tried to instal firefox 4 a couple months ago and I deleted the program and went back to an earlier version.

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • How to print a Pdf from Java script

    Hi,
    I need to print a pdf from java script. In java script i have url of pdf. Is there any way to print pdf from java script?
    I am able to print word doc by ActiveX. is there any activeX or something else which do the same thing for pdf?
    Any help heartily esteemed to me.
    Thanks
    Kamlesh Sharma

    you are cross postin .. your thread has been answered in the jsp jstl forums

Maybe you are looking for

  • Remove un-necessary tags?

    Jdbc to file scenario, in this scenario we need to remove empty value tags from sender or receiver side before creating Xml document in third party. Is that possible? I know this is very dummy question but I am new in pi and sdn Ex: <test> <empdetail

  • ZSAPMV45A copy of sapmv45A giving run time error

    Hi ABAPERs I copied standard program sapmv45A (trx va31) to zsapmv45A to make few changes according to user requirement. I copied all screens as well as includes . Now when I execute this zprogram it gives me a run time error : The current ABAP progr

  • 10.4.9 update and CPU usage up %20, even during idle

    I experienced a general slowdown except with file transfers. I am about to give up and rollback to 10.4.8.

  • Event-related scrambling rule type - Code example?

    Hi experts, I am currently working on an SAP TDMS project which requires me to develop some event-related scrambling rules. As this type of rule doesn't have parameters I'm having trouble understanding how to access the data. I tried to find an examp

  • Account Based PA

    Hi, Could someone explain to me what are the configuration steps involved in setting up Account Based PA, and also whether we could implement both Cost based and Account Based PA and what would be the effects of it. Best Regards, Roville