> I am developing a CD for the PC platform. I need to create a
> behavior that
> will open a PDF file from the CD (ie I know the path to the
> PDF). So far I
> have only managed to get the file to 'save' to the users HD
> ... but cannot
> get it to open.

Jason,

There are 3 pieces to this puzzle:

1 - finding path to the PDF on your CD
2 - finding the path to the Acrobat reader on a given user's machine
3 - opening the Reader with the PDF

if you ABSOLUTELY know 1 & 2, you can simply use the built-in Director
functionality

 open xxx with yyy

to do what you desire. That said, you will often know only item 2 with
moderate certainty. The reason for this is that the user may or may not have
installed the Acrobat reader and they could install it anywhere. To find
this information you will need to look in the system Registry. Additionally,
they may put your CD into a drive that may or may not be one that you can
guess the path to.

All in all it's a conundrum that is made simpler by using an Xtra to
determine these seeming unknowables. There are several Xtras available to
help you with this, MasterApp is one such Xtra. The MasterApp Xtra contains
a function specifically designed for that purpose named

  mappLocateExecutable()

It returns the path to the executable registered to handle the document at
the file path specified. MasterApp gives you broad control over other
applications from your Director presentation. The most common application
for MasterApp is building connectivity between your Director piece and
various Web browsers and Web pages. However, MasterApp is much more powerful
than this basic use, including dozens of methods for launching, monitoring
and controlling external applications.

Price: $299.00
Platforms: 32-bit Windows, Win 3.1, Mac
Director versions supported: Director 4,5,6,7,8
Author: Glenn Picher

MasterApp is a commercial Xtra sold by UpdateStage. You find out more
information, download an evaluation version or purchase the Xtra here:

 http://www.updatestage.com/xtras/xtrahome.html

I hope that this information is useful.

Cheers,

Al Hospers
Marketing Associate
UpdateStage
alhospers<at>updatestage<dot>com
http://www.updatestage.com



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to