clarencecastillo / alfred-powerthesaurus

Search Powerthesaurus synonyms and antonyms from Alfred
MIT License
104 stars 14 forks source link

Make compatible with Alfred 3 #8

Closed lightlii closed 4 years ago

lightlii commented 4 years ago

As discussed in issue #6, the latest version on this plugin no longer works with Alfred 3 though (as has been mentioned) this version doesn't use any alfred 4-specific features so should be easily ported to v3.

Happy to make a PR but will need a little guidance about where to start. Thanks :)

clarencecastillo commented 4 years ago

Hi @bnjmnjns thanks for the interest to port this over to Alfred 3. Now, I'm not very sure if there's a better way to do this, but the following should work:

  1. From the root of this project folder, run the init.sh script. This should install the Python dependencies. Also, make sure you're using Python 2 (should come default with Mac OS).
  2. After that, from Alfred 3, under Workflows, create a new blank workflow.
  3. Copy over the details found in the metadata.json file when prompted.
  4. For the icon, use the icon.png file.
  5. Create the workflow objects with these configurations:
Screenshot 2020-04-30 at 11 33 32 PM

Script Filter pows:

Screenshot 2020-04-30 at 11 34 50 PM

Script Filter powa:

Screenshot 2020-04-30 at 11 35 02 PM

Copy to Clipboard:

Screenshot 2020-04-30 at 11 35 11 PM

Open URL:

Screenshot 2020-04-30 at 11 35 17 PM

When connecting both Script Filters to the Open URL object, enable the Command action modifier.

  1. Right click the workflow from the list and select Open in Finder.
  2. Copy the contents of the ./src folder inside the project over to the folder opened in step 6.
  3. Test if it works!
  4. If all is ok, export the workflow and name it something like Powerthesaurus-2.1.0-alrfred3.alfredworkflow or something.
clarencecastillo commented 4 years ago

Forgot to mention that in step 7, you should not copy over the info.plist. I'm guessing this file is like the manifest version of the workflow objects configuration. Wouldn't have to do step 5 if we can confirm this is actually compatible with Alfred 3.

clarencecastillo commented 4 years ago

Closing this for now. Please let me know if anyone else wants to pick this up and I'll re-open this issue.