PDF question
James.Cass at sealedair.com
James.Cass at sealedair.com
Wed Sep 15 16:16:24 EDT 2004
Leston -
You should be able to use the "open file" command for Windows or Mac.
Check out the Transcript Dictionary under Help.
Not sure about Windows, but in MacOSX, the default app for PDFs is
"Preview". If you want the PDF to open with Acrobat instead, I'm not sure
if Revolution can force that (others chime in please). Two possibilities
are to set the default app for the client to be "Acrobat" for ALL PDFs. Or
you can build an AppleScript in your Rev code like this:
-- --Tested in a button and this worked-----
on mouseup
answer file "Choose file..."
put revMacFromUnixPath(it) into tMacFile
put "tell application " && quote & "Acrobat 6.0.2 Professional" & quote
& cr & \
"open" && quote & tMacFile & quote & cr & \
"end tell" into tAppleScriptText
do tAppleScriptText as AppleScript
end mouseup
-- -------
You'll have to feed it an appropriate AppleScript path where I have
"answer file 'Choose file...'" and the respective "it". Also, if your
users just have Acrobat Reader, you'll need to designate that in the "tell
application" part, instead of the full version.
Hope this helps...James
Leston Drake <lestond at lpsoftware.com>
Sent by: use-revolution-bounces at lists.runrev.com
09/15/04 02:37 PM
Please respond to How to use Revolution
To: use-revolution at lists.runrev.com
cc:
Subject: PDF question
Hi,
What would be the code to open a PDF file (Windows, and Mac) from within
Revolution?
TIA
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list