There you go, the problem is system compatibility, if you´re working solely
for windows boxes then you should use windows type routing
c:\mycd\myapp\myfile and no mac routing. There´s the problem. Use windows
routing syntax and your file will open smoothly. And you also should
reference an .exe file in Windows, for Reader is something like acrd32.exe
(i don´t remember it exactly now).
So your opening line for the file should be
open "myfile.pdf" with "acrord32.exe" (this syntax is supposing you have the
pdf file and the reader app in the same folder as your director main movie)
open the moviepath&"\myappdir\mypdfdir\myfile.pdf" with the
moviepath&"\myreaderdir\acrord32.exe"
This would work fine for windows. You should obviously include the Windows
reader in the CD. And check the app .exe name. It´s something of the sort
but don´t know exactly and can´t check it right now.
Hope it helps.
When you´re authoring in Mac and distributing in Win, you should have a
system check On startmovie to figure out what sort of system you´re running
the movie on and, depending on that, use the correct routing and particular
syntaxes. There are a few commands that won´t work on windows boxes the same
as on Mac platform. But the main thing is always directory routing. That IS
different no matter what the command is. Also think that whenever you access
the system and issue a system command you should know what system you´re
running from or risk system freeze.
Hope its helpful
Diego Landro
----- Original Message -----
From: "Leila Singleton" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 29, 2005 1:34 PM
Subject: <lingo-l> Newbie with embarrassing PDF problem
> 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!]
>
>
[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!]