Gary,
I think I know this one!!
> I want to open MS Word files from Rev. This can be done with the Launch
> command while opening the program; however, once
> Word is open Launch does not work. Geoff Cannon kindly provided a an excellent
> way to do this on the Mac using Apple
> Events; however, I need top be able to do it on a WinTel system as well. Any
> suggestions? -- Thanks - Gary
Below is an example of a script I used to open a pdf file in Windows. First
it determines where your stack is so that we will know the relative path to
the document. Then it performs a query to find the location of the type
application you are looking for, in this case it is Acrobat. finally it
launches the requested application and the document that you have specified
in your script (or from an ask/answer command).
on mouseUp
global myDirectory
get the filename of this stack -- this finds relative path
set the itemdelimiter to "/"
delete the last item of it
put it into myDirectory
global tAcrobatdocumentPath
global tAcrobatReaderPath
put myDirectory & "/yourdocument.pdf" into tAcrobatdocumentPath
put word 1 to -2 of
queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\shell\
open\command\") into tAcrobatReaderPath
get shell ( tAcrobatReaderPath && quote & tAcrobatdocumentPath & quote)
end mouseUp
This script will launch the specified document "yourdocument.pdf" with the
specified application "Acrobat"
I hope that is what you were looking for...
Mike Brown
Cyber-NY Interactive
212-475-2721
1-888-70-CYBER
[EMAIL PROTECTED]
> From: Gary Aitcheson <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Mon, 06 Aug 2001 15:06:11 -0500
> To: [EMAIL PROTECTED]
> Subject: Working with WinTel Files
>
> I want to open MS Word files from Rev. This can be done with the Launch
> command while opening the program; however, once
> Word is open Launch does not work. Geoff Cannon kindly provided a an excellent
> way to do this on the Mac using Apple
> Events; however, I need top be able to do it on a WinTel system as well. Any
> suggestions? -- Thanks - Gary
>
>
>
>