on viewPDF_MacOSX pPDFpath
if "AppleScript" is not among the lines of the alternateLanguages then
answer "AppleScript must be installed."
exit to top
end if
put revMacFromUnixPath(pPDFpath) into pPDFpath --> THIS ASSUMES YOU'VE JUST DOWNLOADED A .PDF FILE
--> AND THE CREATOR AND FILETYPE AREN'T PROPERLY SET
put "tell application " "e& "Finder" & quote & cr into tScript
put "set the creator type of file " "e& pPDFpath "e& \
" to " "e& "CARO" "e& cr after tScript
put "set the file type of file " "e& pPDFpath "e& \
" to " "e& "PDF " "e& cr after tScript
put "end tell" after tScript
do tScript as Applescript
put the result into sErrorput "tell application " "e& "Finder" & quote & cr into tScript put "open file " "e& pPDFpath "e & cr after tScript put "end tell" after tScript do tScript as Applescript put the result into sError
end viewPDF_MacOSX
Jan Schenkel wrote:
--- Stephen Van Esch <[EMAIL PROTECTED]> wrote:
Folks:
I've searched through the archives and haven't found a satisfactory answer. Here's what I'd like to do:
When a user clicks a link, I'd like the PDF viewer (Acrobat or Preview) to launch and display a specified pdf located on the CD.
_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
