On Monday, August 26, 2002, at 11:10 AM, Charlie Fiskeaux II wrote:

> I had to deal with a similar problem trying to open a PDF from a 
> projector
> on a Mac.  I still don't know why it didn't work using "@" and ":"

I don't believe relative paths ("@/" work with BAPI or FileIO.

The last char of the moviePath is *always* the path delimiter on your 
platform.

You can construct relative paths based on the location of Director 
(author) or your projector (runtiome) with the applicationPath; or your 
Director movie (moviePath, author/runtime).

In general it is a very bad idea to assume that a file is in a given 
location, if it's something the user might have made on his own, or 
moved -- so if it's in a documents folder someplace, use FileIO to get 
the location to the file first, then use an open or print command.

If it's on a CD from which your app is running, you already know its 
relative path. You also know its absolute path because the first item in 
either the applicationPath or the moviePath will be the CD's drive 
reference.


              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
        http://shop.osborne.com/cgi-bin/osborne/0072195622.html

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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