2 Replies Latest reply on Feb 27, 2008 12:46 PM by McFazstp

    Buddiy API cross platform woes

    IPete2
      Hi,

      We are producing a cross platform CD-ROM and need to launch PDFs. We have purchased Buddy API and have the Windows version working fine. When we publish the Mac version it refuses to launch Acrobat, even though I can see the api being included during the publish process.

      I have installed the cross platform 'flattened' versions of the api into the relevant directories and indeed the Mac does NOT error saying it can't see the api.

      So it must be down to my code I think, here it is - any advise is very welcome - thanks. The PDF's are all kept inside the 'MEDIA' folder btw.


      on mouseUp me

      tDelimiter = the last char of the moviePath

      tFile = _movie.path & "MEDIA" & tDelimiter & "Recovery.pdf"

      OK = baOpenFile(tFile, "normal")

      end


      P.
        • 1. Re: Buddiy API cross platform woes
          Level 7
          The baOpenFile command has a built in method of telling you what the
          problem is. It will return an error code when it runs. As a test,
          adjust your code like this, then try it on the Mac:

          on mouseUp me

          tDelimiter = the last char of the moviePath
          tFile = _movie.path & "MEDIA" & tDelimiter & "Recovery.pdf"
          OK = baOpenFile(tFile, "normal")
          alert string(OK)

          end

          That alert will be a number. Check out the help file for BuddyAPI, on
          the baOpenFile page and it will tell you what all the numbers mean.

          My guess is that it will be "file not found" or something similar, and
          if that is the case, make sure that the media folder is visible to the
          Mac operating system. Making x-plat CDs is a tricky procedure and often
          a folder will only appear on one partition and not the other. If that
          is the case, then re-master the CD and make sure that the appropriate
          folders are available to both partitions.
          • 2. Re: Buddiy API cross platform woes
            McFazstp Level 1
            When you say it refuses to launch Acrobat do you mean it doesn't open any app or it opens Preview instead?