3 Replies Latest reply on Mar 17, 2011 12:23 AM by dal2111

    "Do Javascript" bug in CS5

    RPG KEYS

      Forgive me as I am a newbie here.

       

      I have been using Apple Scripts to fire JSX files in both CS3 and CS4 with quite a bit of success.

      .

      With the release of CS5 my same Apple Scripts seem to fail. 

      .

      .

      ---------Apple script-----------

       

      tell application "System Events" to set appName to name of first application process whose frontmost is true

      if appName contains "Adobe Photoshop CS5" then

       

      set appsFolder to get path to applications folder

      set psFolder to "/Applications/Adobe Photoshop CS5/Presets/Scripts/RPGkeys Scripts Only"

       

      tell application "Finder"

      set psFolder to (psFolder as POSIX file) as alias

      set myPath to (item "4.jsx" of psFolder) as alias

      end tell

       

      tell application "Adobe Photoshop CS5"

      do javascript myPath

      end tell

       

      end if

       

      -------end apple script----------

      .
      .
      The errors I get are:
      Picture 3.png
      and
      Picture 4.png
      .
      .
      .
      Bug #2.
      With this second Apple Script, the JSX file seems to fire but then I get an Apple Script error suggesting the script was not fired.
      but I was able to see the JSX results so I know it did.
      .
      .
      .
      -----Apple Script #2.--------------

      tell application "Adobe Photoshop CS5" to open file "/Applications/Adobe Photoshop CS5/Presets/Scripts/RPGkeys Scripts Only/10.jsx"

      end

      ------  End Apple Script #2.

      .
      .
      .
      .
      Picture 2.png

       

      Message was edited by: RPG KEYS