10 Replies Latest reply: Jan 18, 2012 9:06 AM by Muppet Mark RSS

    Looking for an invisible script

    Tom Tomasko Community Member

      Hello,

       

      In Bridge, under Tools>InDesign> there is a script called Create InDesign Contact Sheet. This script does not do exactly what I would wish so I would like to  duplicate it and then modify it. But I cannot figure out where it is stored. Any ideas?

       

      Thanks,

       

      Tom

        • 1. Re: Looking for an invisible script
          Bob Stucky Adobe Employee

          PC: c:\program files\common files\adobe\Bridge CS4 Extensions

           

          Mac: /Library/Application Support/Adobe/Bridge CS4 Extensions

           

          Note - if you're using CS2,3,4,or 5, it will be:

           

          .../Bridge CS[your version here] Extensions

           

          warning - it's a pretty complex script (I wrote it). You are welcome to try to modify it.

           

          A question - what do you want it to do that it doesn't??

           

           

          Regards

           

          Bob

          • 2. Re: Looking for an invisible script
            Muppet Mark Community Member

            What version are you using I had this script in CS2 but it no longer exists CS5 there is the output module instead… It's a fair old piece of code thou… and not for the faint hearted…

            • 3. Re: Looking for an invisible script
              Bob Stucky Adobe Employee

              The Contact Sheet script was included in the Suite for CS2 and CS3. After CS3, Adobe decided not to include it going forward. I have maintained and upgraded the script for the newer suite versions.

               

              You can find CS4 and 5 versions at www.creativescripting.net

               

              I do have a CS5.5 version (same price as the CS5 version), but it's not posted to the site yet. Ask me for it via email if you need 5.5

               

              Regards

              • 4. Re: Looking for an invisible script
                Muppet Mark Community Member

                Bob, I have on several occasions pointed forum users to your updated versions… When people ask about making edits… I can only respond with 'sooner you than me'… and is it worth the time involved over buying the update… I know what I would do…

                • 5. Re: Looking for an invisible script
                  Bob Stucky Adobe Employee

                  That's the way I feel about it. The code for that beast is complex to say the least. I haven't updated the UI much because of the effect it would have on some of the most complex parts of the code (especially the validation).

                   

                  I did change the way rectangles were drawn in the CS5 version. It used to be "draw all rects and then place images", now it's "draw, place, repeat until done. That was done to help make the template feature more powerful. Regardless, the rectangle drawing part is now a bit easier to follow.

                   

                   

                  Thanks!

                   

                  Bob

                  • 6. Re: Looking for an invisible script
                    Tom Tomasko Community Member

                    Sorry, I should have said more. I am using CS3 on a Mac

                     

                    I would like to extract the metadata for a photo that tells me the dimensions in inches (script only has it in pixels), the dpi (script sometimes has many following zeros) and the color mode (can't find this in the script). Otherwise the script is very cool.

                     

                    I do not know the Bridge object model but I am familiar with ID.So if I cannot modify the script in Bridge I could use parts of it in ID.

                     

                    Thanks,

                     

                    Tom

                    • 7. Re: Looking for an invisible script
                      Bob Stucky Adobe Employee

                      Tom,

                       

                      I have to tell you that those changes are non-trivial. I've wanted to add the dimension feature myself, and haven't because of the amount of work involved. But then I'd have to do something generic (inches, mm, cm...), and come up with a way to do it in the existing UI with minor changes. It certainly can be done, but it won't be easy.

                       

                      I've got the CS2 and CS4 versions here. Not the CS3...

                       

                      I think the CS3 version included the metadata options in the ContactSheet script itself (if so, it would be around line 2900 (I don't have the exact line number).

                       

                      If it's not there, it's in WasScriptLibrary3.jsx

                       

                      The captions are compiled in Bridge, and then sent to ID via BridgeTalk. You'll probably want to do your magic where the captions are put together. See ContactSheet.parseCaption(). That's the function I call up at the top around line 95 (give or take) that generates the caption for the individual image based on the caption template the user creates in the UI.

                       

                      Hope that helps.

                       

                       

                      Bob

                      • 8. Re: Looking for an invisible script
                        Tom Tomasko Community Member

                        Bob,

                         

                        Yes, I can see that it is complex. I think I will just try to develop a dumbed-down version in ID that imports the link in a thumbnail and creates a caption that gives me the name of the link, its dimension in inches, its ppi, color mode and what would be nice though I have no idea how to ge it, how many layers (in Photoshop) the link has.

                         

                        Thanks for your help.

                         

                        Tom

                        • 9. Re: Looking for an invisible script
                          Bob Stucky Adobe Employee

                          Tom,

                           

                          Use BridgeTalk. Open the image in Ps, get the layer count (and anything else you might find interesting), and return it to ID.

                           

                          Regards

                          • 10. Re: Looking for an invisible script
                            Muppet Mark Community Member

                            Tom, if you already know the ID model better then you may have more success working from the other direction… You can get a list of selected files in bridge if you want 'bridgetalk' or a selection of files from file & folder methods… There is link XMP that you can parse and you may be able to look at graphic layer options too…