Jump to content

Search the Community

Showing results for tags 'query'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 21 results

  1. I created a FFallback search for the website ARTSTORY with a query; added in features, but I get "Page not found" It works without a query though How can I solve this?
  2. I want make a quick search for phpBB forums websites one of them is www.cracked.to when I search on it, it generate a new SID for each search result so the simple of putting {query} isnt the option, I was wondering if I can pass it through python: I tried this on windows terminal, its working, but I am not sure pass how to pass it on web browser through Alfred. Here is the script: import requests import sys query = sys.argv[1] payload = {'action': 'do_search', 'keywords' : query, 'postthread' :'2', 'matchusername' : '1', 'forums[]': 'all', 'findthreadst':'1', 'numreplies':'', 'postdate':'0', 'pddir':'1', 'threadprefix[]': 'any', 'sortby':'lastpost', 'sortordr':'desc', 'showresults':'threads', 'submit':'Search'} if len(query) > 0: r = requests.post('https://cracked.to/search.php', data=payload) print(r.cookies) print(r.url) Here is the workflow: https://d.pr/f/vEVw9K Any ideas?
  3. I want to run a script and post a notification for the output of the scipt. #!/bin/bash a=`python3 /Users/Ninzero/Documents/PythonProgramme/rav/rav.py choose` echo $a it worked well on shell but notification didn't show anything
  4. I'm trying to create a very simple workflow 1. Keyword: mic (with space) argument required http://d.inco.re/J07mwL 2. Run Script osa script set volume input volume {query} http://d.inco.re/0y7Fq 3. Post Notification Microphone Volume Set to {query} % http://d.inco.re/dceme2 I have no idea any notification does not show {query} at all Thanks in advance for all your help.
  5. I'm not sure if this is a bug, but I'm trying to get a query with multiple spaces in it and "as is" (meaning that I want the the left and right trailing spaces). Right now, Alfred trim the spaces to only one if multiple are inserted at the beginning or end of a query. This is working if using a "keyword input" so it seems to be a problem with the script filter input method. I've tried using the "with input as argv" or "with input as {query}" and both output the same. Here is my test script for the Script Filter input (using Python): import sys, json query = sys.argv[1] #query = """{query}""" # uncomment if trying with "with input as {query}" data = { 'items': [{ 'title': "Script Filter: The query is '" + query + "'", 'arg': query }] } sys.stdout.write(json.dumps(data)) Here is a screencast to show the problem: https://NoFile.io/f/4334MTCdPQ5/Alfred-SpaceInQuery-Problem.mov Is this a bug or there's something I'm not doing well or it's just not possible with the Script Filter input ? Thanks!
  6. I set up a custom web search 'wiki'. When I type 'wiki' it works but once I enter a space, it triggers a google search! Help please! Thank you!
  7. It should be easy to implement and very useful. Once you have typed lots of queries, you probably just keep repeating.
  8. Based on a File Filter, I want to go to two locations with Terminal, within the same Workflow. Let's say the file filter path result is: ~/my/folder. The first part of the workflow will simply go to cd {query} which navigates to ~/my/folder. In the next part of the workflow, I want to keep the last part of the query – "folder" – i.e. the "Display Name" in the File Filter, and interject it in the path ~/my/other/folder. I guess there might be multiple ways to achieve this, and the way I've been trying to figure out has been to modify the query via string replacements, so that ~/my/ becomes ~/my/other/ I have also tried to understand upstream variables and if it's possible to get the "Display Name" in the File Filter and simply take that variable and paste it into the path ~/my/other/ so that it becomes ~/my/other/{var} i.e. ~/my/other/folder, but I haven't succeeded. Appreciate any help with this since I've spent almost an hour now with no results!
  9. When creating custom searches, is there a way for me to have a default value for {query}. I have some searches that i use for one item most of the time, but occasionally will change to a different search. If I could preload a default query, that would be helpful.
  10. I have a simple keyword script that parses some arguments in Ruby and then uses `curl` to submit to a url (a Google Form). All works as advertised, including error messages after rescued Exceptions, except that I get no notification from any output in my script that occurs *after* the `curl` command. Examples: # works correctly and echoes notification puts "Completed successfully!" `curl --data #{data} #{url}` # does not echo notification `curl --data #{data} #{url}` puts "Completed successfully!" In the second case, no notification ever gets issued. If I run the script from the command line, the final "Completed successfully" line is successfully sent to STDOUT after curl returns. Any idea why this should be the case?
  11. Background I use a workflow to search Omnifocus data direct from Alfred. This is a Python script using deanishe's alfred-workflow. This works well but I've spotted an odd edge case: * invoke the workflow and pass it a single character query (e.g. .s e) * nothing happens other than alfred creating a python process which is left stale * no output shown in alfred workflow debugger * providing a longer query does work Is this a known issue or expected behaviour? Details Alfred version & build number: v2.7.1 (387) OS X version: 10.9.4 Reproducible: Yes, here's a video demonstrating the problem. Script Filter settings Steps to reproduce Assumption: you have Omnifocus installed. Install v1.1.2 of the workflow Invoke the workflow '.s' with query 'e' Results: Alfred debugger will show no output Stale python process shown when running ps aux | grep python
  12. I'm creating a workflow to add tasks to Nozbe using a keyword + query. I have it functioning now, however, it has a flaw I think more experience creators can tell me how to easily fix (this is my first workflow creation). Currently I have the keyword triggering an AppleScript with the following code: on alfred_script(q) tell application "Nozbe" reopen activate tell application "System Events" key code 53 delay 0.1 keystroke "i" keystroke "a" keystroke "v" using command down key code 36 key code 53 end tell end tell end alfred_script While this works, it requires saving the {query} with the "Copy to Clipboard" output and running the above AppleScript. I want to remove the need for the copy to clipboard so it doesn't clutter it up and have the query directly inputed into the highlighted text box on Nozbe. How can I run the AppleScript to paste the {query} at the bolded section of the script above?
  13. This is a limit imposed by UNIX, not Alfred, but the error message shown is slightly confusing, and there should be a way to overcome this issue. Right now, selecting more than exactly 260527 characters on my system and using it in an Alfred workflow (with the Argument:'selection in OS X' setting) as "{query}" will throw an error. You can see your system's bash argument character limit with: getconf ARG_MAX Alfred should allow a way to pass the selection as stdin instead of a quoted and escaped string, otherwise there is no way around this hard limit, and Line-Counting workflows, etc. are useless for larger bodies of text. ^ Confusing error message when selecting too much text. ^ A workflow example that would trigger this. echo "{query}" > .wordcount echo "Characters: "$(wc -m < .wordcount)" Words: "$(wc -w < .wordcount)" Lines: "$(wc -l < .wordcount) rm .wordcount
  14. Proposed Feature: Provide a default argument that will be used in place of a query in the event that no query is provided. Rationale: In my particular use case, I have workflows that are mapped to urls, with the keywords representing unique customer identifiers within local/qa/production environments. For example: app.ourdomain.com/feature/{query}/some/path I'd like to have a single workflow that would populate the customerID field with a default value if no query is provided (the ID i'm working w/ 90% of the time), but that would still respect queries when they are used. Possible Implementation: Possibly something like: app.ourdomain.com/feature/{query|1234}/some/path
  15. Hi all, I am trying to do a local search (files, folders etc) using the NOT operator, e.g. as in Google where you can specify what not to search for ("shoes -red" searching for shoes, but no red ones). Is this possible in Alfred, if not that would be a really useful feature. Thanks
  16. 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/
  17. It seems I originally posted this in the Workflow Help forum by mistake. I'd appreciate it if a mod could delete the corresponding thread in there. Alfred build: 227 OS X version: 10.9.1 When using the Open URL action with the URL set only to {query}, Alfred fails silently if the passed arg contains non-ASCII characters. The following XML, which Alfred accepts and correctly displays in its results list, does nothing when the arg is sent to the Open URL action. The first item is as returned by Python's xml.etree.ElementTree library, the second I edited back to pure text form to see if that worked (it didn't). In both cases, Open URL performs perfectly provided {query} is only part of the URL, but fails if {query} is the entire URL. <?xml version="1.0" encoding="utf-8"?> <items> <item valid="yes"> <title>Göbekli Tepe - Wikipedia, the free encyclopedia</title> <subtitle>http://en.wikipedia.org/wiki/Göbekli_Tepe</subtitle> <arg>http://en.wikipedia.org/wiki/Göbekli_Tepe</arg> <icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns</icon> </item> <item valid="yes"> <title>Göbekli Tepe - Wikipedia, the free encyclopedia</title> <subtitle>http://en.wikipedia.org/wiki/Göbekli_Tepe</subtitle> <arg>http://en.wikipedia.org/wiki/Göbekli_Tepe</arg> <icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns</icon> </item> </items>
  18. When using the Open URL action with the URL set only to {query}, Alfred fails silently if the passed arg contains non-ASCII characters. The following XML, which Alfred accepts and correctly displays in its results list, does nothing when the arg is sent to the Open URL action. The first item is as returned by Python's xml.etree.ElementTree library, the second I edited back to pure text form to see if that worked (it didn't). In both cases, Open URL performs perfectly provided {query} is only part of the URL, but fails if {query} is the entire URL. <?xml version="1.0" encoding="utf-8"?> <items> <item valid="yes"> <title>Göbekli Tepe - Wikipedia, the free encyclopedia</title> <subtitle>http://en.wikipedia.org/wiki/Göbekli_Tepe</subtitle> <arg>http://en.wikipedia.org/wiki/Göbekli_Tepe</arg> <icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns</icon> </item> <item valid="yes"> <title>Göbekli Tepe - Wikipedia, the free encyclopedia</title> <subtitle>http://en.wikipedia.org/wiki/Göbekli_Tepe</subtitle> <arg>http://en.wikipedia.org/wiki/Göbekli_Tepe</arg> <icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns</icon> </item> </items>
  19. Hi, I made a workflow to access a web service that uses slash-delineated arguments. The pattern is "http://server/service/argument". I need to type the service and the argument, so the pattern is "http://server/{query}". I enter the Alfred keyword followed by "service/argument". The problem is that Alfred converts the slash to %2F instead of passing it through as a slash. Is there a way to specify that I *don't* want the query URI-encoded in the Open URL action? I turned off UTF-8 encoding, but that only disables the UTF-8 bit. Thx. Brendan
  20. I pasted '/Users/Tyler/Library/Developer/Xcode/DerivedData/QSUIAccessPlugIn-fwmlhjvvmkoxcccakiouzkfnllst/Build/Intermediates/QSUIAccessPlugIn.build/Debug/UI Access.build/Script-E1022B2806B3475D00299BEC.sh: line 2: /Tools/bltrversion: No such file or directory ' (an error from Xcode, whitespace included) into Alfred. I then backspaced until '/Users/Tyler/Library/Developer/Xcode/DerivedData/QSUIAccessPlugIn-fwmlhjvvmkoxcccakiouzkfnllst/Build/Intermediates/QSUIAccessPlugIn.build/Debug/UI Access.build/Script-E1022B2806B3475D00299BEC.sh' was left, which activated File Navigation (as expected). I then hit Cmd-A (to highlight the input) and pasted the original string back into the Navigation window. Alfred remained in Navigation mode instead of returning to 'normal' mode. Alfred v2.0.1 (173) on OS X 10.8.3. Replicated: yes
  21. I would like a checkbox next to the "Encode query..." and "Encode spaces" that disables the character escaping for the {query}. Rationale: For us developers who use Alfred everyday in our workflow there are times (for example when working on REST services) where I'd like to create a set of searches like: keyword: s3dev url: http://aws-portal.mycompany.com/s3/pre-prod/{query} where I can trigger it in alfred: s3dev 5002/some/rest/endpoint/5012 and it will take me to http://aws-portal.mycompany.com/s3/pre-prod/5002/some/rest/endpoint/5012 Currently it will escape the forward slashes (and other url characters). I'm hoping this will be a popular suggestion and easy to implement seeing as it's just bypassing whatever escapeString() Alfred is using.
×
×
  • Create New...