3 Replies Latest reply on Jan 17, 2012 8:48 AM by WadeSaxton

    Need some Advice on Cleaning up script for Saveing and Emailing PDF

    WadeSaxton

      Title

      Need some Advice on Cleaning up script for Saveing and Emailing PDF

      Post

       Ive Made a Script That Takes me to another layour Coverts it to a PDF and Automaticlly emails it with out dialog , It all works perfectly how i want it to except it does it in the foreground instead of the back round , what i was Working on is just clicking a button and all this happens in the back round with no dialog , Is there a way to clean this script up and do that? Right now when i press the button it goes to that layout on my screen does everything and then takes me back to my original layout.

      Script is as follows

      Set Variable [$PDFPath; value: Get (Temporary Path) 7 "Filter Request.pdf"]

      Go to Layout [ here is my layout name that i want to go to and turn into a PDF ]

      Save Records as PDF [Restore; No dialog; :"$PDFPath"; Current Record ]

      Send Mail [Send via Email client ; No Dialog; To: where i have all my information]

      Go to Layout [Here is the layout Name that i was at orginally that it takes me back to]

       

       

      Theres got to be a way to do this in the back round where my screen dose not chage visually

       

       

      Any help would be apprecated

      Thank you