Jump to content

Search the Community

Showing results for tags 'array'.



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 3 results

  1. This is my error : [ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON: input the {"items":[]} "input the" is the result of code "echo $userInput This Alfred node, runs a script called search.rb. I've screen shotted it below as well. The script calls all redbooth API's(a project management app) Projects, Tasklists and tasks. It then runs a loop through each item and looks for titles that match the user input/ARGV. I have run the script locally in my terminal and the script returns the correct objects and should be printing them/returning to Alfred. However I get the above issue and I can't seem to figure out where my disconnect is. Additional info/screen shots below. search.rb/the script alfred runs to generate the script filter options. This code(below/list_proj.rb) calls the redbooth API and takes all returned objects/projects and converts the data to json. When the script rubs as is in a alfred script node- it populates the filter options. This code works to the desired effect. Posting for comparison This is a snap shot of the work flow. Everything works with the exception of the Search function/nodes Please let me know if I can provide anything else. I have a separate plugin that provides user auth for the work flow to access the redbooth client API. Any insights to this error or what I may have missed would be well appreciated. Thanks!
  2. I'd like to request the ability to have different types of arguments. you could have one type be 'iterator' which iterates through the argument data presented, processing each delimited entitiy as if the invoked action were called with just that string as the argument you could have another type be 'multi-var' which permits one to pass multiple independent strings to a workflow, which could be referenced as elements of an array, or enumerated strings, or whatever. this would be backwards compatible, since existing workflows would still be using the string typed handler, which wouldn't need to change, perse the goal is to allow one to provide structured data to a workflow, be it an array of strings, or a hash of kv pairs, or multiple variables to one script. I think the existing functionality is good, but with more flexibility, I think the community could do some really cool things that are currently pretty awkward to accomplish, and feel hacky.
  3. Hey, I was wondering if there was a good way to leverage the search autocomplete via PHP. I am looking to add easy timezone support to my workflow (based on these timezones — http://www.php.net/manual/en/timezones.php). I would like to make a PHP array with autocomplete suggestions for the user to make it easier for them to set the timezone. I believe I could use PHP's levenshtein function to find the closest matches to the input, but was wondering if there is a better way of doing this before passing it to the script to save to the JSON config file. I would like, if possible, to first autocomplete the country, then once the backslash appears to begin matching against the locations in that country. If there is a best way to utilize alfred to do this, please let me know. If not, I can use a combo of levenshtein and conditionals I think to do it. It may not be hard to modify one line of code, but anyway to make it easier for people is better. Thanks!
×
×
  • Create New...