Jump to content

bengr

Member
  • Posts

    34
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by bengr

  1. On 10/14/2019 at 6:06 PM, Andrew said:

    If you update to the Alfred 4.0.5 b1116 pre-release, the duplicates should now be gone, and Alfred will also show /Applications/ as the path where appropriate.

     

    Cheers,

    Andrew

     

    Is this update also coming to Alfred 3, or just 4?

  2. Hey,

    I saw a workflow request on /r/Alfred that interested me as well, and saw that no one made it yet, so I quickly wrapped up one with a little bit of Google-ing.

     

    Basically, it's a really basic workflow that moves your current window between monitor(s) with the tap of a hotkey or by entering "jump" into Alfred (both are configurable of course).

     

    I don't think I'll be maintaining this workflow, as there really is not much to maintain, it's a very simple AppleScript behind, but feel free to comment here and I'll check it every once in a while to see if anything is needed.

     

    Download

  3. Thanks for the workflow, this is the first one I found that actually works (for the most part, see below).

    Please note that if you're trying to rename a file with more than one word, you only get the first word as the default "rename-to" filename.


    I don't have much time to look at the code and try to fix it unfortunately, but I'm sure you'll push an update fixing this soon enough, shouldn't be a huge bug to fix, considering the renaming works fine, just the preview doesn't "populate" with the default filename properly.

  4. This could be accomplished with a workflow for now.

    This could be made in a workflow, like most other stuff in Alfred to be honest (but that's just because the workflows are such a powerful thing in Alfred), but it's such a core thing that it should be integrated into Alfred itself. Hell, it shouldn't even be a Powerpack feature.

     

    You can say the same thing on the calculator, custom searches, Terminal execution, file search etc. The list just goes on and on (and if I'm not mistaken, Andrew said once on Twitter that every feature in Alfred 2 is essentially made by a workflow), but that doesn't mean that you shouldn't integrate stuff into Alfred itself. Core thing should come out of the box, and more so when executing them in Alfred itself (integrated rather in a user-made workflow) would be a lot nicer and less "hack-ish". This is a great example - to rename a file using a workflow, you have to re-invoke Alfred after the file action (unless you do it in an AppleScript, which can pop up a message box with a textbox in it etc), but that feels really hack-y to me.

  5. Hey,

    I suggested this feature back in v1 already, but thought of maybe suggesting it again, hoping it would be added to Alfred 2 sometime.

     

    From the file action menu there's no option to rename a file. I can't think it would be that hard to incorporate into Alfred in a nice fashion.

     

    This can be done in a workflow I believe, but it would be made in a really "ugly" fashion (like the color labeling workflow here, which re-invokes Alfred after the action is selected), and it's such a useful thing that I think it should be a part of Alfred itself.

     

    Please add this to Alfred.

     

    Thanks,

    Ben

  6. Hey all, I've developed a version re-written from the group up again, to ditch WolframAlpha's slow and sluggish API in favor of a faster, lighter one of worldweatheronline.com. This version can be found here, if anyone is interested (also updated the main topic).

     

    However, I would recommend using CarlosNZ's TimeZones workflow instead of this one, since it's more robust, custom and faster (relies on Google's API. And to be honest, no service can compete with Google's speeds).

     

    Therefore, from hereon forwards I'm freezing the development of TimeIn, as I don't have that much time to develop it, especially since TimeZones does the same thing, better.

  7. Great workflow – thanks!  :)

     

    Is it possible to change the 12-hour-system (am/pm) to the 24-hour-system?  :huh:

    The workflow currently relies on WolframAlpha for getting it's data. From my testing, it only shows time in 12-hour format unfortunately (I'd also like it to be location-based, or somehow be able to get the time in a 24 hour format).

    I'll have to look into other services and see if they're able to retrieve the time in other formats, or build something to convert 12 hours format to a 24-hour one.

     

    In any case, I'll look into it when I have the time.

  8. I did everything mentioned here successfully :  'timein setup' and updated time.py to include my WolframAlpha AppID (where I registered)

     

    In terminal I ran the :  sudo easy_install wolframalpha 

     

    I then get a warning message (Improper use of the sudo command lead to data loss bla bla bla )

     

    and then it asks for my password, which I can't put in, because the keyboard stops functioning ?!?!

     

    Maybe thats what I'm not doing right ???

     

    Help :)

    I suppose you never messed around in Terminal before, huh?  ^_^ .

    When you're required your admin password, you don't see the input. So just type it in, trusting that the keyboard works, and press return when you're finished, you should see the command running.

  9. Wow thanks for this. Another app no longer needed.

     

    It would be great if you could find out the time on a specific local time / date as well. Then it could be used to arrange meetings. Perhaps something like....

     

    timein New York at 8:20

     

    timein New York at 16:30 on 12/5/2013

    You mean that in the first query, 8:20 is the time in your location, and you'd get the time in New York for that time? Or the other way around (getting the local time for a given time (8:20 in this case) in New York)?

  10. just curious how do i make it do a post notification instead? Cuz mayb internet is slow and waiting for the query from screen is odd. It would be great, if i can just enter and then when it is ready, it will just show on notification. :) Nice workflow Something to think about, it definitely make the workflow better in terms of user experience...

    Here's a quick change I made to the existing workflow to work in the said manner - just use it as usual, and it'll output to the Notification Center/Growl. You can download it here.

    Also, I noticed that it now works for cities too (and not just for countries), so I'll look into this issue later to try and figure out why Wolfram doesn't like city flags, and make it behave again :).

  11. For the two word issue, can you please downloading the version again? I noticed this myself a bit late, but I hope this is now fixed.

     

    If you have en setup as default, searching for "muller thomas" should bring up "Thomas Müller" as follows

    The new version works perfectly, tried both English and Hebrew. Thanks :).

  12. Here is my version that I am using for your reference. It is based on the version from Ted, the code for which is located in GitHub at: https://github.com/ctwise/alfred-workflows

     

    NOTE:

    • Code changes to main.rb for setting application and application_location variables
    • I have included a command "m :refresh", which will refresh the menu cache of the frontmost application. Some applications have dynamic menu bar items, e.g. Chrome will populates the history menu with the URL you have visited. If you want to force a cache refresh, use this command

     

    I am contributing code back to Ted via GitHub, so eventually that would be the place to look.

    Hey,

    I just tried this in Chrome and it doesn't seem to populate results back to Alfred.

    I'm just getting stuck on this screen:

    Screen%20Shot%202013-03-17%20at%2013.11.

  13. Hi, awesome workflow! I am using ctwise's version and its working great overall.

     

    A couple of issues I noticed were to do with the workflow trying to find the application_location variable in main.rb and because of which the menu command icons for the specific application would not show up

    e.g.

    for Alfred Preferences, the menu commands icon were that of an empty file icon

    for Google Chrome in full screen mode (Lion), the icon would not be shown. No issues in normal mode.

     

     

    The following lines were added/changed in main.rb to fix most of the issues I found.

    
    

     

    For what its worth, hope this is useful for someone...

     

    EDIT (for developers): For checking if the application and application_location variables are correctly set up, use this workflow.

    Keyword is "frontmost" and it displays App name and location of the front most app... just to test things out.

    Could you maybe post the new workflow? I tried changing the file etc but after everything I just get stuck in the "Loading..." phase in Alfred and it doesn't seem to populate with anything. I tried multiple applications.

  14. Hi there,

    Can you try downloading the latest workflow from my original download link?

     

    After that, you need to change en.wiki to zh.wiki in two places in w.py.

     

     

    in search_for()
        rt_api = "http://zh.wikipedia.org/w/api.php"
    
    in resultParse()
        item_arg = u'http://zh.wikipedia.org/wiki/' + urllib.quote(item['title'].encode("utf8"))
        
    
    

     

    I tried that and looked up http://zh.wikipedia.org/wiki/香港最高電影票房收入列表 (well to be honest, I just typed in some Chinese characters and that was one of the search results... I have no clue what that page is about  :) )

    Thanks for the change.

    I combined both versions into this. Basically allows "w en <query>" for English Wikipedia and "w he <query>" for Hebrew Wikipedia.

    You can easily change and duplicate for more languages, just look at the w_he.py file in the workflow and replace every occurrence of "he" with your language's shortened term.

     

    Also, I'm sure the main script by Benzi can be changed like so that it'll accept another parameter for language, but I too lazy to change it  ^_^ .

    Basically you'll need to add another parameter for both the search_for and the resultParse functions, that'll be the language, than parse the query into the first word (which'll be the language), and the rest, which'll be the rest of the query (the actual query that'll be passed on to Wikipedia to be searched for).

  15. Things like this have been noted as potential features in the future. For now, you could fake things like this by naming the second step (keyword) and then using AppleScript in the last piece of the first step to make Alfred show again with the keyword and whatever arguments already populated.

     

    Let me know if you have any questions on how to do this.

     

    Thanks

    Thanks. I currently don't have any use for this feature myself, as I wrote above. I just thought it might be better to write it down here in case someone had an idea oh how to leverage such a feature in their workflow(s). If I'll have an idea that might need this I'll be sure to ask you how to do this though, thanks again.

  16. Basically what the title says.

    I'm not 100% sure myself if, or how this might be useful to anyone, but I figured I'd at least throw it out there in case somebody might have a good use to it.

     

    It'll work in a manner similar to passing a query from one action to the other on a single workflow, but you could set an action to use another (chosen) workflow(s) with the given {query}.

     

    This could be utilised, for example in Andrew's "Should I watch this movie?" workflow, where you could just pass the query to three different workflows. This way the user could utilize the use of the workflow further.

     

    P.S

    This could cause some headache and redundancy I presume, since workflows might count on one another, they'll need to install more workflows to work, so something like dependencies in apt-get might be needed (if anyone knows how it works basically, they have a great system for checking for dependencies when installing packages).

  17. I'm also interested in this feature.

    You can't always use a regex to keep things under control, as sometimes the user input doesn't have any special meaning that can be roofed under a regular expression.

     

    I don't have a good example(s) for script(s) that might use this feature apart from mine at least, but I'm sure people on here are creative enough and will find a use to it quickly enough :).

     

    TL;DR Please add this feature as a checkbox under the settings of a 'Script Filter' in a workflow. I'm sure it'll be useful for enough workflows.

  18. Thank you very much!

     

    I would like to use this for english and german wikipedia, so I put both in. You can chose by typing "wiki en" or "wiki de". Have fun, germans: http://d.pr/f/LS3q

    I was just about to try and implement the same thing for Hebrew, glad someone already did the hard work for me  :P .

    Oddly enough, I can't get it to work in Hebrew though, I presume it has something to do with the script's encoding, which I wasn't able to change to UTF-8 for some reason and still have the script working.

    Would be more than glad if someone could look into this and maybe help me solve this :).

  19. Thanks! I ran the Terminal command and it asked for my password (maybe that's part of the problem with 'timein setup'?) and then it successfully installed the package. Still not working though. When I type "timein London" this is what I get after a while:

     

    "L - The class of decision problems solvable by a deterministic Turing"

     

    I can't get any other queries to return a result.

     

    Here's the Terminal output, if that helps.

    ---

    Installed /Library/Python/2.7/site-packages/wolframalpha-1.0.2-py2.7.egg
    Processing dependencies for wolframalpha
    Finished processing dependencies for wolframalpha

    Seems to me like the WolframAlpha API was installed successfully, so that's good (as confirmed by the Terminal output, as well as the result you're getting for your query, which are obviously from WolframAlpha, based on their content).

     

    Please try to enter another query, not for London (oddly enough, I'm getting the same result as you are at the moment for London). Maybe try:

    "timein New Zeland", that seemed to have worked for me just now.

×
×
  • Create New...