0 Replies Latest reply on May 20, 2014 7:36 AM by neeraj chaudhary

    Not able to click on menus using apple-script [mac]

    neeraj chaudhary Adobe Employee

      This is the code which i try to use . It just open the application and click on file menu , but not able to click on new...


      .......................................................................................... ......................................................................................... . ....................................

      launch application "/Applications/Adobe Photoshop CC/Adobe Photoshop CC.app"

      tell application "/Applications/Adobe Photoshop CC/Adobe Photoshop CC.app" to launch

       

      tell application "/Applications/Adobe Photoshop CC/Adobe Photoshop CC.app"

             activate

      end tell

       

      tell application "System Events" to tell process "Photoshop"

             set frontmost to true

             tell menu bar item "File" of menu bar 1

                     click

                     click menu item "New..." of menu 1

                   

                   

             end tell

      end tell


      .......................................................................................... ......................................................................................... . ......................................