Jump to content

SummerChill

Member
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SummerChill's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. @deanishe I understand, thank you for explaining the principle of the code to me.😀👍
  2. I just learned python, and I used the method provided below to get the contents of the clipboard in python. https://stackoverflow.com/questions/43860227/python-getting-and-setting-clipboard-data-with-subprocesses import subprocess def getClipboardData(): p = subprocess.Popen(['pbpaste'], stdout=subprocess.PIPE) retcode = p.wait() data = p.stdout.read() return data The problem is this code "retcode = p.wait()" I checked the official documentation of python, It says that "This will deadlock when using stdout=PIPE and/orstderr=PIPE and the child process generates enough output to a pipe such that it blocks waiting for the OS pipe buffer to accept more data. Use communicate() to avoid that." I don't know the use of this code, I finally deleted this line of code and there was no problem. I hope this problem I encountered can help others.
  3. Hi @deanishe: Here is my workflow file and my test data: Link: https://pan.baidu.com/s/1nRav43NhuTULNH2WxC5saQ password: vvmi In this file, there are 642 rows of data and 3 columns.These data are processed normally using workflow, but if one more row is added, the workflow will have no respose. The usage of the workflow is to copy the file in the text, and then enter "rowhandle + delimiter specified by yourself" in alfred. ============== I finally find out the reason.. because the pipe size is 64KB limit, In my python code, to get clipboard content function part , process.wait() is used. Thank you very much for your help, Best Wishes!
  4. I designed a workflow myself, mainly used to process the information output by the mysql client in the clipboard, separated by the passed in separator. When the text is relatively small, the work is very fast, but once it exceeds a certain line count, there is no response. My workflow design is as follows, mainly using "Run Script" components, which use pyhon code. Does the workflow in Alfred have restrictions on processing large amounts of text? what should I do? Other: masOS Catalina 10.15.7 alfred:4.2.1
  5. @vitor Thank you very much for confirming this matter for me, but I found it very difficult to remember using four modifier keys and other key combinations as shortcut keys. This troubles me .....😪😪
  6. +1 for the favicon. Even if the size of the icon is not the same, it is better than nothing,Setting up one by one takes a lot of time, With the icon, it is very obvious, The icons of many websites are the root directory followed by "/favicon.ico" @mareoraft Thank you very much for providing this api tool.
  7. @deanishe Thanks for your reply, I will use this method to handle characters that need to be escaped.
  8. I use snippet to help me remember many linux commands, such as setting ps -ef | grep {clipboard}, if the value of the clipboard contains points, for example, I run a shell called b.sh, "ps -ef | grep b.sh" will also filter out /bin/bash and other information. The correct one should be "b\ .sh". I hope sinppet can provide escape transform utility .
  9. Hi all: Do hotkey triggers must have one of the modifier keys? I want to open a url website with space and a number key , but I found that one of the four modifier keys must be set in the setting of the hotkey trigger. I know that an application called "spaceluncher" has this feature, but it has no way to specify the browser to open a url website. Hope to hear from you!
  10. @AndrewThank you very much for your reply, the method you provided is better, and I will change my processing way to the way you provided!
  11. 1. Alfred Version:4.2 2. MacOS Version: 10.15.7 3. Device: MacBook Pro (16-inch, 2019) 4. when I use Utilities --> Conditional this utility , Because I set a lot of conditions, when conditional utility is opened again, there is no way to continue add a new condition ,I can only press esc to exit. I hope this dialog box can add a scroll wheel to support sliding. 5. Now my way is to set two conditional utility, but this is not elegant.
×
×
  • Create New...