- OnMyCommand
- wpd2html. The lipwpd folks have recently updated the Mac OS X download with a nice installer.
[robg adds: I haven't tested this one...]
|
|
|
As explained in this earlier, related hint, I have hundreds of WordPerfect for Windows files with contents that I don't need to edit, but often view. Using the previous hint, they can be viewed in Terminal, but they lose all their formatting. (They can also be opened with NeoOffice or AbiWord, but both of these are fairly slow when I just want to quickly view a file's contents.)
To solve the no formatting issue, I created a contextual menu item which converts a WordPerfect document to HTML, and then opens it in a browser window. Here's what you need to make it work:
[robg adds: I haven't tested this one...]
•
[14,481 views]
Hint Options
View WordPerfect for Windows files with formatting
I don't get it? I've copied the command using OMCedit. I've installed the wpd2html, which went by default to a folder "opt" at the root level of the HD. But, I execute the command on a word perfect document and it does not work. What am I missing?
View WordPerfect for Windows files with formatting
What results are you getting?
View WordPerfect for Windows files with formatting
Try MacLink Plus Deluxe from DataViz. Converts just about anything to just about anything. A tad expensive for what it does, but definitely worth considering.
View WordPerfect for Windows files with formatting
Though AbiWord is serving dutifully to let me put WordPerfect files into my InDesign documents, I'd wave very good karma in the direction of the person or company who finally realized that a WordPerfect import filter for InDesign CS2 would very much be a Good Thing.™
View WordPerfect for Windows files with formatting
None, that's the problem. I execute the command through the contextual menu on one of my student's word perfect papers and nothing happens at all. No web browser opens, no change to the file is made, just nothing. Do I need to put the wp2html file somewhere special? Right now it is in the default HD/opt/wpcnv/bin/ location that it installed to.
View WordPerfect for Windows files with formatting
If you open a terminal window and type
When I enter "cp .bash_profile .bash_profile.old", I get...
cp: .bash_profile: No such file or directory
When I enter "cp .bash_profile .bash_profile.old", I get...
Hi -- I didn't consider that possibility since I've already loaded lots of stuff into my .bash_profile -- but even if you get the "No such file or directory" message on step 3 you can actually proceed with step 4 -- when you type the command
make sure wpd2html is in your PATH
see the comment above...just forgot to change the title
View WordPerfect for Windows files with formatting
Please give more details on how to install this command. Even using OMCEdit I couldn't get this to work. Is a logout or reboot required? I relaunched Finder which was good enough for OMC. I've got 28 apps open at the moment so don't really want to logout or reboot if I don't have to.
Install using OMCEdit
Ok....the directions above were based on using a text editor to edit the OMC command file ( /yourusername/Library/Preferences/com.abracode.OnMyCommandCMPrefs.plist )
I've just removed my OMC commands and will try this with OMCEdit from scratch. 1) start OMCEdit 2) click New to add a new command 3) Enter whatever you want for the Command Name & Location (I prefer to set location to First Level since I use this so much :) ) 4) set Activation Mode to file5) set Execution Mode to Terminal -- I have tried this with the two Silent options and it doesn't work, for reasons unknown to me. 6) in the Command window enter the following: wpd2html __OBJ_PATH__ > ~/.wpdpreview.html; open ~/.wpdpreview.html7) click save It should work then....if it doesn't check your path via the comment above & troubleshoot via the one I am about to post...
Test wpd2html manually in Terminal
This will allow you to figure out whether the problem is with OnMyCommand or the wpd2html installation, by manually calling the commands.
View WordPerfect for Windows files with formatting
Thanks so much deef, you rock.
View WordPerfect for Windows files with formatting
I made sure the bash profile has the PATH and everything comes out correct with that. I also double checked the OMCedit that the execute mode was terminal. Now when I run it, terminal opens, but I get this as the result (with the "!" to "rmt" being in 3 separate columns.
troubleshooting
from the bits and pieces of XML in here it looks like something is up with OMC. Try the steps above to test wpd2html manually. If those work, I'd next try making sure you have latest versions of OMC and OMCEdit. Let me know what happens.
View WordPerfect for Windows files with formatting
Alright, I manually tested it and in Terminal it didn't give me a blank line, it actually printed out in the Terminal all of the html formatted text. So, I'm assuming if it would have redirected to safari (my default browser), it would have worked. Deef, you've been very gracious with your help, thank you so much.
View WordPerfect for Windows files with formatting
I just figured out the problem, it was the way I used OMCedit to create the command. Thanks for your patience Deef, this tip works awesome!!! Being in academia, I can never guarantee my student's paper formats.
speed gains
using an iMac G5 1.8 Ghz PPC, 768 MB ram
convert WordPerfect directly to RTF
If you are using Tiger or later, you can modify the On My Command to this:
/usr/local/bin/wpd2html __OBJ_PATH__ > ~/.Trash/wpdpreview.html; /usr/bin/textutil -convert rtf ~/.Trash/wpdpreview.html; open -a "TextEdit" ~/.Trash/wpdpreview.rtf N.B.: 1) I installed my custom wpd2html in /usr/local/bin; replace this path with whereever you've installed wpd2html. Just make sure you use the full path. 2) I put the preview files in the trash so I don't have to remember to trash them later. Here's the full command plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>COMMAND_LIST</key> <array> <dict> <key>ACTIVATION_MODE</key> <string>act_file</string> <key>CATEGORIES</key> <array> <string>Editor</string> </array> <key>COMMAND</key> <array> <string>/usr/local/bin/wpd2html </string> <string>__OBJ_PATH__</string> <string> > ~/.Trash/wpdpreview.html; /usr/bin/textutil -convert rtf ~/.Trash/wpdpreview.html; open -a "TextEdit" ~/.Trash/wpdpreview.rtf</string> </array> <key>EXECUTION_MODE</key> <string>exe_shell_script</string> <key>NAME</key> <string>View WordPerfect as RTF</string> <key>NOTES</key> <string>Requires wpd2html. Submitted by Kristofer Widholm</string> <key>OUTPUT_WINDOW_SETTINGS</key> <dict/> <key>REQUIRED_MAC_OS_MIN_VERSION</key> <string>10.1</string> <key>REQUIRED_OMC_VERSION</key> <string>1.3.1</string> <key>VERSION</key> <integer>1</integer> </dict> </array> <key>VERSION</key> <integer>2</integer> </dict> </plist>
convert WordPerfect directly to RTF
Hey, thanks for posting this. I had come up with more or less the same solution but hadn't posted. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.16 seconds |
|