Greetings!

I am in dire need of assistance! I am working on an interactive CD-ROM and I have the supposedly simple task of creating a button that, when clicked, opens a PDF file (included on the CD) into Acrobat Reader 5.0 (also included on the CD). I have tried everything and cannot concoct a behavior script that will work -- most of the scripts open Reader but will not open my PDF. I don't know how to fix this because I am a beginner and am woefully ignorant when it comes to programming/Lingo.

The project is being designed in Director MX 2004 on a Mac running OSX. The projector I am creating is destined for a Windows OS (version immaterial). I flirted with the idea of using the Buddy API Xtra to simply find Reader on the user's computer, but I instead opted to just include Reader on the CD since our particular target market may not even have Acrobat Reader on their computers -- hard to believe, I know, but true!

To elucidate my problem, I have included a list of the scripts I have tried (below -- don't laugh), as well as what goes wrong when the CD-ROM is tested on a PC operating on Windows. Let it be noted that the rest of the project -- complete with sound, URL links and QuickTime Movies and Virtual Reality panoramas (VRs) -- functions perfectly in Windows. Let it also be noted that, once I fixed the application name in Scripts 1&2 from "Acrobat Reader 5.0" to "acrord32.exe," Acrobat opened from the CD...the PDF, however, which resides in the same folder, cannot be opened. That seems odd to me; why can it find the Acrobat .exe and not my file? They're in the same place!!! HELP!!!!!!!

Thank you so much for your time. I have wasted much of my own trying to figure this simple operation out. My apologies for the "novel-esque" message!

Cordially,
Leila
________________________________________________________
****PLEASE NOTE: All error messages pop up in Acrobat Reader after it unsuccessfully attempts to open my PDF.****

1) NOTHING HAPPENS: when button is clicked, neither the app nor the file opens. The projector just sits there.
on MouseUp
        open "lccc_app.pdf" with "Acrobat Reader 5.0"
        --      Syntax  open {whichDocument with} whichApplication
end

2) NOTHING HAPPENS: when button is clicked, neither the app nor the file opens. The projector just sits there.
on mouseUp
open the moviePath&"@:reader:lccc_app.pdf" with the moviePath&"@:reader:Acrobat Reader 5.0"
  -- Syntax  open {whichDocument with} whichApplication
end

3) FILE DOESN'T EXIST: Reader opens (Reader referred to incorrectly in previous scripts), but PDF does not.
on mouseUp
open the moviePath&"@:reader:lccc_app.pdf" with the moviePath&"@:reader:acrord32.exe"
  -- Syntax  open {whichDocument with} whichApplication
end

4) FILE PATH DOESN'T EXIST: Reader opens. PDF does not. Error message pops up in Reader.
on mouseUp
  open "@:reader:lccc_app.pdf" with "@:reader:acrord32.exe"
  -- Syntax  open {whichDocument with} whichApplication
end

5) FILE NAME, DIRECTORY NAME OR FILE LABEL DOESN'T EXIST: Reader opens. PDF does not.
on mouseUp
  open "@reader:lccc_app.pdf" with "@reader:acrord32.exe"
  -- Syntax  open {whichDocument with} whichApplication
end

6) FILE DOESN'T EXIST: Reader opens. PDF does not.
on mouseUp
  if the platform contains "Windows" then
open the moviePath&"@:reader:lccc_app.pdf" with the moviePath&"@:reader:acrord32.exe"
  end if
  end if
end

7) NOTHING HAPPENS: when button is clicked, neither the app nor the file opens. The projector just sits there.
on mouseUp
  open "reader:lccc_app.pdf" with "reader:acrord32.exe"
  -- Syntax  open {whichDocument with} whichApplication
end

8) FILE DOESN'T EXIST: Reader opens. PDF does not.
on mouseUp
open the moviePath&"reader:lccc_app.pdf" with the moviePath&"reader:acrord32.exe"
end

9) FILE PATH DOESN'T EXIST: Reader opens. PDF does not. Tried sticking PDF in a different folder in this version just for kicks.
on mouseUp
  open "@:reader:app:lccc_app.pdf" with "@:reader:acrord32.exe"
  -- Syntax  open {whichDocument with} whichApplication
end
________________________________________________________

[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