zpete Posted November 16, 2018 Share Posted November 16, 2018 Hi, I use ranger as my filemanager - ranger is a bash-filemanager, so interacting with Alfreds File-Selection Shortcut (Settings->Features->File Search->Actions->File Selection) does not work. Thats not a problem because I can call any script with selected files in ranger. It would be nice to open Alfreds Action Panel from bash in order to use Alfred to act on selected files. Is there a way to do that? Example (from bash): # "/Applications/Alfred\ 3.app/Contents/MacOS/Alfred\ 3" /path/to/my/selected/file1 /path/to/my/selected/file2 ... Thanks a lot! Link to comment
deanishe Posted November 16, 2018 Share Posted November 16, 2018 You can do it via Alfred’s AppleScript API. I’m on my phone atm, but the command is something like: osascript -e “tell application \“Alfred 3\” to action \”$1\”” where $1 is the filepath. Link to comment
zpete Posted November 17, 2018 Author Share Posted November 17, 2018 Thank you very much. This is exactly what I was looking for. 👍 Link to comment
GuiB Posted November 19, 2018 Share Posted November 19, 2018 @zpete, I thought it could be great to point you to a related script I did for that (and more) so this can give you some more ideas... Just have a look at this script and discussion: Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now