Jump to content


  • Content Count

  • Joined

  • Last visited

  1. This is my most frequently used workflow, but it seems to have broken with the upgrade to Alfred 4. Search no longer works. I hope listboss will update it!
  2. Wow, thanks! Very helpful! In the mean time I ended up also asking about this on the RingCentral development forum, and they let me know that the RingCentral softphone app has an undocumented URL scheme for placing calls as well. That turns out to be a cleaner approach. So in the end I'm using a bash script that looks like this: number=$(echo "{query}" | sed 's/[^0-9+]//g') open "rcmobile://call?number=${number}" Thanks for the help!
  3. I run a softphone VOIP app for work (the RingCentral app). I'd like to be able to type a phone number into Alfred (or select it from a contact) and have it place a call, but RingCentral doesn't seem to have AppleScript support or much else that would help. What it does have is a global keyboard shortcut. I can highlight a 10 digit number anywhere in the MacOS and use a keyboard shortcut to instantly dial the number. Is there any way for Alfred to simulate highlighting some text and then using a keyboard shortcut? I'd like to pass the workflow some text by typing a number into Alfred, then have it "highlight" that text and do the keyboard shortcut for me.
  4. Very useful! I'd love if this had an option to get just the url and not the HTML or Markdown link tags. A notification, as Paulw said, would also help.
  5. Ah hah! Thanks a lot, that works. Thanks, also, for your Reddit workflow! It's a fun little trick!
  6. Oops, I updated my workflow with your "fixed" script and it stopped working Foolishly, I didn't duplicate it before changing it. Only the first line seems to have changed, and I can't figure out what the problem is. What did you have up there before you changed it just now, so I can compare? Edit: I think it's a problem with the query containing spaces. When I try this with a phone number formatted like this: (123) 456-7890 I get this in the log: [ERROR: alfred.workflow.action.script] Code 0: /bin/bash: (123): command not found So it's getting tripped up on the space between the area code and the number.
  7. Thanks, that works perfectly! I was close with my attempt but must have been screwing up combining the two scripts in the Automator workflow into a single script in Alfred.
  8. I'm trying to turn a frequently used Automator system service into an Alfred workflow. (It's a simple system service that uses curl to make an HTTP request from the RingCentral API, to place a phone call.) I understand the basics of bash scripting but I had help in creating this workflow and I'm not sure how to re-do the script for Alfred. Here's what the service looks like in Automator: Here are the two scripts it runs. They're both pretty simple. I'll blank out the personal data in the latter one. # This removes any characters except numbers from your selection sed 's/[^0-9+]//g' and for f in "$@" do curl -silent -o ~/.ringout.html "https://service.ringcentral.com/ringout.asp?cmd=call&username=XXXXXXXXXX&ext=X&password=XXXXXXXXXX&from=XXXXXXXXXX&to=${f}&clid=XXXXXXXXXX&prompt=1" done exit 0 As you can see the idea is to take the text (in this case highlighted text using OS X Services) and strip out all non-numeric characters, then plug it into that curl one-liner that ties into the RingCentral API to place a phone call. Ideally I'd like to be able to call this with a keyword in Alfred so that I could either highlight text, call the keyword, and have it make a phone call to a phone number in the highlighted text, or type the number in as an argument if there's no text highlighted. Could somebody help get me started? I looked over the documentation but I'm kind of running in circles. Thanks!
  • Create New...