Jump to content

bvp663

Member
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

bvp663 last won the day on November 27 2014

bvp663 had the most liked content!

bvp663's Achievements

Helping Hand

Helping Hand (3/5)

2

Reputation

  1. I've been trying to tackle a workflow but I keep running into an issue with how Alfred is handling clipboard contents. The Workflow The workflow is designed to take content copied from a spreadsheet (two columns, multiple rows) and injest data from both columns into a url in Chrome. 1234 5678 9101112 13141516 The script is designed to inject the items into a url, for example https://mywebsit.com/{field1}/blahblah/{field2} Here's the script: CLIPBOARD=$(pbpaste -Prefer txt) while read LINE ; do FIELD1=$(echo $LINE | cut -d ' ' -f 1) FIELD2=$(echo $LINE | cut -d ' ' -f 2) open -a "/Applications/Google Chrome.app" "https://mywebsite.com/${FIELD1}/blahblahblah/${FIELD2}/" open -a "/Applications/Google Chrome.app" "https://mywebsite.com/${FIELD1}/beepboop/${FIELD2}" done < <(echo $query) I got it working, but it will only open tabs for the first row and won't run through any additional rows. From what I can tell, this seems to be Alfred's fault in how it handles clipboard contents. If I run `pbaste` in Terminal the clipboard contents show up in columns and rows as expected. However if I tell Alfred to send to LOGGER how it's reading clipboard contents, they all show up in a single line. e.g. When I run pbpaste in Terminal: 1234 5678 9101112 13141516 e.g. How Alfred interprets pbpaste in the script: 1234 5678 9101112 13141516 Is there anything I'm missing here? Is this a known issue with Alfred or is there a different way to approach the problem?
  2. I just discovered Packal (awesome work)! And re-uploaded my tea timer workflow there. It passes along tea times or steeping times to http://steep.it and creates a timer for your tea in a new tab. I was in a bad habit of brewing tea, going back to my computer, and then forgetting about the tea. This helps to remind me I've got a fresh brew in the kitchen. Enjoy!
  3. Would love to see an Alfred workflow for Textual that allows one to quickly send a message to an individual using Alfred. Does anyone know if there is anything like that out there or if there's something close that I could base my own workflow off of.
  4. Awesome! Thanks guys! The following ended up working (usually I don't have anything after the part I want to copy) pbpaste | sed 's/http:\/\/website.com\/customers\///g' I added "copy to clipboard" as an output for the workflow. Ideally I'd want it to grab the url from Chrome instead of having to rely on copying the url to the clipboard first. I tried GetCurrentURL but didn't have any luck. Any suggestions?
  5. As I started to ween myself of a disturbingly growing coffee habit, I looked to tea as a source of comfort and caffeine. However I often found that I would go to the kitchen to prepare tea, and then go back to standing at my desk, entirely forgetting about the cup I left brewing on the counter. I came to enjoy using Ben Lew’s steep.it website to solve this problem. The website allows you to set a web-based timer for specific types of tea or at minute intervals. I loved using it so much I decided to integrate it into Alfred and created a workflow to let you easily set a timer for different types of tea or for a specific amount of time. Read the blog post for full details.
  6. Hey Everyone! I have no programming skills so I'm hoping someone can help me with this one. My goal is to extract a portion of a url and copy that portion to the clipboard. Example: http://website.com/customer/uid12345/chats/ I want to create an alfred that either looks at the current url in Chrome or at whatever is copied to the clipboard, and extract the uuid out of that (in this case, 'uid12345') and copy it to the clipboard. At work I have to constantly copy/paste this number from one website into another and it's become tedious. I know there's got to be an easier way and Alfred is the way to go about it. Any programmers out there have any idea of a script or workflow that could make this happen?
×
×
  • Create New...