At 06:56 2/26/2001, Magnus Ewald wrote:
>hi list
>There is something wrong with the following script...the pdf-file i wish to
>open olnly does so 3 out of 4 times, when it doesnt i get the error message
>that the file doesnt exist.(the file is located in the same folder as the
>movie playing)...any ideas?
>
>-----------------------------
>on mouseUp
>   open "test.pdf" with "c:\program\adobe\acrobat 4.0\acrobat\Acrobat.exe"
>end
>----------------------------

I'm surprised you get that much success out of it. Normally 'open' doesn't 
like spaces in the path/filename of either the application or the data 
file. You _might_ get better results if you include the full path to the 
data file: open the moviePath &"test.pdf" with . . .

If you're distributing this to other computers, chances are pretty slim 
that Acrobat will exist in the path you've supplied.

If you have the Buddy API Xtra, there are several ways you can make it 
work. With baShortFileName() you can convert long filenames to their 8.3 
equivalents to avoid the spaces. With baOpenFile() you can open a data file 
with its associated application without even knowing where the user has 
installed it. You can use baFindApp() to find the path to the associated 
application if you want.

baOpenFile(baShortFileName(the moviePath &"test.pdf"))



--
Mark A. Boyd
Keep-On-Learnin' :)


[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