0 Replies Latest reply on Oct 29, 2009 4:28 AM by ademmler

    EventHandler Error while using AppleScript

    ademmler

      hi,

       

      I use AppleScript to launch Acrobat and run a preflight. Running this a script creates an "Not specfied EvnetHandler Error".

      I guess it come from resolving the filename and path. May somebody nows the "way" to define the preflight profile directly in the script.

       

      on run this_file

      try

      process_item(this_file)

      end try

      end run

       

      -- this sub-routine processes files

      on process_item(this_item)

      try

      tell application "Finder"

      set myPath to path to me

      end tell

      with timeout of 1 second

      tell application "Adobe Acrobat Pro"

      activate

      delay 1

      «event PRFLPRFL» this_item given «class PATH»:myPath

      end tell

      end timeout

      end try

      end process_item