Jump to content

xilopaint

Member
  • Content Count

    525
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by xilopaint

  1. Well, I don't necessarily need a filepath. If it gives me a copy of the .icns or even better a .png the problem is solved.
  2. The one in the question, not in the answers.
  3. Hey, don't you think the one-line code mentioned in the SO question you linked is more suitable to my needs? EDIT: btw, is this line Swift or Objective-C?
  4. Thank you for this post! I purchased Soulver just after reading it.
  5. Oh, that looks good! I just don't know anything of Swift or Objective-C (I'm not even sure which of the two languages that code snippet refers to). If anyone can submit a PR I will be grateful. Otherwise I will have to learn how to implement this.
  6. Soulver 3 has been released with automation features including a command-line interface and an Alfred Workflow. The workflow uses the Soulver CLI, which is located inside Soulver’s bundle and symlinked to /usr/local/bin/. I would love to see an integration with Alfred and use Soulver syntax instead of Alfred standard calculator. Soulver has a friendly syntax which includes: 1) Percentages: 120 + 10% | 132 500k - 30% | 350k 10% of 200 | 20 20 is what % of 200 | 10% 20 is 10% of what | 200 2) Proportions: 6 is to 60 as 8 is to what | 80 5 is to 10 as what is to 80 | 40 3) Phrase functions: larger of 100 and 200 | 200 greater of 100 and 200 | 200 smaller of 5 and 10 | 5 lesser of 5 and 10 | 5 remainder of 21 divided by 5 | 1 21 mod 5 | 1 3) Currency conversions (including crypto!): 10 USD in EUR | 8.88 EUR 20 GBP in AUD | 36.29 AUD 20 BTC in USD | 156,250.00 USD 1,000 EUR in ETH | 4.47 ETH 4) Units conversions 10 km in m | 10,000 m 5 hours 30 minutes to seconds | 19,800 seconds 100 pounds in kg | 45.36 kg 5) Date Calculation 10 June + 3 weeks | 1 July April 1, 2019 − 3 months 5 days | 25 December 2018 Yesterday + 1 week | 11 June Today − 1 month | 5 May 3:35 am + 7 hours 15 minutes | 10:50 am 12/02/1988 + 32 years | 12 February 2020 01.05.2005 + 3 years 2 months 3 weeks | 22 July 2008 I love 1Password integration and honestly think Soulver would make a great integration with Alfred as well. Here's Soulver documentation.
  7. Your issue is fixed in the new workflow. See my last post. Btw, would you help me to find a way to generate mymac.png programatically without the need of using the HardwareIcons.xml file? All Mac icons are located in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ but I didn't find a way to correlate one of them to the user machine. There are 3 icons for the MacBook Air in this folder as an example: com.apple.macbookair.icns com.apple.macbookair-11-unibody.icns com.apple.macbookair-13-unibody.icns. Is there any .plist file determining which one should be displayed in About This Mac.app? I don't know if @RodgerWW is still active on the Forum. Maybe he can contribute for this discussion.
  8. I've just released a new About This Mac workflow on GitHub based on Rodger's work. The new workflow should be more fast and reliable since I've fixed some bugs and rewritten the code to not write any more .txt files. The xabout keyword was suppressed since the data is generated in each run so no need to reset the workflow.
  9. Are workflows created in v4 compatible with v3 if they don't make use of any new object?
  10. I adopted your folder structure. Btw, I also created a workflow for your script to symlink/install workflows. It's awesome.
  11. Please, change the GitHub link in your first post to https://github.com/godbout/alfred-kat/releases/latest.
  12. Please, make it at your own discretion. I really appreciate your effort in supporting CLIs. I just didn't understand why you didn't leave the environment variable with a blank value.
  13. It works! Thanks! Why didn't you add the cli variable on the configuration sheet?
  14. That can be useful in some cases but I want the torrent added to transmission via CLI. It's not a big deal if you think this feature doesn't suit your workflow as I will add it anyway. In any case I agree with @deanishe that your workflow would be much more versatile if it does output the magnet link instead of handling it internally in code.
  15. The main and obvious advantage of the CLI is the same of Alfred: you can do tasks without a GUI. Just add your torrent and forget about it. It will be downloaded in your ~/Downloads folder. No GUI, no distractions. "Oh, but I want to check the download progress sometimes and I don't want to type a command in Terminal for this". Not a problem, just type 127.0.0.1:9091 in your browser's address bar. You will have a functional web Transmission GUI. Or better than that, just create a bookmark for this URL and use Alfred to open it. You just don't need a separate GUI app. With your workflow + transmission-cli I can have my downloads delivered at the proper folder in the most alfredish way, which means no browser, no Terminal, no third-party GUI apps, just the Alfred panel. Sounds a good implementation to me.
  16. I've found the bug. If the quote on that post is expanded the quote button/link is not clickable.
  17. I don't even know if other CLI clients exist.
  18. @godbout a key modifier seems fine to me. You can use a dynamic subtext to show a warning like (e.g. "You don't have transmission command-line utilities installed") if the action is not applicable to that user. EDIT: Weirdly I can't quote your last post. A forum bug?
  19. The problem here is the user has to make the changes for every release if the workflow author doesn't implement them.
  20. Thanks! I achieved to do it by changing this: public static function download($magnetLink = '') { $crawler = (new Client())->request('GET', getenv('url') . $magnetLink); $magnetLink = $crawler->filter('#tab-technical a.siteButton.giantButton')->attr('href'); return exec("open $magnetLink 2>&1", $result); } to this: public static function download($magnetLink = '') { $crawler = (new Client())->request('GET', getenv('url') . $magnetLink); $magnetLink = $crawler->filter('#tab-technical a.siteButton.giantButton')->attr('href'); return exec("/usr/local/bin/transmission-remote -a \"$magnetLink\" 2>&1", $result); } Still I think this integration would be a nice improvement to the workflow.
  21. Are you sure it's the current behaviour for keywords? I was pretty sure that in my last PR this was changed to not listing blank keywords. It seems to me @bk161124 is running an outdated version of the workflow.
  22. I just don't know how to pass the magnet link to the command-line interface if it's not output by the workflow.
  23. But the Script Filter doesn't output the magnet link.
  24. Would you consider to integrate your workflow with transmission-cli? It can be installed with `brew install transmission` and work headless. That would allow us to start downloading the file from Alfred without the need of any GUI BitTorrent client which is the perfect scenario. A possible implementation would include a check for the existence of the CLI in the user machine, otherwise the current flow is used. An environment variable on the workflow configuration sheet would make the job as well (the user would set the value to 1 to use the flow with the integration).
×
×
  • Create New...