Jump to content

Search the Community

Showing results for tags 'Shell'.

  • 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
    • Advanced Tips & Tricks
  • Alfred Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting
  • Alfred 5 Early Access
    • Alfred 5 Early Access


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


  • New Features
  • Other

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 20 results

  1. I want to be able to launch some zsh/bash commands from the Alfred's bar. I sat the prefix to my likings, selected "Custom", modify the script accordingly. on alfred_script(q) tell application "iTerm" activate do script q end tell end alfred_script But it doesn't work.
  2. Hello! I'm attempting to set up a workflow that includes passing a unicode character with a diacritic through a shell script. However, the "Run Script" node in the workflow seems to be converting its input to another representation of the characters which cause issues. In particular, the character being passed into the bash script is when the issue seems to be occurring. More specifically, I'm using a workflow that takes the currently selected Japanese text, and does something with it. In this example, the bash script just re-echos the input, and then the text is searched on Jisho.org (a Japanese-English dictionary site). The character `が` demonstrates the issue. The version which is passed through the bash script changes to another representation of `が` which on Jisho.org is searched as a separated `か` and the ` ゙` (dakuten diacritic). I've attached a simplified workflow below which presents my issue. It includes the action I would like to achieve, as well as a couple other example cases showing that the character seems to be changed on input into the bash script (e.g., setting the character within the bash script works as desired, but setting it within one bash script and passing it to another does not). I'm assuming this question has been answered before, but the answers I found with my various search term attempts did not seem to turn up the answer I was looking for. I apologize in advance for the likely repeat. Any suggestions and/or explanations would be appreciated. Thank you for your time! Google Drive link to workflow: https://drive.google.com/file/d/1YXoz4KWt_4XbTJtrdM4MKJlmSe9rompl/view?usp=sharing Alfred 4.6.3 macOS 12.2.1
  3. Under Workflows if I select and edit a script object. There is a drop down list of shells and interpreters called Language, however, you cannot customise them. At the moment the main reason for wanting to do this is to change to /usr/bin/python3 Python2 is to be removed soon and most languages from default macOS installations at a later date(s). This was mentioned in Catalina’s notes as depreciations. This means in the future people will be using Conda, Homebrew etc to add languages to their systems unless Alfred plans to included runtimes. I actually use Homebrew to get newer versions of python, zsh and bash these are a different paths. I just wonder if there is currently a way to add and change them? Some people also use tools like asdf, pyenv, rvm, direnv etc to manage multiple versions of languages.
  4. This is a workflow for easily downloading videos (and/or extracting audio) from various websites such as YouTube, Vimeo, DailyMotion and more... It uses youtube-dl as the core component. Main Features: Download video from URL. vd {video-url} Download and extract audio into an MP3 file. vd-audio {video-url} Display and download video metadata (json). vd-info {video-url} Update core component (youtube-dl). vd-update Display quick help in Large Type. vd-help Note: vd-update command currently only updates youtube-dl, not the workflow itself. Please see full details, updates (and source) of the project at GitHub. Download Video Downloader workflow. Here is a full visual list of what Video Downloader can do: And here is how the workflow nodes look like: Requirements: For the audio extraction (vd-audio) feature to work, you should install FFmpeg yourself manually (because of licensing issues). If you don't have it already; you can find details on how to install FFmpeg at the GitHub page. --- (While writing this, I found out about Vítor's workflow; which is also nice and uses youtube-dl. Well, I'm releasing this anyway for it's extra features like audio conversion, metadata info, etc..) Pls. drop a note if you like it... Thanks.
  5. Hey guys! Some of you out there (unfortunately, probably not that many) may have heard of the terminal emulator Kitty. It's cross platform, fast, and quite customizable. Long story short, I replaced Terminal.app with Kitty (iTerm never seemed to meet my needs). However, it took quite a lot of work to get Kitty to work when I entered a shell command (i.e. "> echo hello") into Alfred. At last, after much messing around, I finally got it working, and have come to share how I did that in case anyone else wants to do it too. Go to Features > Terminal / Shell and change Application to "Custom." Copy and paste this AppleScript into the box that shows up under the Application dropdown. That's all it takes! It took me about an hour and a half to make that work properly. I could easily get it to run a command, but not with the directory set to ~, the .bashrc file loaded, and then keep the window open after finishing the command. All of these things were important to me, so after much tinkering, I made it work. Note: this only works, of course, if you are using bash. If this is not the case, you can likely copy and modify my script and RTFM.
  6. Hey All, Looking for a solution on a very minor annoyance, I usually run a lot of shell commands from Alfred using the > prefix, which is great! Love it! However, when it executes the command it pops open terminal and runs the command and leaves another lingering window around which I find annoying. Does anyone know of a way to force Alfred to close the window it opens after the command is executed? Very rarely do I need the returned command's output. It's usually for firing off quick things like docker pulls, file moves, git commits and such. If I need to do this through an AppleScript I'm open to that as well, just wanted to find some way around my terminal windows popping up everywhere like mushrooms. Thanks!
  7. Heyho guys and girls, I just finished porting my old v1 extension NotificationControl to a v2 style workflow. You can download it here. You can use the following keywords: Show the current status of Growl and NotificationCenter : stat Pause Growl and Notification Center : pause Resume Growl and Notification Center : resume Pause or resume Growl : growl Pause or resume Notification Center : notificationcenter Close all Growl notifications : close_growl Close all NotificationCenter notifications : close_nc Show Growl’s rollup : show Hide Growl’s rollup : hide Enable Growl’s incoming network : enable Disable Growl’s incoming network : disable/ Restart Growl : restart
  8. In Terminal.app Preferences, I have the "Shells open with" property set to the custom "/opt/local/bin/bash" (rather than default login shell). However, if I then enter something like > echo foo in Alfred, this opens a new Terminal window but does not execute the command as it should. Alfred version: v2.8 (414) Mac OS X version: 10.10.5
  9. I was sitting there in iTerm thinking "wouldn't it be great if I could talk to Alfred directly from the terminal"? bash completion, etc. I'm not sure how to get this done; I was hoping for some guidance by the authors. Alfred's AppleScript library only exposes a few functions. If I wanted to use completion, I'd need a list of all of its keywords. However, if that list existed, I'm sure I could work something out. It'd be pretty awesome. Chris
  10. I would like to write an Alfred workflow that acts as a thin wrapper around a command line application which takes many option flags and arguments. Is there any way to integrate Alfred with the bash completion script of this application in such a way that the possible completions of a partially entered command are displayed?
  11. Fish Toolbox This is a toolbox of functions for working with the [Fish Shell](http://fishshell.com/). You can install fish shell with homebrew: brew install fish Currently, the functions are: f:seteditor Set the code editor to use f:editfunction Edit a Fish function. It will show a list of possible functions to edit. If you press FN key and select a function, that function will be deleted. f:editconfig Edit the Fish Configuration file. f:newfunction Create a new fish function. with more to come. You can download it from my GitHub account: https://github.com/raguay/MyAlfred/blob/master/FishToolbox.alfredworkflow Or from Packal!
  12. Hi, Alfred v2.1.1 (227), OS X 10.9.1 Recreate: always Steps: 1. Open Alfred Preferences, 2. Features Tab, Terminal / Shell feature 3. Select Application, custom 4. Paste in custom applescript (mine is https://gist.github.com/itsthejb/8900078) 5. Close preferences window 6. Use action - works Expected: Open Alfred preferences, features, terminal / shell, apple script is still set in custom Actual: Reverts to Appliction: Terminal (script doesn't persist) Note: The action seems to work at first, but is eventually lost, especially between boots
  13. Helps you lookup what shell commands mean using http://explainshell.com. Your OS X installation should have PHP 5.3.3 or newer installed. Lion or Mountain Lion should meet the minimum requirements. If not, you can install the latest version of PHP with MacPorts or Homebrew. Download! Requires Alfred 2 and the Powerpack. Updates can be found and installed using Monkey Patch, or the older Alleyoop (discontinued).
  14. I am working on a workflow which should execute a shell script command for of the documents (*.xml files) currently selected in the Finder. I did some experiments around it, but could not get it to work yet. Any pointers, e.g. what workflow elements I will need? I am currently thinking along the lines of first calling an applescript which gives me the selected files, then filtering out only the xml files and lastly calling a shell script for each of the files or alternatively calling the script once but passing along an array of xml files. What do you guys think? Thanks for any suggestions / sample workflows.
  15. The following command download magnet link to a local torrent file /usr/local/bin/aria2c --bt-metadata-only=true --bt-save-metadata=true 'magnet:?xt=urn:btih:9cf3900966073b22a8580c1152221c7edefe2186&dn=Superman.Man.of.Steel.2013.720p.R6.LiNE.x264.AAC-DiGiTAL&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337' It works fine if I run it in the Terminal. But the same command fail to run from alfred workflow "Run Script" action. The failed log are as follows.
  16. Quick Jot Workflow. Collect Time-stamped stacking jots in a single text file. New jot will be placed on the first of the file. Modify the file location for your need. Type "." in Alfred2 Input and write a simple note. Intended to personal use with Dropbox, iPhone, Unclutter. http://dl.dropboxusercontent.com/u/67598652/Files/Quick%20Jot.alfredworkflow
  17. I wrote a script like this, #!/bin/sh HEXO=/Users/cinvro/nvm/v0.10.15/bin/hexo cd ~/Work/hexo/cinvro.com/ $HEXO generate it works when I execute it in my terminal,but it doesn't work when I put it in a Alfred2 Workflow. hexo here is a node.js program.
  18. Hi there, I was wondering what's the best way to display a multiline return for a shell command. For example if I did a LS directory and wanted to show the entire output. Using the traditional methods with a notification will show the first line, but not the rest. I have a work around in play by using the qlmanage command to display a text file in the quick look window. But I feel this is probably not the best way.
  19. I have installed mpd and ncmpcpp, controlling it via terminal is fairly easy: ncmpcpp toggle # Toggles play/pause But when I try to make the same trick with Alfred Workflow (Trigger: Hotkey --- Action: Run Script --- Output: Post Notification) with this shell script: ncmpcpp toggle or sh /path/to/myscript.sh --------------------------------------------------- #!/bin/bash ncmpcpp toggle ...only notification pops out. Same thing happens with Automator. So, how can I control ncmpcpp via Alfred 2?
  20. As simple as title says. Yes, I know many of ~ similar ~ workflows exist, however this is quite different from others as it doesn't use notifications, but rather native OS X dialogue window for showing the output of executed command. Download: https://github.com/makov/alfred-goodies/raw/master/Shelly.alfredworkflow
  • Create New...