On Thursday, Jul 3, 2003, at 04:01 Pacific/Auckland, Kurt Griffin wrote:
I'm trying to open a pdf file in lingo.
Lingo alone can't search a hard drive. You could use another xtra, likefileXtra3 (free, but a whole lot of effort to use for this)
Not too difficult:
thePathToPdf = the moviePath & “whatName.pdf”
-- or thePathToPdf = "C:\mypdffolder\whatName.pdf"
-- or thePathToPdf = "Macintosh HD:PDF Folder:whatName.pdf" --- Yes, I tend to add the extension even on a Mac!
fxObj = xtra(“FileXtra3”).new()
put fxObj.fx_FileOpenDocument(thePathToPdf)
fxObj = 0
This will open the PDF if Acrobat Reader ( or Acrobat ) is installed on your PC ( or macintosh if the file type has been correctly defined for OS 9)
I have used this numerous times on both PCs (98, NT, 2000, XP) and Macintosh (OS 8, OS 9 and OS X).
Tony Bray Multimedia Consultant & Tutor
"I have an inferiority complex but, its not a very good one."
[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!]
