Jump to content

Search the Community

Showing results for tags 'python3'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
    • Workflow Advanced Tips & Tricks
    • Workflow Automation Tasks
  • Alfred Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 7 results

  1. easy-timestamp-workflow It's an Alfred workflow to make timestamp or date conversion easy and rapid. Usage Alfred Keyword: ts timestamp -> formatted date support timestamp in seconds and milliseconds date -> timestamp support all formats you get from easy-timestamp get current timestamp by now support adding/subtracting time string formatted like 1d, 9h, 9m, 7s, 1d1h2m4s Demo Install Download directly easy-timestamp or Github Releases. If you have any question or idea, please feel free to reach out to me.
  2. alfred-smartify-quotes is a very simple Workflow I made to meet a very personal need. It takes selected text and transforms straight quotes into curly, smart, typographical quotes. It also converts two hyphens into an em dash. For me, the replacement text is pasted straight back over the selected text,. You can change that behaviour in the Copy to Clipboard block. I hope someone else finds it useful. Direct download. Jeremy
  3. I expected that /usr/bin/python would be python3, but it turns out that (on my system) it's Python 2.7.18. A script that I'd like to use in a File Action requires python3, and selecting python from this list causes errors in the console. Is it possible to tell Alfred to use python3 to run the script?
  4. Hi! I've put together a workflow to interact with Obsidian. It relies heavily on some Python libraries like NLTK and Gensim, and I've done my best to package them, following advice from @deanishe found elsewhere on this forum. However, I get an error when I try to run it on a different computer: ``` import regex._regex as _regex "ModuleNotFoundError:" No module named ‘regex._regex’ ``` For what I've gathered, that may have something to do with the fact that Regex (required by NLTK) comes with a precompiled binary that may not play well with the other system or its python interpreter. All my scripts have a shebang pointing to `/usr/bin/python3` and I'm comfortable with it as a minimum requirement, but is there any hope of properly packaging Regex with the workflow?
  5. Hey, this has been addressed a few times but being something of a simpleton that's making it up as he goes along I haven't been able to find an answer that I understand. I'm trying to create a workflow that will run a python command that deletes all messages from bots in a Slack channel. To do this I've installed 'slack-cleaner' through Python, and it works fine within Terminal. The problem is that when I try to run that in a script in an Alfred workflow, it says "line 1: slack-cleaner: command not found". I looked through a few posts on here and found a response from @deanishe that suggested I need to install the slack-cleaner library into my workflow. So, I right-clicked the workflow, opened in terminal and used the command he suggested in this other thread which was pip3 install --target . slack-cleaner. That seemed to work as I was then able to see the library in my workflow, but it still says it can't find the slack-cleaner command when I run it. I am very mildly knowledgeable, verging on idiocy so it's very likely I have no idea what I'm doing and haven't understood the suggestions correctly, but any advice would be greatly appreciated. Thanks! If it helps, the code I'm trying to run is below, with essential info redacted. slack-cleaner --token <TOKEN> --message --group <GROUPNAME> --bot --perform --as_user
  6. Alfred-Workflow installs with pip for python3, but on usage it calls modules that don't exist in python3. Is there a way around this, or do scripts need to be run with python 2? Will this change in the future? Very new to this, trying to setup my own simple workflow.
  7. Hello. I try to write my first script filter plugin, but I've encountered a unexpected trouble with Unicode (non-ASCII) characters. This is a simplest example I could invent: xmloutput = """ <?xml version="1.0" encoding="utf-8" ?> <items> <item arg="testitem"> <title>FooBar</title> <subtitle>foo bar is a test item</subtitle> <icon>icon.png</icon> </item> </items> """ print(xmloutput) (I call it from script filter as /usr/local/bin/python3 outputtest.py.) It works fine until I want to add some non-ASCII characters: xmloutput = """ <?xml version="1.0" encoding="utf-8" ?> <items> <item arg="testitem"> <title>FooBær</title> <subtitle>foo bær is a «test item»</subtitle> <icon>icon.png</icon> </item> </items> """ print(xmloutput) Then it fails: [ERROR: alfred.workflow.input.scriptfilter] Code 1: Traceback (most recent call last): File "outputtest.py", line 12, in <module> print(xmloutput) UnicodeEncodeError: 'ascii' codec can't encode character '\xe6' in position 88: ordinal not in range(128) Why it happens? I can't believe that Alfred do not use Unicode in input/output. I think the root of problem in something else, but I can't find out where is it.
  • Create New...