3 Replies Latest reply on Apr 7, 2009 2:26 PM by fazstp

    Can Director 11 Launch APP on a Mac?

      Hello,
      I'm trying to launch an self extracting executable type program using Director 11.
      Everything works just fine on the PC side, but on the Mac side when you click the button it does nothing. I'm really new to programming for the Mac side so any help would be great!
      Here is the code I'm trying to use;
      on mouseUp me
      cursor 0
      puppetsound 3, 0
      If the platform contains "windows" then
      open the moviePath & "APP_Installer.exe"
      else
      open the moviePath & "APP.pkg"
      end if
      end

      I have two different APP's, each specific for their platform, and both work just by clicking on them outside of director so i know they are working.

      Again any help would be great. :o)>
        • 1. Re: Can Director 11 Launch APP on a Mac?
          robdillon Most Valuable Participant

          A .pkg file is not an application on the Mac platform. Its a package that needs to be opened using Installer.app. You could try: open the moviePath & "APP.pkg" with "Installer.app". You don't need to specify a path to Installer.app. The Mac will know where it is.

          • 2. Re: Can Director 11 Launch APP on a Mac?
            Level 1

            Thanks a bunch Rob.

             

            I updated my Buddy API Xtra and that seemed to fix the problem.

            • 3. Re: Can Director 11 Launch APP on a Mac?
              fazstp Level 2

              Rob Dillon-KhrM2w wrote:

               

              You could try: open the moviePath & "APP.pkg" with "Installer.app". You don't need to specify a path to Installer.app. The Mac will know where it is.

               

              I didn't realise you could do that. Trying it on my system though caused some problems.

               

              I tried

              open _movie.path with "Finder.app"

               

              and not only did it fail to open the folder but it made Finder disappear when I tried to command-tab out of Director.

               

              open _movie.path with baFindApp( "MACS" )

               

              is more reliable.

               

              I tried

              open _movie.path & "Test.pkg" with "Installer.app"

               

              and Installer crashed as it tried to launch.

               

              open _movie.path & "Test.pkg" with baFindApp( "xins" )

               

              worked without a problem.