Jump to content

mcskrzypczak

Member
  • Posts

    64
  • Joined

  • Last visited

  • Days Won

    5

mcskrzypczak last won the day on June 12 2023

mcskrzypczak had the most liked content!

1 Follower

Contact Methods

  • Twitter
    mcskrzypczak

Profile Information

  • Location
    Slupsk, POLAND

Recent Profile Visitors

1,752 profile views

mcskrzypczak's Achievements

Member

Member (4/5)

36

Reputation

  1. Hey DJay! Thanks for using my workflow! Sorry to hear it not working properly tho… I had same problem before. In my case turns out I had installed python3 in 2 folders – /usr/bin/ and /usr/local/bin. The latter had Pillow installed but not the first one. And that first one was used by Alfred. If you can, open Alfred preferences, go to Workflows, find Get App Icon workflow, select element like on the attached screenshot, then turn on debugging with Only selected object(s) selected. Then run your workflow and look for any errors that might appear there.
  2. And once again the workflow got updated to version 2.2 (see the first post for download and changelist)
  3. Once more updated as some bugs were squished (see the first post for download).
  4. I've finally updated the action (see the first post for download). The new version require python3 and Pillow installed.
  5. Version 1.6 is here! Once more I rewrote it (this time in Python) and now it supports multiple file/folder names copying! Download from here (link also in first post).
  6. We can use Alfred on all our Macs. I have two – one for personal use and one for working. I would appreciate possibility to disable workflows on certain Mac so I would have enabled those used on personal Mac and others on my work Mac. There is such possibility in Keyboard Maestro app and I am using it and thought that Alfred could also include such option.
  7. Okay, so I replaced XML and use JSON instead and same thing happens. When Alfred filters results is unchecked and I type city name with diacritical letter, like mentioned before "Gdańsk", the workflow shows result that it couldn't find any cities. On the other hand, when Alfred filters results is checked I got results for "Gdańsk". However, when I type the name of the city that is not in the base like "London" the workflow behaves like there would be some problem, error (but debug window didn't show anything). In that case it should display result that it couldn't find any cities with such name. As I mentioned in first post, Python script itself works without any errors. It has set coding to UTF-8 also. I have set the LC_CTYPE var to pl_PL.UTF-8 in Workflow Environment Variables but without any success. Maybe that is Alfred bug when using diacritical letters? Here is the script (to try it from Terminal you have to comment all that indicates to wdata variable as it depends on Alfred's own variables): link. And here is updated workflow: link.
  8. + 1 I want that feature to be added too. As well as ability to use scripts inside snippets.
  9. One of new Alfred 3 elements is Write Text File. Let say I want to use it in some more complicated workflow that prints some text to the file and then is invoked in other part of the workflow. My question is, how can I refer to that file later? How to properly use Write Text File element? I know there is option to give absolute file path as well as writing to workflow's folder that is synched. But I want to know, what's the best method to use such file when it is saved to workflow's data folder (not synched, local)? I know there was a script for Alfred 2 to find such folder but it was quite long. Is there any easier methods in Alfred 3 to find that data folder and saved there mentioned text file? Maybe some variable?
  10. I have a weird problem with my workflow. It does not show any results in Alfred but works when run from Terminal. But let me explain more on that topic. My workflow's job is to list Polish cities from webpage (get the list from JSON results from page) and download detailed weather forecast as png file. The main script is written in Python. The thing is, Polish cites also uses diacritical letters (ą, ć, ę, ł, ń, ó, ś, ź, ż). And when I want to use my workflow with city that contain one or more of mentioned letters – say <code>Gdańsk</code> the workflow itself won't work – just shows the result prepared for situation when no results find. However, when I debug the script from Terminal: python script.py "Gdańsk" I got all of the XML code for results: <?xml version="1.0"?><items> <item> <arg>http://m.meteo.pl/warszawa/weather;Warszawa</arg> <title>Ostatni → Warszawa</title> <subtitle>Prognoza 60h. Wciśnij Cmd dla prognozy 84h.</subtitle> <subtitle mod="cmd">Prognoza 84h.</subtitle> </item> <item autocomplete="Gdańsk"> <arg>http://m.meteo.pl/gdansk/weather;Gdańsk</arg> <title>Gdańsk</title> <subtitle>Prognoza 60h. Wciśnij Cmd dla prognozy 84h.</subtitle> <subtitle mod="cmd">Prognoza 84h.</subtitle> </item> <item autocomplete="Nowy Dwór Gdański"> <arg>http://m.meteo.pl/nowy-dwor-gdanski/weather;Nowy Dwór Gdański</arg> <title>Nowy Dwór Gdański</title> <subtitle>Prognoza 60h. Wciśnij Cmd dla prognozy 84h.</subtitle> <subtitle mod="cmd">Prognoza 84h.</subtitle> </item> <item autocomplete="Pruszcz Gdański"> <arg>http://m.meteo.pl/pruszcz-gdanski/weather;Pruszcz Gdański</arg> <title>Pruszcz Gdański</title> <subtitle>Prognoza 60h. Wciśnij Cmd dla prognozy 84h.</subtitle> <subtitle mod="cmd">Prognoza 84h.</subtitle> </item> <item autocomplete="Starogard Gdański"> <arg>http://m.meteo.pl/starogard-gdanski/weather;Starogard Gdański</arg> <title>Starogard Gdański</title> <subtitle>Prognoza 60h. Wciśnij Cmd dla prognozy 84h.</subtitle> <subtitle mod="cmd">Prognoza 84h.</subtitle> </item> </items> Notice that first item group is previously used city. But all the other show results with name "Gdańsk". And that is behavior, when the option in Script Filter – Alfred filters results is unchecked. When I check that, all seems to work fine. So why am I bothering you at all? Because I rather want to uncheck that option – it affects situations when I want to not display any results (in some cases). So I want to ask you for help with that problem. Maybe there is some encoding problem in Alfred 3 itself? The workflow can be downloaded here. Just copy and paste "Gdańsk" to debug it.
  11. Thanks for fix gingerbeardman! I've also updated direct download link in first post.
  12. Hi thailoving, I have updated workflow's download link in first post. Also I've checked with with Alfred 3 and seems to work fine.
×
×
  • Create New...