home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
acroweb.zip
/
ACRORUN.DOC
< prev
next >
Wrap
Text File
|
1995-05-09
|
2KB
|
50 lines
┌───────────────────────────────────────────────────────────────────────────┐
│ Date: 05-09-95, 21:32 Number: 17 │
│ From: Dave Looney Refer: 725 │
│ To: charles slater Recvd: No │
│ Subj: Web Explorer won't launch Conf: Comp.Os.Os2. │
└───────────────────────────────────────────────────────────────────────────┘
Charles,
cs> Has anyone tried to launch Adobe Acrobat Reader from Web
cs> Explorer.
I no of no way to start a windows program in enhanced mode with ATM
running from the command line. If Acrobat (win version) is run before
WebExplorer, a separate session with the wrong settings will still be
called.
A hack to allow calling of Acrobat via REXX scripts follows. A
desktop object for acroread.exe with proper settings and a unique
objectid is created by the first. A second script passes the temp
filespec from WebExplorer to the WPS object by updating the program
object parameters field, and then opening the WPS object.
Acrobat must be restarted each time a new file is viewed (slow), and
the REXX command window must remain open long enough for Acrobat to
load the file --- else WebExplorer deletes the temporary .PDF file on
return from the command ! If the command window is closed while the
file is still loaded, the temp file will not be deleted by WebExplorer,
which will see the file locked by another process.
ACROMAKE.CMD: Creates Adobe Acrobat Object. Edit this script with 'E' or
tedit to replace 'c:\acroread\acroread.exe' with whatever filespec is
appropriate for your system. Run this command to create the WPS object.
ACRORUN.CMD: Calls the WPS object to view .pdf files. You will need to
setup the mime type in your MAILCAP file. To create the association edit
your EXPLORE.INI file to create a mailcap file (I use 'usr_cap') and
associate the script with pdf images with an entry in the mailcap file
(e.g. 'image/pdf ; c:\acroread\acrorun.cmd %s', or something
on that order). Follow the directions and format given in the examples
in EXPLORE.INI and you'll be fine.
It works, but its ugly. Suggestions please.
Dave Looney
[Team OS/2]
DJLOON@delphi.com 75246.3364@compuserve.com