Need help in automating batch placing of images on spreads

My workflow is :
I have jpeg files (mostly 100+).
They are the size of 2 pages (e.g. 1 spread per jpeg file)
I need to place them on either even or odd page (aligned Top-Left).
Currently I’m doing this work manually.
Need help to automate this.
Thanks and regards.

As I mentioned earlier I have very little experience with JavaScript.
I also copied the ImageCatalog script to a new file and read it atleast five times, and tried to wrap my head around the flow of execution.
The comments were really helpful in the process.
I proritized what i want to achive with my script and started deleting unwanted code. I also tested it frequently.
Here is my script as it stands right now.
function Init(){
        var myFilteredFiles;
        //Make certain that user interaction (display of dialogs, etc.) is turned on.
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
        myExtensions = [".jpg", ".jpeg"]
        //Display the folder browser.
        var myFolder = Folder.selectDialog("Select the folder containing the images", "");
        //Get the path to the folder containing the files you want to place.
        if(myFolder != null){
                    if(File.fs == "Macintosh"){
                        myFilteredFiles = myMacOSFileFilter(myFolder);
                    else{
                        myFilteredFiles = myWinOSFileFilter(myFolder);
                    if(myFilteredFiles.length != 0){
                            myPlaceImages(myFilteredFiles);
                            alert("Done!");
// call the initial function
Init();
//Windows version of the file filter.
function myWinOSFileFilter(myFolder){
          var myFiles = new Array;
          var myFilteredFiles = new Array;
          for(myExtensionCounter = 0; myExtensionCounter < myExtensions.length; myExtensionCounter++){
                    myExtension = myExtensions[myExtensionCounter];
        myFiles = myFolder.getFiles("*"+ myExtension);
                    if(myFiles.length != 0){
                              for(var myFileCounter = 0; myFileCounter < myFiles.length; myFileCounter++){
                                        myFilteredFiles.push(myFiles[myFileCounter]);
          return myFilteredFiles;
function myMacOSFileFilter(myFolder){
          var myFilteredFiles = myFolder.getFiles(myFileFilter);
          return myFilteredFiles;
//Mac OS version of file filter
//Have to provide a separate version because not all Mac OS users use file extensions
//and/or file extensions are sometimes hidden by the Finder.
function myFileFilter(myFile){
          var myFileType = myFile.type;
          switch (myFileType){
                    case "JPEG":
        return true;
                              break;
                    default:
                    for(var myCounter = 0; myCounter<myExtensions.length; myCounter++){
                              var myExtension = myExtensions[myCounter];
                              if(myFile.name.indexOf(myExtension)>-1){
                                        return true;
                                        break;
          return false;
function myPlaceImages(myFiles){
        var myDocument = app.documents.item(0);
        var myDocumentPreferences = myDocument.documentPreferences;        
        var myNumberOfFiles = myFiles.length;
        alert(myNumberOfFiles);
        var myNumberOfPages = (myNumberOfFiles * 2) + 1;
        myDocumentPreferences.pagesPerDocument = myNumberOfPages;       
        var myPage = myDocument.pages.item(0);
        var myPages = myDocument.pages;
        for (myCounter = myDocument.pages.length-1; myCounter >= 0; myCounter--){ 
            if(myCounter%2 == 1){
                 myPage = myPages.item(myCounter);
                var myLiveWidth = myDocumentPreferences.pageWidth
                var myLiveHeight = myDocumentPreferences.pageHeight
                myY1 = 0
                myY2 = myLiveHeight
                myX1 = 0
                myX2 = myLiveWidth * 2
                myRectangle = myPage.rectangles.add(myDocument.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:myDocument.swatches.item("None")}); 
        for (myCounter = 0; myCounter < myNumberOfFiles; myCounter++){ 
            myFile = myFiles[myCounter]; 
            //alert(myFile);           
            myRectangle = myDocument.rectangles.item(myCounter);
            myRectangle.place(File(myFile));
                    for (var myCounter = myDocument.rectangles.length-1; myCounter >= 0;myCounter--){ 
                              if (myDocument.rectangles.item(myCounter).contentType == ContentType.unassigned){
                                        myDocument.rectangles.item(myCounter).remove();
                              else{
                                        //As soon as you encounter a rectangle with content, exit the loop.
                                        break;

Similar Messages

  • Need help on: Automation of Daily Data Load

    Hi all,
    We need to start our Daily Data load from DAC by Manually. So right now my client has asked us to do Automation of Daily Data Load.
    Starting the Daily Data Load Manually(DAC) Process: First we have to check whether the ASCP Plans updated or not
    Right now we are checking whether the plans got updated or not, so for this we are using following query
    SELECT LTrim(RTrim (compile_designator)),data_completion_date,TO_CHAR(data_completion_date ,'DD-MON-YYYY HH24:MI:SS') FROM apps.msc_plans
    WHERE LTrim(RTrim (compile_designator))
    in( 'Plan01,'Plan02','Plan03','Paln04') ORDER BY 2 desc
    from this query we will able to see whether all the plans got updated or not. From all the Four Plans, two plans will get updated as of Sysdate(mm/dd/yyy) ,Timestamp(hh:mm:ss)(for example i.e. Plan01 08/25/2011 11:20:08 PM, Plan02 08/25/2011 11:45:06 PM) and rest two plans get updated on Sysdate+1(mm/dd/yyy), Timestamp(hh:mm:ss)(for example i.e. Plan03 08/26/2011 12:20:05 AM, Plan04 08/26/2011 12:45:08 AM)
    So after checking the plans , we start the Daily Load in DAC manually.
    May I know how should I convert my above sql query which I am using for checking the plans updated or not in informatica, so as to automate the Daily Load in informatica level..
    Need help.

    You cannot replicate what is done with DAC at Informatica level. DAC is a separate Oracle product that orchestrates and manages the ETL load (including Index management, etc). The reason Oracle developed DAC is because it allows you to manage a large scale DW load for a large ERP system. As suggested, you can invoke the DAC execution plan via a command but you cannot replicate everything the DAC does at Informatica level. If this helps, please mark as helpful.

  • Need help with inserting frame with scrolling images

    Hi,
        Im a beginner and need help putting a single box/frame with scrolling images in the middle of my layout, so that when viewed in browser, the header and footer remain in place, while the images and info in the frame in the centre of the page can be scrolled down/up?

    You can use an iframe element <iframe src="" width="" height="" scrolling="yes"> though if you're concerned with crawlers you should avoid frames as much as possible. 

  • Need Help with Problem Batch Rotating Images in iPhoto 8!

    Hello, recently I have been having a lot of problems with pic files becoming unusable once I batch rotate them in iPhoto 8, so now I want to rotate the pictures 180º before I import them into iPhoto. Is there a free program out there that can help me do this without losing any picture quality. I REALLY don't want to have to individually open up over 2000 photos in Preview and individually rotate them that way.
    Does this same batch rotating problem occur in Aperture 1.5.6?
    TIA for ANY and ALL help!!!

    You can create an Automator workflow application to batch rotate a folder of photos 180 degrees. You need to download and install GraphicConverter first. You can use it in the demo mode by first opening it before you drop your folder of photos onto the application .
    When you install GC select the option to install the GC Automator workflows. Open Automator and put in the following elements: 1 - Get Finder Items; 2 - Rotate. You can select to use Quicktime or the internal algorithm. Save it as an application.
    This all must be done outside of iPhoto and then import into iPhoto.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.
    Message was edited by: Old Toad

  • Need help with a Table with one image in it.

    I am attempting to design a site in Dreamweaver CS 4, I have Master Suite.  I would like to use a header Logo already created in photoshop and made web ready in .jpg format.
    I  am looking at inserting a single cell table across the top of page set at a percentage so it appears uniform on more browsers.
    The only problem is that there is no way to make (link) the picture to the tables scalibility feature. The table scales up or down, but
    the picture remains the set size of the image.
    Do I need to attempt to create this some other way?
    I like the essence of the above, I created it in Flash and would like to use it or something close in the design and creation of my web site.
    A Veteran, Thank You for any help or suggestions.      Ken

    Images are static.  They don't resize.
    Put image in a table cell or CSS division with a compatible Background-Color to fill in the empty regions on super wide displays.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Need help with automating text import/pasting/macro between Photoshop and Excel

    Hey everyone,
    I'm working on a large project now that seems extremely daunting, but I was hoping there would be some way to automate it using either Actions or some sort of macro program.  Here's the gist:
    I've created a template with 24 differently sized text boxes in the photoshop image file.  Each text feild has unique text that needs to be be pasted into it, which has been compiled in excel.  This wouldn't be too dificult to do, except I have to recreate this image and all 24 text fields aproximately 350 times.  None of the text boxes will remain static through all 350 images as text is the title, description, and demographic ratings/percentages/data for the topic of each image.  I did something similar manually last year and it took me about 3, non-stop 18 hour days to complete it.
    (the test template)
    Can anyone think of any way I could automate this process?  I'm thinking some sort of macro that copies cell 1 in excel, switches to photoshop, opens layer 1, pastes, switches back to excel, goes to cell 2, copies, back to photoshop, layer 2, pastes, etc, etc, then does a 'save as' in photoshop and revets to PS layer 1, EX cell 1 (on tab 2) to start the process all over again.  I have no idea if this would work or if there is another way to do this but I would really appreciate any help or advice you guys could give.  I don't have really any expreience using PS Actions or macro programs/scripts, so I may be over my head or overlooking a really simple way to do this.  If there's a way to do it, I'm persistent enough to figure it out and get it working. Doesn't really matter how it gets done, I just need to fill those text boxes as best as I can and as quickly as I can.
    Any help you all could give is really appreciated.

    Have you read up on the Variables support in Photoshop?

  • Need Help with HTML Batch Processing

    Hi,
    New to this forum so be kind
    I am trying to work out a way to batch process html's.
    The html template is used in our eBay listings.
    All the information I want to change is the same.
    Eg in my template I have the number "0234" it appears for 6 times, sometimes in the text sometimes in part of the image title I am loading.
    I then have an excel sheet listing all my codes that i need to make htmls for - 0234, 0235, 0236 etc etc...
    I use say 10 templates depending on what number im doing.
    So next cell to the codes (in excel) I list what template I would need.
    Now I know in dreamweaver I can search for "0234" in my html & replace to create my new html. But I have 1000's to do, and I am sure I am doing it a long way manually.
    Is it possible to use the excel sheet and dreamweaver together to process all these changes in a scripted batch system? and even load which html to use?
    Or maybe use a different software?
    Any advice would be much appreciated.
    Kind Regards

    The closest to this I have done was in using Photoshop and text files to create hundreds of photoshop designed banners that all had different copy/type on them but based on a template and, the same idea but with pharmacy magnets using InDesign and Excel.
    The idea is that you put text boxes in the document and specify a variable for them and then equate those boxes either to variables in a text file or to column headers in an Excel file.
    Google on "Data Merging" and perhaps you'll find something.
    I'm not aware of a way to do this with html documents but if you approach the html as just a text file, then conceptually, you should be able to create a template whereby you assign a variable to certain divs or input boxes or whatever. Then, you might have to re-process the entire lot to remove the code needed to distinguish a field as dynamic but that would easier to remove.
    I'll watch this post as well because massive replacements are always something to know about!

  • Need help with adding formatted text and images to Crystal Report?

    Here's my scenario:
    I have a customer statement that's generated as a crystal report and that has a placeholder for advertisement. The advertisement is mixture of formatted text and images. Until now we only had one advertisement that was always used on the report. The new requirement is that we would have a pool of hundreds of advertisements and would need to display one specific advertisement on the customer statement based on various marketing criteria. They key is that the advertisement content will be determined programmatically and cannot be hardcoded into the report. I'm using Crystal2008 with .net SDK.
    Here are the solutions I thought of, but I'm still rather lost and would appreciate your help/opinion.
    1) Pass HTML or RTF to the report
    Not really sure if this is possible and how to get it done. Also how would I pass in images? Would display formatting be reliable when exporting to PDF?
    2) Create each add as a subreport and append it programatically
    I actually have this working, but I only know how to append a new section to the end of the report and then load the subreport to the section. I have no other controll of the placement. Is there a way to dynamically load a subreport to a predefined section in the main report? How about adding a dummy subreport in the main report as a placeholder and then replacing it with a different subreport? How could I do this?
    3) Pass an Image to the report
    I would create each advertisement as an image and then would somehow add the image to the report. How would I load the image and control the placement? Could I somehow define a placeholder for the image in the main report-maybe a dummy image to be replaced?
    Thank you.

    Hello Pavel,
    I would got the third way.
    You can use dynamic images in your report.
    Just by changing the URL to the image the image can be changed.
    Please see the [Crystal Manual|http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf] and search for images.
    or directly here
    [Setting a Dynamic Graphic Location Path on an Image Object|https://boc.sdn.sap.com/node/506]
    [Dynamic image and HTTP://|https://boc.sdn.sap.com/node/3646]
    [codesample for .NET|https://boc.sdn.sap.com/node/6000]
    Please also use
    [Crystal Reports 2008 SDK Documentation and Sample Code|https://boc.sdn.sap.com/developer/library/CR2008SDK]
    [Crystal Reports 2008 .NET SDK Tutorial Samples|https://boc.sdn.sap.com/node/6203]
    Hope this helps
    Falk

  • Need help in automating text from xml into illustrator

    I have seen some examples of automation script for filling text from xml into illustrator, need some help in this matter.
    Need script (currently working in mac OS)

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • Please help - I need help working with a "curved" scanned image!

    Hello --
    I've been looking here for a while and finally got around to registering because I have a question. I'm sure I have this posted in the wrong place, so don't jump me for that - I'm just not sure WHERE I should post a question / plea for help.
    I have a shape (kind of a wavy 3/4" stripe) that I need to reproduce in photoshop. I was able to take the original and scan it into my computer. Upon scanning, though, the color it no longer solid but actually looks a quite a bit speckled, and the edges of this stripe tend to not be 'crisp" and it need to redfine the edges. I need to repaint the stripe, and it has to remain the same 3/4" diameter all through it's length.
    If anyone can suggest a way that I can take this scanned image and redefine the edges so I'll have a "new" crisp, solid colored stripe, that I can keep the same 3/4" width and then will be able to highlight it and repaint it would be appreciated. I tried highlighting the shape and applying a thick "stroke" around the edge but this just made it worse -- kind of like using a pen on a piece of paper on top of glass -- almost impossible to write or draw smooth! It's for a small model airplane decal, so the edge needs to be sharp and crisp.
    Thanks for any help in advance!
    --Henry

    ¨Hi Henry,
    I'd use the Pen tool and trace around the shape in order to create a Vector Path or a Vector Shape. But, you'd need to study the black art of Bezier curves first.

  • Need Help on how to use Adobe Image reader

    Hi,
    I Needed to know what important features are available using the latest Adobe Image reader & does it help really in making Good Quality webpages

    I'd recommend you start here: Getting Started with Adobe Connect - Adobe Connect User Community

  • Need Help positioning a graphic over an image.

    Trying to position an arched graphic over an image in the header of this site.  The photoshop image provided shows the three separate components. 1. The white content is one image that houses the main header images and the other three images lower on the page. In CSS it is the #inner-content. 2. #main-content is the teal color  3.  The arch image, which sits inside #arch-container.  The CSS is shown here, but when it is displayed in a browser...the #inner-content sits below the arch image instead of up underneath it.  I have tried many variations within the CSS and can't find the solution. Help!
    @charset "utf-8";
        margin: 0px;
        padding: 0px;
    #page-wrap {
        width: 960px;
        margin-right: auto;
        margin-left: auto;
    #page-wrap #main-content {
        width: 960px;
        height: 1200px;
        background-color: #445d64;
        float: left;
    #page-wrap #main-content #inner-content {
        height: 1175px;
        width: 800px;
        background-image: url(images/inner-container-bg.jpg);
        float: left;
        margin-left: 80px;
        clear: both;
    #page-wrap #arch-container {
        width: 960px;
        height: 200px;
        z-index: 10;
        float: left;
        position: relative;
    #page-wrap #arch-container #arch-img {
        background-repeat: no-repeat;
        float: right;
        width: 960px;
        position: absolute;

    You need to bear with me a little more, age is rapidly setting in making it harder for me to understand what you are on about.
    Which code did I supply?
    Or do you mean the link?
    If you are referring to the link, I do not see a 170px gap from the top.
    Maybe someone more from this world would like to help you.
    Happy New Year!

  • Need help with Automating Printer and LPR installation

    I work for someone who has a need for automating the print installation of LPR print port to mac laptops. Obviously this will need to cover anything OS X 10.3 and above. All of this needs to be done command line via a batch file of sorts.
    I am a windows and Linux guy, however I just bought a Mac and starting to like the new Leopard OS and the capabilities of boot camp.
    What I need:
    1) how to install LPR port to the laptop
    2) installing a printer from a some sort of cab file with correct port and drivers. (in windows we use print migrator, however the cab files we use for windows will obviously not work with different port types and drivers)
    3) finally some clean up type script that will clean up any temp files I had to create or such.
    I kind of need this soon so if anyone knows how or could point me in the right direction. It would be greatly appreciated.

    If you force restart the computer on the freeze up, or force quit the printer adding window, does the printer appear in the print and scan system preference?   In other words, did the printer successfully install?  (is it possible that the setup part of the install failed, but the actual install worked?)
    If so, you might be able to set the configurations yourself.
    Open up the print and scan system preference.  Double click on the printer.
    When the printer queue window opens up, you should be able to click on the printer setup button.
    Go through all the tabs and set things up the way you like.
    HTH
    -Graham

  • Need help for automated import/export of comments in XFDF

    Hi !
    I created 2 Buttons on my toolbar. One for send comments and one for receive comments! If I click the send button, a window opens and ask for the directory where I want to save the xfdf file.
    How can i realize, that I can save the xfdf-file automatic in a folder, which is specified in the javascript file? The same for import!
    In web I found:
    cExec: "this.importAnXFDF({bAnnotations: true, cPath: /c/PDFTest/Demo.xfdf});",     and
    cExec: "this.exportAsXFDF({bAnnotations: true, cPath: /c/PDFTest/Demo.xfdf});",
    but if click the button...nothing happens. How can I implement this??
    This is the sourcecode of the created config.js file
    var strtest= "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" + // 0
    "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" + // 1
    "FFE4DBD4FF8F9CC8FFD2D3E0FFDBDCD9FFC7E8F9FFC7E8F9FF999FC6FFEEEDEDFFFEFFFFFFB6C8E 7FFB2D0E3FFF8F8F8FFFFFFFFFFC2A47BFFD2BC9EFFD0B898FFEEEDED" + // 2
    "FFB0AFCDFFE7F2FBFFD1D1D0FFE4E4E4FFC3DAE7FFC7E8F9FF7674A5FFB3C9DCFFAAC4E8FF5D8FC 8FFB9D5E6FFD3C9D8FFFEFEFEFFC6AA84FFECE6DFFFFEFDFAFFD2C9C8" + // 3
    "FFC3DAE7FFB2BFCBFFA4B3C9FF9CB8D9FF7199B3FFA4B3C9FF8A8BBBFF9993A9FFAC9DA7FFA5989 2FF769BC4FFC6C2B8FFEEEEEFFFC2A47BFFF5F1ECFFAA8657FFD8D6D6" + // 4
    "FFDAD6E1FFDAD6E1FFCACFD3FF88899AFFB6AAB3FFD8D8D8FFE1E1E1FFE9E9E9FFEEEEEFFFE7E4E 5FF31312DFFDCDCDDFFFCFCFCFFF3F3F3FFCDBCA7FFC6C2B8FFE9E9E9" + // 5
    "FFEEE9E4FFE4E3EBFFE9E9E9FFE1E1E1FF9C966AFFDFDFDFFFD8D6D6FF8E3F43FF99987CFFCFBD6 FFFB7A289FFE9E9E9FFFFFFFFFFFFFFFFFFF8F8F8FFC6C2B8FFE6E6E6" + // 6
    "FFF9F9F9FFFDFDFDFFFEFEFEFFFFFFFFFFF9F9F9FFB0B0A5FFC5AE62FFE8D98FFF512C25FF845A4 3FFD2CC9FFFF3EAB8FFA79D79FF8C8674FFEBE5B6FFD6D7D7FFFBFBFB" + // 7
    "FFFBFBFBFFFEFEFEFFFFFFFFFFFFFFFFFFFDFDFDFFE4E4E4FF9F8940FFBDB689FFCFBD6FFFFBE89 1FFFDF4C0FFCFC384FFF3EAB8FFEBE5B6FFEDD26EFFDDDDDDFFFEFEFE" + // 8
    "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0C1C3FF616D6BFF6E7B79FF5D676 8FF616665FFDADBDBFFD8D6D6FFD9D9D9FFE6E6E6FFFBFBFBFFFFFFFF" + // 9
    "FFFDFDFDFFF8F8F8FFFFFFFFFFFFFFFFFFFFFFFFFFF6F6F6FF616D6BFF6E7B79FF5B6562FF525A5 8FF616D6BFF6B7574FFFBFBFBFFFDFDFDFFFFFFFFFFFFFFFFFFFFFFFF" + // 10
    "FFF5F5F5FF686C6CFF6E7B79FF6D7877FF6E7B79FF646F6EFF616D6BFF464B47FF969999FF383E3 CFF616D6BFF6B7574FF48504DFFFAFAFAFFFFFFFFFFFFFFFFFFFFFFFF" + // 11
    "FFFFFFFFFFFCFCFCFFECECECFFD5D6D6FFBABCBEFFC0C1C3FFDCDCDDFFEEEEEFFFFAFAFAFFF8F8F 8FFE9E9E9FF4D5653FF646F6EFF464B47FFF9F9F9FFFFFFFFFFFFFFFF" + // 12
    "FFFFFFFFFFFFFFFFFFF8F8F8FFE6E6E6FFDFDFDFFFDDDDDDFFE9E9E9FFF8F8F8FFFFFFFFFFFDFDF DFFF5F5F5FFB0B4B7FF5B6562FF565F5CFFF3F3F3FFFFFFFFFFFFFFFF" + // 13
    "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFEFEFEFFECECECFF525A58FFC0C1C3FFFEFEFEFFFFFFFF" + // 14
    "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFEFEFEFFF3F3F3FF868A8CFFFDFDFDFFFFFFFF" + // 15
    "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFEFEFEFFE9E9E9FFF8F8F8FFFFFFFF" + // 16
    "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" + // 17
    "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" + // 18
    "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"; // 19
    var pos = 0;
    var iconStreamObj = {
        read: function readMyIcon(nBytes){
            var t = "";
            console.println("request for " +nBytes);
            while (pos < nBytes){
                t = t+strtest;
                pos += strtest.length;
            return t;
        width:17,
        height:20
    // Create a toolbutton using the icon I loaded above
    app.addToolButton
        cName: "receive comments",
        oIcon: iconStreamObj,
        cExec: "this.importAnXFDF({bAnnotations: true });",
        cTooltext: "Press button for receiving comments!",
        nPos: 0
    var pos = 0;
    var iconStreamObj = {
        read: function readMyIcon(nBytes){
            var t = "";
            console.println("request for " +nBytes);
            while (pos < nBytes){
                t = t+strtest;
                pos += strtest.length;
            return t;
        width:17,
        height:20
    // Create a toolbutton using the icon I loaded above
    app.addToolButton
        cName: "send comments",
        oIcon: iconStreamObj,
        cExec: "this.exportAsXFDF({bAnnotations: true });",
        cTooltext: "Press button for sending comments!",
        nPos: 0
    Please help!!  Thanks

    Doc is the type of object, so you would not use Doc.exportAsXFDF.
    In most cases you can use "this", but be careful as "this" will not always refer to the current document, it will refer to whatever object you are currently working within the parameters of.
    The security restrictions are quite clear, but I will sum up just to be sure.  You CAN specify the cPath parameter in the following conditions:
    Batch Process
    Running the code manually from the console
    Executing exportAsXFDF through an OLE call via the JSObject from an external application written in C/C++/C#/VB.NET/etc.
    Those are the ONLY times that you can specify the cPath parameter in the exportAsXFDF call.  If you try to specify it in any other instance, the call will fail and nothing will be exported.  This means that you CAN NOT specify the cPath parameter from a document-level script, folder-level script, menu item call, etc.

  • Need help with adding lightbox feature to images pulled from .js

    Hello,
    I've been attempting to add a lightbox to separate images (no group) in a responsive one page portfolio template. Unfortunately I'm not savy with this topic.
    The template came with a hover action to apply what I would believe to be a light box image but no other documentation on how to add it to the images. I've looked everywhere.
    The portfolio gallery is built in .js Here is some code The image code you see is just copied over and over to add images.
    BTW - Lightbox mxp only allows you to add to an image when clicked on in the properties. These images are pulled from .js
    Here is a link to the site:
    http://wswdesign.com
    Please help!
    <ul class="portfoliofilter">
      <li class="filter active" data-filter="design branding media web">All</li>
          <li class="filter" data-filter="design">PRINT Design</li>
          <li class="filter" data-filter="branding">Branding</li>
          <li class="filter" data-filter="media">Digital Media</li>
          <li class="filter" data-filter="web">WEB DESIGN</li>
      <ul class="portfolio">
      <li class="item design">
      <div class="portfolioitem">
      <img src="img/print1.jpg">
      <div class="portfoliohover">
      <div class="info">
      <h1>+</h1>
      <h5>trade show graphics</h5>
      <h6><b class="light-gray">Celguard / Membrana</b></h6>
      </div>
      </div>
      </div>
      </li>

    You might want to correct your HTML errors first.
    [Invalid] Markup Validation of http://wswdesign.com/ - W3C Markup Validator
    Your document contains links to jQuery scripts.  But I don't see any lightbox in there.  It appears to be using jQuery's core library as well as  scripts for carousel and scrolling/show & hide features.
    Nancy O.

Maybe you are looking for

  • How to Retrive data from db using EJB in WebDynpro

    hi... i m using EJB's for backend connection in WebDynpro .in which i m able to store data in sapdb .for this i followed one tutorial which i have mentioned bellow which works perfectly.Now in the same Tutorial i want to retrive the data from databas

  • Primitives and garbage collector

    Hi everyone, Do primitives get garbage collected? Is it recommended to set all references to null in a classes finalize method? Thanks

  • BO Universe/webi

    Dear all, Please   help in following issues. we  have concepts like  calculated keffigure,restricted keyfigure,exceptions,condtions,Customer exits  in sap bw . how this can be achived in universe and webi. Thanks and Regards suresh.p

  • Possibility to show caller's name when calling to ...

    Hello, when i call from skype to mobile number, receiver sees me as unknown. How can i change it to my name or phone number?

  • What can I do if I can't remover the answers to my security questions?

    After updating, I am now asked my security questions in order to purchase from the App Store. I can't remember what I put...any ideas/help?