If the path contains spaces, remember to enclose it in quotes if you try from the Run
dialog.
In Director, the way to go is with baShortFileName, which DOSifies the path &
eliminates spaces.
It may seem to work without baShortFileName on your system, but sooner or later it
will fail, trust me.
And yes, baFindApp returns the current app associated with pdf:s.
Which seems to be the latest pdf reading app installed, in my case the full Acrobat.
Bertil Flink
Creative Media
----- Original Message -----
From: "Mendelsohn, Michael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 10:36 PM
Subject: RE: <lingo-l> Open a specific page within a pdf
> Bertil, that's a great solution. I tried, and failed, to do it from the
> [Windows] run dialog:
>
> acrobat C:\Documents and
> Settings\mendelsohnm.CORP\Desktop\ADOBEuiquickref.pdf /A page=18
> -- didn't work
>
> In your routine below, just curious, why did you add in the
> baShortFileName?
> When you said baFindApp returned the path to the full version of Acrobat
> on your system, wouldn't baFindApp just return whatever's associated
> with "pdf" on anyone's system and just launch from there?
> ----------------------------------------------------
> e = baFindApp("pdf")
> -- "C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe"
> theApp = baShortFileName(e)
> -- "C:\PROGRA~1\Adobe\ACROBA~2.0\Reader\AcroRd32.exe"
> theDoc = baShortFileName("C:\Documents and
> Settings\mendelsohnm.CORP\Desktop\PDFOpenParams.pdf")
> -- "C:\DOCUME~1\MENDEL~1.COR\Desktop\PDFOPE~1.PDF"
> theArgs = " /A page=5 "
> open theApp & theArgs & theDoc
> ----------------------------------------------------
>
> Looks like if you take your method and add all the params in that pdf,
> you could do quite a bit!
>
> Thanks very much! And I'm relieved to know your day wasn't wasted.
> - Michael M.
>
>
>
> [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!]