Florian Posted December 19, 2014 Share Posted December 19, 2014 Ô how many times have I had to go to this page: http://en.wikipedia.org/wiki/Unix_signal Link to comment
deanishe Posted December 19, 2014 Share Posted December 19, 2014 Heh. Didn't realise there were that many. SIGXFSZ: "File size limit exceeded". More like "Epileptic fit at keyboard". rice.shawn 1 Link to comment
wolph Posted December 20, 2014 Share Posted December 20, 2014 Andrew, can I propose another option? Just pass everything along through stdin With an EOF when Alfred closes. Link to comment
Andrew Posted December 20, 2014 Share Posted December 20, 2014 Good news. What would this mean precisely? Alfred waits until, say, 100ms after the user last pressed a key before (killing and) running the Script Filter? Also, how would you kill the process? With SIGTERM? The delay would be pretty much that yep, and it would be SIGTERM as this is what the NSTask sends when using the terminate method. smarg19 1 Link to comment
Andrew Posted December 20, 2014 Share Posted December 20, 2014 Yay, thank you Andrew. You have probably mentioned this elsewhere, but what's your rough timeline for the 2.6 release? I'm aiming to have 2.6 in pre-release before January and released within the first few weeks of Jan bachya and smarg19 2 Link to comment
Andrew Posted December 20, 2014 Share Posted December 20, 2014 Andrew, can I propose another option? Just pass everything along through stdin With an EOF when Alfred closes. I have a note for this, but this is unlikely to make it into 2.6 smarg19 1 Link to comment
deanishe Posted December 20, 2014 Share Posted December 20, 2014 What's the proposed model for stdin? Alfred keeps feeding in query on a new line every time it changes? Would that mean workflows can output multiple XML documents? Link to comment
Andrew Posted December 21, 2014 Share Posted December 21, 2014 What's the proposed model for stdin? Alfred keeps feeding in query on a new line every time it changes? Would that mean workflows can output multiple XML documents? I havent decided yet, I'll probably post a topic when it becomes relevant to get a bit of input. Link to comment
deanishe Posted December 21, 2014 Share Posted December 21, 2014 Thanks for the responses, Andrew. Link to comment
wolph Posted December 21, 2014 Share Posted December 21, 2014 I have a note for this, but this is unlikely to make it into 2.6 Great, thanks for the heads up Link to comment
Andrew Posted December 24, 2014 Share Posted December 24, 2014 Here are the options you'll now see from a "Script Behaviour" button in the Script Filter workflow preferences... This will give you the same behaviour as current Script Filters: This will wait until 300ms after the user has finished typing, terminate the currently running script for this Script Filter (if it is running), then run the script with the latest query: This will make it into Alfred 2.6 if I'm happy that it's working robustly and as expected. Cheers, Andrew Link to comment
deanishe Posted December 24, 2014 Share Posted December 24, 2014 Very happy to hear that. I reckon that will come in handy. It'll be interesting to see how Queue Delay works in practice: I've always wondered whether that should be a workflow- or a user-specific value or some arcane combination of the two. I guess I should start thinking about whether to build signal handling into Alfred-Workflow… Link to comment
Florian Posted December 25, 2014 Share Posted December 25, 2014 This is completely awesome ;-) Thanks for our alfred christmas, andrew Link to comment
rice.shawn Posted December 25, 2014 Share Posted December 25, 2014 I guess I should start thinking about whether to build signal handling into Alfred-Workflow… Sadly, we'll never be able to do process control with PHP. That's one of the standard components of PHP that Apple deems not to compile. Link to comment
wolph Posted December 25, 2014 Share Posted December 25, 2014 To be fair... PHP is not the greatest language for scripts like these. Due to the monolythic core it's too heavy to start/stop constantly. It works but it's far from ideal... Anyone that's serious about programming should give at least one of the different scripting languages like python and ruby a try. After using that for a bit you'll never switch back willingly Link to comment
rice.shawn Posted December 25, 2014 Share Posted December 25, 2014 After using that for a bit you'll never switch back willingly But I have gone back willingly. smarg19 1 Link to comment
wolph Posted December 25, 2014 Share Posted December 25, 2014 True... I stand corrected. Although I do think that Alfred Workflows are not a great representation of the power of a language Link to comment
Andrew Posted December 28, 2014 Share Posted December 28, 2014 Quick update, this is going to be a little more clever now... There will still be a custom fixed delay mode for if it suits your workflow better. tone 1 Link to comment
Carlos-Sz Posted December 29, 2014 Share Posted December 29, 2014 Quick update, this is going to be a little more clever now... There will still be a custom fixed delay mode for if it suits your workflow better. Very, very interesting feature. It’s kind of sad that Evernote app 5.6+ kind of broke my workflow but I’ll make some tests to take advantage of the delay. I can see that my rename workflow can be more responsive when managing lots of files because it creates an HTML preview every time the script runs and now I can control that in a better way. Thank you. Great feature. Link to comment
shortymcsmalls Posted December 29, 2014 Share Posted December 29, 2014 This is fantastic. I'm currently working on workflow to search a remote API and return results. The script currently returns results on an incomplete query first, so being able to delay until the user has finished typing will greatly increase the effectiveness of this script. Link to comment
tone Posted January 21, 2015 Share Posted January 21, 2015 Really looking forward to this feature! No more hammering web APIs with every keystroke. Link to comment
dfay Posted January 27, 2015 Share Posted January 27, 2015 After all the excitement over Alfred Remote wore off (or dissipated enough to think clearly), I noticed this in the release notes of 2.6: "New Script Filter runtime behaviour options giving more control over when scripts are executed" Link to comment
rice.shawn Posted January 27, 2015 Share Posted January 27, 2015 Yep. It's in there. Now you can redo all of your workflows! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now