7 Replies Latest reply on Aug 27, 2011 8:20 AM by Lynda-S

    Adobe EMailer Extension (Thunderbird)

    Lynda-S Level 4

      I posted this on another forum for Photoshop:

       

      http://forums.adobe.com/thread/863869?

       

      Refer to that thread but can anyone help me take the Emailer Extension and get it to work with Thunderbird.

       

      I understand nothing about scripting so I need help!

       

      Thanks!

        • 1. Re: Adobe EMailer Extension (Thunderbird)
          Paul Riggott Level 6

          I have installed Thunderbird just to do a test for you.

          Install the AdobeEmailer and change the emailer.sendMailViaWindowsScriptHost function in Adobe EMailer.jsx  to:-

          Please check what folder Thunderbird is installed in as you may have to amend the code to suit...

          N.B. On Windows 7 64 bit systems you have to change both Adobe EMailer.jsx scripts in the following folders:-

           

          C:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Plug-ins\Panels\Adobe Emailer

          C:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Plug-ins\Panels\Adobe Emailer

           

          emailer.sendMailViaWindowsScriptHost = function(messageConfig){
          var thunder = new File("/c/Program Files (x86)/Mozilla Thunderbird/Thunderbird.exe");
          if(!thunder.exists){
            alert("Unable to find Thunderbird\rYou will need to modify Line 268 of Adobe Emailer.jsx\rand correct the path");
            return;
              }
          var cmd ="\"C:\\Program Files (x86)\\Mozilla Thunderbird\\Thunderbird\" -compose attachment='"
          for (var i = 0; i < messageConfig.filesToAttach.length; i++) {
          cmd += File( messageConfig.filesToAttach[i]).fsName;
          if(i < messageConfig.filesToAttach.length-1) cmd += ",";
          var f = new File(Folder.desktop +  "/detail.txt");
          }
          cmd += "'"
          app.system(cmd);
          }
          
          • 2. Re: Adobe EMailer Extension (Thunderbird)
            Lynda-S Level 4

            Thank You! Thank You! THANK YOU!

             

            It Works!

             

            You are my hero!

             

            Here is your favorite candy bar =>

            • 3. Re: Adobe EMailer Extension (Thunderbird)
              JJMack Most Valuable Participant

              I tried your code and it did not work at all. However I know your good and it was reported that your code worked.  I made the change using wordpad. I then edited the original jsx file again this time using the Adobe ExtendScript Toolkit CS5 made the same changes and saved it. This time it worked.  Seems the scripts for panels must be edited and saved with Adobe ExtendScript Toolkit CS5 ????

              • 4. Re: Adobe EMailer Extension (Thunderbird)
                Paul Riggott Level 6

                The choice of editor is very important, it needs to be an editor that produces plain text, Wordpad and Word will embed control characters into the output file and stop it working.

                1 person found this helpful
                • 5. Re: Adobe EMailer Extension (Thunderbird)
                  Michael L Hale Level 5

                  Wordpad saves files as Rich Text Format by default. So the file will have the extra control characters Paul spoke about. However you can use Wordpad or any other text editor that supports plain text. When you use Wordpad just make sure you change the save type to plain text in the save dialog. Wordpad will warn that you will lose formatting with text format but it does save as plain text. And at least with the Windows XP version of Wordpad there is an option to always save as plain text so you can even avoid that warning dialog.

                  1 person found this helpful
                  • 7. Re: Adobe EMailer Extension (Thunderbird)
                    Lynda-S Level 4

                    Thats great to see that support for Thunderbird was added (and for Outlook Express)!