3 Replies Latest reply on Sep 30, 2011 5:00 AM by rafa@mediatech

    Mac application "Quits Unexpectedly"

    rafa@mediatech Level 1

      Hi everyone!

      I made a  simple splash screen in Director MX 2004 (PC). It has 2 buttons to launch two other application using buddy API. I am publishing the application as EXE and APP. The EXE version works fine, BUT, the APP (Mac) doesnt... Whenever I click on any of the buttons that use buddy API, I get the following error:

      Screen shot 2011-09-29 at 3.40.07 PM.png

       

      The Lingo I am using in Directo to open the application is:

       

       

      on mouseup me
        global gPlatform, gDelimiter
        
        if the platform contains "Windows" then
          mainFolder="bin"
          installName="AdobeAIRInstaller.exe"
          myTempPath=_movie.path&mainFolder&gDelimiter&gDelimiter&installName
          baOpenFile (myTempPath,"normal")
          
        else if the platform contains "Macintosh" then
          mainFolder="bin"
          installName="AdobeAIR.dmg"
          myTempPath=_movie.path&mainFolder&gDelimiter&gDelimiter&installName
          baOpenFile (myTempPath,"normal")
        end if
        cursor 0
        
      end 
      on mouseEnter me
        cursor 280
      
      end
      
      on mouseLeave me
        cursor -1
      
      end
      

       

      I do have the correct text at the end of my "xtrainfo.txt"

       

       

      [#namePPC:"Buddy API Xtra", #nameW32:"budapi.x32", #type:#default]
      

       

      And I DO have the .rsrc and .data files in the correct location. Both files publish with NO issues.... only when I run the Mac version do I encounter the error promtp...

       

      Any idea why this would be happening?

       

      Thank you for your time,

      Rafael.

        • 1. Re: Mac application "Quits Unexpectedly"
          Sean_Wilson Adobe Community Professional

          I have no idea why you are adding your gDelimiter variable twice in a row.

           

          Call a Buddy handler from some other code to verify that it's available to your Mac projector. However, if the xtra weren't there you should see a script error, not a quit.

          1 person found this helpful
          • 2. Re: Mac application "Quits Unexpectedly"
            Dean Utian Adobe Community Professional

            As Sean pointed out, the gDelimiter appearing twice is a problem.

             

            Here's how I would simplify your script


            global gPlatform, gDelimiter


            on mouseup me 
              if the platform contains "Windows" then
                mainFolder="bin"
                installName="AdobeAIRInstaller.exe"
               
              else if the platform contains "Macintosh" then
                mainFolder="bin"
                installName="AdobeAIR.dmg"
              end if


                myTempPath=_movie.path & mainFolder & gDelimiter & installName
                baOpenFile (myTempPath,"normal")
                cursor 0
            end


            on mouseEnter me
              cursor 280
            end


            on mouseLeave me
              cursor -1
            end

             


            Dean

            1 person found this helpful
            • 3. Re: Mac application "Quits Unexpectedly"
              rafa@mediatech Level 1

              Sean/Dean,

              Yes, I noticed the "gDelimiter" twice issue after I posted this... I used to have another folder in the path, when I removed the folder, I left one of the "gDelimiter" in place.

               

              I ended up figuring out what the "Quit" issue was... The

              .rsrc and .data files where NOT named appropriately as called on my "xtraninfo.txt". After I renamed the line on the "xtraninfo.txt" (and fixing the "gDelimiter" redundancy), everything works. As walways, thank you for your time on this matter.

               

              Rafa.