Loading ...
Sorry, an error occurred while loading the content.

Finding WP via Applescript

Expand Messages
  • John Rethorst
    A newsgroup poster asked how to find WP on any machine, regardless of what the user s named it. Something like this is useful when you want to have WP do
    Message 1 of 1 , Apr 13, 2005
    • 0 Attachment
      A newsgroup poster asked how to find WP on any machine,
      regardless of what the user's named it. Something like this
      is useful when you want to have WP do something, and you're
      going to distribute the script:

      tell application "Finder"
      activate
      try
      display dialog "WordPerfect is located at " & return & return & ¬
      ((application file id "WPC2") as alias) as string buttons {"OK"} ¬
      default button 1 with icon note
      on error
      display dialog "I can't find WordPerfect." buttons {"OK"} ¬
      default button 1 with icon note
      end try
      end tell

      John R.
    Your message has been successfully submitted and would be delivered to recipients shortly.