2 Replies Latest reply on Nov 18, 2013 11:22 AM by mkeatley17

    Return info from shell script?

    mkeatley17 Level 1

      I know you can use app.system() in PS to execute a shell script.  Is there a way to capture the information it's outputting?

       

      For example:

       

           var info = app.system('find /Users/ypml/Desktop -name \"*.jpg\"');

           alert(info);

       

       

      just returns '0', instead of the list of files that were found.  Any ideas how to get that information?

       

      thanks!