2 Replies Latest reply on May 20, 2009 5:29 PM by Kevin Parrott

    [AS] [CS3] transitioning code from 10.4.11 to 10.5.7 problem

    Kevin Parrott Level 2

      Hi

       

      I've struck a wee problem in transitioning one of my apps from CS3 on 10.4.11 to CS3 on 10.5.7, this snippet is the issue.

       

      This  works as intended using CS3 on 10.4.11 but not using CS3 on 10.5.7

       

      tell application "Finder"
          set _folders to (folders of desktop whose name begins with "A")
          set _FileSave to "58314"
          set aFolder to _folders
          set aPath to (aFolder as text)
          tell application "Adobe InDesign CS3"
              save document 1 to (choose file name default name _FileSave default location (aPath))
          end tell
      end tell

       


      The error thrown using CS3 on 10.5.7 is:

       

      Adobe InDesign CS3 got an error: Can’t make "Kev:Users:kevmac:Desktop:A58314:" into type alias.

       

      this area is then highlighted
      (choose file name default name _FileSave default location (aPath))

       

      how would I go about remedying this issue?

       

      cheers for
      Kev