Aloha, Ken

Yes, that really does help.

Looks like his is an install-from-cd model. In my case I'll just push the user to Adobe's site if they need to install.

What about the app-->doc pre-binding? i.e. to prevent the dread "I don't know what application to use to open this document?"

I know on Mac it will be automatic if the user installs an application...but every now and then we still see the "I don't know the doc type... please choose an application..." in instances where the resource fork of a PDF gets wiped and the prebinding to .pdf extension is failing... rare, but it happens. You can tell because the doc.pdf has no unique-to-my-mama-app icon- (saved from an email attachment, downloaded from the net... i haven't figure out the exact recipe for this loss of creator type, when even the extension is correct. What about on Windows?

I guess we're asking is: how do we get Revolution to ensure the app-->doc binding for PDFs? On each platform?

Thanks
Sivakatirswami


On May 13, 2005, at 4:20 PM, Ken Ray wrote:

On 5/13/05 7:54 PM, "Sivakatirswami" <[EMAIL PROTECTED]> wrote:
Anyway, this would make a great "recipe" to add to others like XML
Demo... PDF's are here to stay and will continue to be a defacto
standard for data presentation. I think someone must already has this
totally wired and functional. Possibly can all be done in a single
script... if you have it, we would appreciate seeing that.

Here's Hugh Senior's script from the Scripter's Scrapbook that tests to see
if Acrobat is installed and offers to install it (note, it uses Hugh's
'smartAnswer' answer dialog replacement, but you can use one of your own). I
haven't tested it myself, but here it is:



on openPDF pFile if isAcrobatInstalled()<>"true" then askInstallAcrobat else ... (launch file pFile) -- insert your code here end openPDF

on askInstallAcrobat
put "Acrobat Reader is needed to preview and print this document. Do you
want to install the Acrobat Reader on your computer now?" into tStr
get smartAnswer("Adobe Acrobat Reader needs installing",tStr,"Yes","No")
if it="Yes" then installAcrobat
end askInstallAcrobat


on installAcrobat
  global g_Volume
  set the cursor to watch
  set the itemDel to "/"
  if the platform is "MacOS" then put g_Volume&"/MM pdf/Acrobat/Reader
Installer" into tAcroPath
  else put g_Volume&"/MM pdf/Acrobat/Acrd4enu.exe" into tAcroPath
  launch tAcroPath
end installAcrobat

function isAcrobatInstalled
get word 1 to -2 of
queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\sh ell\o
pen\command\")
return it<>""
end isAcrobatInstalled


HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to