Yes, the order of the arguments (of which the document itself is the second) is obviously important.
Come to think of it, switches are usually the first arguments, aren't they? I may be wrong, but I can live with that... (-; Bertil Flink Creative Media ----- Original Message ----- From: "Mendelsohn, Michael" <[EMAIL PROTECTED]> To: "Lingo programming discussion list" <[email protected]> Sent: Thursday, May 19, 2005 6:43 PM Subject: RE: <lingo-l> Open pdf to specific page > That's exactly it, Bertil. Thanks again. The only thing I think that's > a bit odd about the command line switch is that the switch and its > params comes follows the executable, not the document. It just seems > odd to me that the computer reads in the path to the exe and go to page > 5, presumably before the path to the document is read in. But, as long > as it works, I'll leave well enough alone. > > - MM > > (baFindApp("pdf") gves the path to Acrobat, if installed) > > <Message window test> > > theApp = baShortFileName(baFindApp("pdf")) > > theDoc = baShortFileName("pathtopdfdocument\mydoc.pdf") > > theArgs = " /A page=5 " > > open theApp & theArgs & theDoc > > > [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!]
