Jump to content

SCalkins

Member
  • Posts

    15
  • Joined

  • Last visited

Everything posted by SCalkins

  1. Alfred Version: 5.1.2 Issue: The "Toggle visibility for apps" is not working as expected. If the currently launched app is active and I trigger the workflow again, an additional process is created instead of hiding the application. Which app is being triggered? It's a Chrome Webpage App that spawns as a window. (~/Applications/Chrome Apps.localized/MyWebsite.app) Previous Experience: If the application was not currently running it would open the website in a browser and bring it to the front of the screen If the application was currently running and was the front window it would hide it if the application was currently running and was not the front window it would bring it to the front Debug: [09:50:47.346] MyWebsite[Hotkey] Passing output '' to Launch Apps / Files [09:50:51.116] MyWebsite[Hotkey] Processing complete [09:50:51.122] MyWebsite[Hotkey] Passing output '' to Launch Apps / Files
  2. I've recently started receiving an error with a Alfred workflow called "Create New File in Finder" Ruby Code _osa1 = 'tell application \"Finder\" to set insertionLocation to insertion location as alias' _osa2 = 'return POSIX path of insertionLocation' activeFinderPath = (`osascript -e "#{_osa1}" -e "#{_osa2}"`).strip filename = 'untitled' extension = 'txt' if '{query}' == 'help' || '{query}' == '?' system("open", "http://ianisted.co.uk/new-finder-file-alfred-2") exit else if '{query}' && '{query}'.include?(?.) filename = '{query}'.split('.')[0] extension = '{query}'.split('.')[1] end file = [filename, extension].join('.') path = [activeFinderPath, file].join if (File.exists?("#{path}")) exit end template = [extension, extension].join('.') if (File.exists?("templates/#{template}")) system(%[cp "templates/#{template}" "#{path}"]) else system(%[touch "#{path}"]) end end Error Message on Debugger [input.keyword] Processing output of 'action.script' with arg 'testing.txt' [ERROR: action.script] -e:15: warning: string literal in condition Anyone have an ideas?
  3. Thank you for providing your structured workflow and an app that is similar, it's very useful (for me anyway) looking at an app that I can look through the code !
  4. Thank you I updated my post to reflect your suggestions!
  5. Currently looking for help optimizing this workflow I don't have any programming experience, and anything beyond what I have already done is beyond my realm of knowledge. But, I did want to put this out their for anyone who would like to tidy it up and make it more user-friendly for other Alfred Users! Alfred-Sony-AV-Control An Alfred workflow for controlling Sony AV Receivers Currently working and tested for Sony STR-DN10xx (configured for my AV Unit (IP Address 10.0.0.13)) Poorly designed workflow, but it does in fact work. Problems Ability to pass arguments quicker (ex. it's currently a pain to change the volume multiple times) Configuring IP Address of AV Unit Solutions Combine poorly written code into one library with the ability to modify user's IP address. (Thanks deanishe for suggestions!)https://github.com/SethCalkins/Alfred-Sony-AV-Control
  6. So this is my first time working with python and alfred scripts. So please bear with me. I was using deanishe's guide on creating a python script - but having some issues with the python script import sys import phonenumbers import geocoded x = "'{query}'" # input needs to be wrapped in quotes-is this called correctly? z = phonenumbers.parse(x, "US") phonenumbers.format_number(z, phonenumbers.PhoneNumberFormat.NATIONAL) # How do I return result into alfred? I'm using Googles Python Library phonenumbers https://github.com/daviddrysdale/python-phonenumbers
  7. OS X - v10.10.1 Alfred - v2.5.1 (308) [Powerpack] ----------------------------------------------- Opening up Clipboard Viewer is no longer showing my Clipboard History. All that appears in the Clipboard Viewer is "All Snippets" Troubleshooting Steps I've tried: Adding All Applications to "Ignore Apps" --> Then Reset Copying Strings in Different Applications (Safari, Notes, Mail etc..) Alfred 2 Preferences ➡️ Clear Application Cache Alfred 2 Preferences ➡️ Rebuild OS X Metadata Alfred 2 Preferences ➡️ Clear Knowledge Re-downloaded & Replaced Alfred Application
  8. I'm looking to integrate Alfred with Base CRM - Base Provides an extension for google chrome that allows you to search within base for customers/contacts/leads in Chromes search menu. I'm trying to implement this same solution within alfred. I've extracted the contents of this extension and put it on github https://github.com/SCalkins/Base_CRM_Alfred Also base provides a ruby RESTful API http://dev.futuresimple.com/ If someone can help me with this I would be in forever debt to you!
  9. Hey! Great Idea -- I Love it! I would love an easy way to get autosuggestions from websites using json with GET!
  10. I am "somewhat" I'm having trouble trying to figure out the process of getting it inside Alfred. I can return the results I want in terminal using curl and then using grep to filter out the json.. Beyond that I'm lost... Can you think of a workflow that what use a similar setup that I could look at ?
  11. Ok, so I'm needing help building a workflow where I type a {query} in the search window, and it returns results from monster.com autofill. Here are the request headers and response headers/response body. Can anyone point me in the right direction on how to do something like this? Accept: application/json, text/javascript, */* Accept-Encoding: gzip,deflate,sdch Connection: keep-alive Content-Type: application/json; charset=UTF-8 Referer: http://www.monster.com Host: www.monster.com Orgin: http://www.monster.com Content-Length: 10 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 X-Requested-With: XMLHttpRequest Accept-Language: en-US,en;q=0.8 { "q": "jav" } HTTP/1.1 200 OK Server: Microsoft-IIS/7.5 Content-Type: application/json; charset=utf-8 X-Powered-By: ASP.NET X-AspNetMvc-Version: 3.0 Connection: keep-alive P3P: CP=CAO DSP COR CURa ADMa DEVa TAIa IVAa IVDa CONo HISa TELo PSAa PSDa DELa UNRa PUBi OTRa BUS LEG PHY ONL UNI PUR COM NAV INT DEM CNT STA HEA PRE GOV OTC Date: Mon, 23 Jun 2014 13:24:35 GMT Set-Cookie: DOMAINALIAS=; path=/, DOMAINALIAS=; expires=Sun, 22-Jun-2014 13:24:35 GMT; path=/ Content-Length: 186 Cache-Control: private, max-age=3600 X-AspNet-Version: 4.0.30319 { "Result": { "Items": [ { "Text": "Java Architect", "ID": 170038, "Data": null }, { "Text": "Java Software Engineer", "ID": 167790, "Data": null }, { "Text": "JavaScript Developer", "ID": 166359, "Data": null } ] } }
  12. I'm not using any language at the moment, I have yet to develop any workflow. I was attempting to do it with the custom web search. As far as developing a workflow is there any sample/example workflows that I can look at that might be similar to what I'm trying to accomplish?
  13. I'm trying to setup an alfred workflow to open a URL with a search query. Example: 1) I want to search for someone named 'John Doe' with the following domain: http://www.whitepages.com/name/John-Doe How do I Encode Spaces as '-' Dashes? 2) Same Scenario, but encode spaces as '/' OR '%2F' http://radaris.com/p/John%2FDoe/ http://radaris.com/p/John/Doe/
×
×
  • Create New...