PDF question

Ken Ray kray at sonsothunder.com
Wed Sep 15 22:23:24 EDT 2004


On 9/15/04 3:46 PM, "Roger.E.Eller at sealedair.com"
<Roger.E.Eller at sealedair.com> wrote:

> On 09/15/2004 at 04:16 PM, James Cass wrote:
>> 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, ...
> 
> James,
> 
> I must compliment you on your embedded AppleScript approach. In Windows, I
> normally use the shell command to open documents. By using shell, it lets
> the OS do the dirty work and simply uses whatever default application is
> defined in the registry for PDF documents. I like it because it is a
> one-liner too.  ;-)
> 
> get shell("C:\My Documents\myFavoritePDFdociment.pdf")

And in OS X, it's a one-liner as well:

  get shell("open /Users/kenray/documents/myDoc.pdf")

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list