Preferences (Prefs) file (was: WP and Applescript)
- No apology needed, certainly. The cause of the crash, I'm guessing, was an interaction between Applescript's Launch command and an OnOpenDocument macro.
In any case, I had a backup Prefs file all ready to go. This is why I recommend that every user, if you haven't already done so:
1. Quit WP
2. Go to System Folder > Preferences > WordPerfect and trash your Preferences (USA) -- or e.g. Preferences (CAN) -- file. Archive your Library file while you're at it.
3. Start WP. It will take a little longer since it's building a new Prefs file.
4. Set all your preferences to your liking.
5. Quit WP again and archive your new Preferences file.
When a copy of WP is acting up, the first step I recommend doing is quitting and replacing the current Prefs file with a copy of the archive.
--- In email@example.com, "em315" <em315@...> wrote:
> Apologies for causing a crash that demolished your preference files - and a thousand thanks for your solution to this problem. As you know, all my knowledge of AppleScript comes from messing up other people's scripts while trying to adapt them, and it simply never occurred to me to use the Finder to open the document instead of telling WordPerfect to open it. I tried to solve the problem by using multiple "tells" - one to WP to start, another to open the file, etc. - but that simply compounded the problem.
> Your solution makes the whole process run more reliably and more quickly. I think I've now completed this project, and will post a link to it tomorrow. Basically, what it is a droplet/ application that converts any WP file to RTF, DOC, or PDF - and that converts WPMac 3.5e files to WPDOS 5.1 or 6.x format so that the cross-references, etc., can be used in Windows applications. It uses WPMac 3.5e for some functions, and the WP DOS-based ConvertPerfect for others, and a few other programs for still other purposes. I don't know if anyone can use it, but it was an enjoyable challenge to put it together.
> Thanks again for this elegant and efficient solution.
> --- In firstname.lastname@example.org, "John R" <johnrethorst@> wrote:
> > But I like to use the Finder to open a file. Straightforward and can work better than WP's first-generation support for AS. It will open a file using the file's creator unless you specify another application.
> > So what I'd do is:
> > set myFile to "SheepShaver:About WordPerfect 3.5 Enhanced" as alias
> > tell application "Finder" to open myFile
> > which opens the file without a new blank file in case WP is not running, brings the opened file to the front, and appears to have no interaction with the OnOpenDocument macro.