Jump to content

xtin

Member
  • Posts

    46
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Thanks
    xtin got a reaction from Myo Myint Aung in TeleFred - Chat through Telegram   
    Hey! After 6 Years of Mac abstinence I'm back to OSX and Alfred was a main reason to switch back
     
    But what Skype was then, Telegram is today and I saw that there is no Workflow for Telegram 😪 - unbearable.
     
    So here it is. It's a first rough prototype but it does exactly what it should.
    It's a quite decent prototype, still lacking the really cool features, but quite stable - yay.
     
    UPDATE: I've switched to delivering a self-compiled version of telegram-cli from a more up-to-date repo, 'treset' should unlock it - but please let me know if it doesn't run. You might have to run "brew install telegram" nonetheless to install all the linked libraries it requires - I can't really test without a second Mac around. If you don't like binary blobs, feel free to build "telegram-cli" yourself from the kenorb-contrib repo and replace it in the workflow's directory.
     
    t - write to a user or group, see history 
    th - show history with user and send message
    tc - Talk to Groups
    tr - Quick reply to last user
    ta - Activate Telegram with user selected
    treset - Delete cache files (should have no effect), remove com.apple.quarantine flag from telegram-cli and start telegram-cli in terminal window, so you can 
     
    it requires that you install telegram-cli, which - if you have brew installed - is a mere "brew install telegram" away.
     
    Before you can use it, you have to run 'treset' once, to remove the quarantine-flag from telegram-cli and log into telegram! 
     
    Telegram session information is stored in /.telegram-cli and not in the workflow directory.
     
    = Releases =
    0.0.1: Initial Release with commands: t, th
    0.0.2: Added tr, tc
    0.0.4: Major update: own telegram-cli from different repo (https://github.com/kenorb-contrib/tg, vysheng's seems abandoned, and brew installs the one from vysheng), merged th, tc and t, added ta to activate telegram with a certain user selected
     
    = Get It =
    https://github.com/xtin/TeleFred/blob/master/TeleFred.alfredworkflow
     
    = Wish List =
    - tg - Talk to Groups - currently limited because telegram-cli segfaults on the dialog_list command (known bug: https://github.com/vysheng/tg/issues/1580 ) - so we don't know what groups there are.
    - tl - show 5 last conversations (likely victim to same bug)
    - tr - Quick reply to last user
    - tc - Call user
    - tclip - Send clipboard to user
    - tss - Send last screenshot to user
    - Show media in the history
    - Load user pics and show them in the preview
     
    = If you want to help, that's very welcome! You can also talk to me on Telegram: t.me/raf_ael =

  2. Like
    xtin got a reaction from Tyler Eich in Send the content of the input line from ScriptFilter to the next step as {input}   
    Many scripts that rely on external sources like web services or databases need some considerable time to evaluate.  As Alfred will always send the content of the currently selected Item if you press enter, it can only submit what has been entered up to the last successful evaluation of the script. Now for scripts where you input text, e.g. a chat message, where upon pressing enter you want to do something with that message, even if processing it has not finished yet, it would be super useful if you can access the content of the input line from the ScriptFilter in the Script, maybe as {input}. 
     
    (My current usecase is implementing skyping via Alfred, I display the last messages between the user and the currently selected friend as items, it really does not matter which one is selected to submit the message, however it is super important that the complete input string is sent to the script so it can be sent to skype, as otherwise parts of the messages will be missing. Unfortunately the SQLite query to fetch said data takes a while (maybe 50 to 100ms), enough to consistently eat my smilies or at least their mouths, which is a horrible thing to do to smilies I think this should be relatively simple to implement and provide a huge benefit to Alfred, namely be able to chat with it fluently. (Or write E-Mails, or...) )
     
    (This a result of this thread: http://www.alfredforum.com/topic/1416-incomplete-query/)
  3. Like
    xtin got a reaction from mklement0 in Debug Mode!   
    Right now, if Alfred has an Error in the XML it receives or cannot parse due to encoding problems, it will just not parse it.
     
    Could you please add a "show errors/debug" checkbox for workflows, so that these parsing errors are displayed as XML replies? It would make creating extensions and more importantly remote debugging strange problems a LOT easier!
     
    Also, a minor one: if you use python and do
    print u"some string containing üäöàéè", Alfred will simply ignore it, while the same as a non unicode string works. 
  4. Like
    xtin got a reaction from mklement0 in Send the content of the input line from ScriptFilter to the next step as {input}   
    Many scripts that rely on external sources like web services or databases need some considerable time to evaluate.  As Alfred will always send the content of the currently selected Item if you press enter, it can only submit what has been entered up to the last successful evaluation of the script. Now for scripts where you input text, e.g. a chat message, where upon pressing enter you want to do something with that message, even if processing it has not finished yet, it would be super useful if you can access the content of the input line from the ScriptFilter in the Script, maybe as {input}. 
     
    (My current usecase is implementing skyping via Alfred, I display the last messages between the user and the currently selected friend as items, it really does not matter which one is selected to submit the message, however it is super important that the complete input string is sent to the script so it can be sent to skype, as otherwise parts of the messages will be missing. Unfortunately the SQLite query to fetch said data takes a while (maybe 50 to 100ms), enough to consistently eat my smilies or at least their mouths, which is a horrible thing to do to smilies I think this should be relatively simple to implement and provide a huge benefit to Alfred, namely be able to chat with it fluently. (Or write E-Mails, or...) )
     
    (This a result of this thread: http://www.alfredforum.com/topic/1416-incomplete-query/)
  5. Like
    xtin got a reaction from vdesabou in Alfred to Skype Interaction   
    That's great thank you, exactly what i needed! I will publish a version today that will remedy that problem
     
    What you you can do is rename your dad's visible name in skype so it contains "Dad", you should then be able to "s dad", where he should be the first hit. (If not, add "dad" twice, the entries are sorted by the number of characters that are match your query, e.g. if you do "s dad" and the skypename of your dad is daddaddad, it will return 9 as 9 chars have been matched ) After you changed the name, run "s update" to load the namechange into the cache.
     
    (Note: What is displayed as name is what the user has set as his full name, only if no fullname is set, the given name (the one you set) is displayed, for searching though, the account name, fullname and given name are used)
  6. Like
    xtin got a reaction from arsenty in Alfred to Skype Interaction   
    Last but not least: Skype! Send messages directly with alfred and call users. You no longer need to use your mouse to chat in skype



    Skype needs to be running for this to work. You should receive a warning from skype, that a programm wants to access its data - accept.

    Commands:
    s - autocompletion from skype contact list, then send message. Also displays last received message.
    sc - autocompletion from skype contact list, call users.
    snew - the 5 newest messages, simply select one for reply.
    sr - reply to last user.

    There is a Contact Action for using the alfred contacts to call skype, simply create a new Contact Action as described here http://support.alfredapp.com/workflows:config:triggers-contact-action and select "Call Skype", if you have saved skype usernames in your contacts as well, they should work too.

    There's also a python equivalent (PyFred) of the PHP Workflows-Script, for those who <3 python over php.
    Rather use this: No need to reinvent wheels http://www.alfredforum.com/topic/403-alp-a-python-workflow-module/
     
    Requirements:
    Alfred, Skype, Python (preinstalled in OSX)
     
    Download:
    http://d.pr/f/cimZ
     
    Known Issues:
    - When you hit enter too fast, a few letters can be cut off. I have optimised what is possible to remedy this, to completely remove it, a feature change in Alfred is necessary. Simple fix, add a space after your message.

    Wishlist/TODO: (decreasing importance)
    - Filter empty Messages. (i.e. if they contained call information that is filtered already)
    - Find user image
    - sr without autcomplete
    - Display status for the users with icon (maybe, if you know a good way to compose images without using libraries that need installation let me know...)
    - Global user search and add
    - More sanity checks: Was update successful, if it fails, why? etc.
    - Clean XML replies from Smilies code etc.
    - sr - directly reply to last person.  - alt opens the chat window. (can't switch current window, but bring skype to front)
    - Call skype # from adress book.

    Changelog:
    v0.3 (http://d.pr/f/cimZ)
    - sr now directly replies, without autocomplete
    - fetches all user images completely
    - shows user status on search, snew, etc.
    - buxfixes for encoding, snew, ...
    - more caching, faster response.
     
    v0.2 (http://d.pr/f/FcIO)
    - Display the history of a chat when replying.
    - New Command sr, to directly reply to a user.
    - If you use sc with an unknown username or directly a phone number, it suggests calling as well as updating the friends list. (must have accidentially removed this, will be back.)
    - Encoding works properly v2
    - Open Skype with alt/enter.

    v0.1.1 (http://d.pr/f/RGTo)
    - Skype startup bug removed
    - More debugging
    - Encoding works properly
    - snew for newest messages
    - Contact Action to allow calling from contacts.
    v0.1
    - Initial release

    License:
    CC BY-SA 3.0
    Any feedback or bug reports are highly appreciated!
  7. Like
    xtin got a reaction from Sridhar Katakam in Alfred to Skype Interaction   
    Last but not least: Skype! Send messages directly with alfred and call users. You no longer need to use your mouse to chat in skype



    Skype needs to be running for this to work. You should receive a warning from skype, that a programm wants to access its data - accept.

    Commands:
    s - autocompletion from skype contact list, then send message. Also displays last received message.
    sc - autocompletion from skype contact list, call users.
    snew - the 5 newest messages, simply select one for reply.
    sr - reply to last user.

    There is a Contact Action for using the alfred contacts to call skype, simply create a new Contact Action as described here http://support.alfredapp.com/workflows:config:triggers-contact-action and select "Call Skype", if you have saved skype usernames in your contacts as well, they should work too.

    There's also a python equivalent (PyFred) of the PHP Workflows-Script, for those who <3 python over php.
    Rather use this: No need to reinvent wheels http://www.alfredforum.com/topic/403-alp-a-python-workflow-module/
     
    Requirements:
    Alfred, Skype, Python (preinstalled in OSX)
     
    Download:
    http://d.pr/f/cimZ
     
    Known Issues:
    - When you hit enter too fast, a few letters can be cut off. I have optimised what is possible to remedy this, to completely remove it, a feature change in Alfred is necessary. Simple fix, add a space after your message.

    Wishlist/TODO: (decreasing importance)
    - Filter empty Messages. (i.e. if they contained call information that is filtered already)
    - Find user image
    - sr without autcomplete
    - Display status for the users with icon (maybe, if you know a good way to compose images without using libraries that need installation let me know...)
    - Global user search and add
    - More sanity checks: Was update successful, if it fails, why? etc.
    - Clean XML replies from Smilies code etc.
    - sr - directly reply to last person.  - alt opens the chat window. (can't switch current window, but bring skype to front)
    - Call skype # from adress book.

    Changelog:
    v0.3 (http://d.pr/f/cimZ)
    - sr now directly replies, without autocomplete
    - fetches all user images completely
    - shows user status on search, snew, etc.
    - buxfixes for encoding, snew, ...
    - more caching, faster response.
     
    v0.2 (http://d.pr/f/FcIO)
    - Display the history of a chat when replying.
    - New Command sr, to directly reply to a user.
    - If you use sc with an unknown username or directly a phone number, it suggests calling as well as updating the friends list. (must have accidentially removed this, will be back.)
    - Encoding works properly v2
    - Open Skype with alt/enter.

    v0.1.1 (http://d.pr/f/RGTo)
    - Skype startup bug removed
    - More debugging
    - Encoding works properly
    - snew for newest messages
    - Contact Action to allow calling from contacts.
    v0.1
    - Initial release

    License:
    CC BY-SA 3.0
    Any feedback or bug reports are highly appreciated!
  8. Like
    xtin got a reaction from CarlosNZ in Alleyoop: Update Alfred Workflows   
    That is awesome, will include it into mine asap. One neat thing would be to have another command "ooplist" or so, to see which workflows are oop-enabled.
  9. Like
    xtin got a reaction from vossi__ in Alfred to Skype Interaction   
    Last but not least: Skype! Send messages directly with alfred and call users. You no longer need to use your mouse to chat in skype



    Skype needs to be running for this to work. You should receive a warning from skype, that a programm wants to access its data - accept.

    Commands:
    s - autocompletion from skype contact list, then send message. Also displays last received message.
    sc - autocompletion from skype contact list, call users.
    snew - the 5 newest messages, simply select one for reply.
    sr - reply to last user.

    There is a Contact Action for using the alfred contacts to call skype, simply create a new Contact Action as described here http://support.alfredapp.com/workflows:config:triggers-contact-action and select "Call Skype", if you have saved skype usernames in your contacts as well, they should work too.

    There's also a python equivalent (PyFred) of the PHP Workflows-Script, for those who <3 python over php.
    Rather use this: No need to reinvent wheels http://www.alfredforum.com/topic/403-alp-a-python-workflow-module/
     
    Requirements:
    Alfred, Skype, Python (preinstalled in OSX)
     
    Download:
    http://d.pr/f/cimZ
     
    Known Issues:
    - When you hit enter too fast, a few letters can be cut off. I have optimised what is possible to remedy this, to completely remove it, a feature change in Alfred is necessary. Simple fix, add a space after your message.

    Wishlist/TODO: (decreasing importance)
    - Filter empty Messages. (i.e. if they contained call information that is filtered already)
    - Find user image
    - sr without autcomplete
    - Display status for the users with icon (maybe, if you know a good way to compose images without using libraries that need installation let me know...)
    - Global user search and add
    - More sanity checks: Was update successful, if it fails, why? etc.
    - Clean XML replies from Smilies code etc.
    - sr - directly reply to last person.  - alt opens the chat window. (can't switch current window, but bring skype to front)
    - Call skype # from adress book.

    Changelog:
    v0.3 (http://d.pr/f/cimZ)
    - sr now directly replies, without autocomplete
    - fetches all user images completely
    - shows user status on search, snew, etc.
    - buxfixes for encoding, snew, ...
    - more caching, faster response.
     
    v0.2 (http://d.pr/f/FcIO)
    - Display the history of a chat when replying.
    - New Command sr, to directly reply to a user.
    - If you use sc with an unknown username or directly a phone number, it suggests calling as well as updating the friends list. (must have accidentially removed this, will be back.)
    - Encoding works properly v2
    - Open Skype with alt/enter.

    v0.1.1 (http://d.pr/f/RGTo)
    - Skype startup bug removed
    - More debugging
    - Encoding works properly
    - snew for newest messages
    - Contact Action to allow calling from contacts.
    v0.1
    - Initial release

    License:
    CC BY-SA 3.0
    Any feedback or bug reports are highly appreciated!
  10. Like
    xtin got a reaction from MuppetGate in Debug Mode!   
    Right now, if Alfred has an Error in the XML it receives or cannot parse due to encoding problems, it will just not parse it.
     
    Could you please add a "show errors/debug" checkbox for workflows, so that these parsing errors are displayed as XML replies? It would make creating extensions and more importantly remote debugging strange problems a LOT easier!
     
    Also, a minor one: if you use python and do
    print u"some string containing üäöàéè", Alfred will simply ignore it, while the same as a non unicode string works. 
  11. Like
    xtin got a reaction from greghoch in Send the content of the input line from ScriptFilter to the next step as {input}   
    Many scripts that rely on external sources like web services or databases need some considerable time to evaluate.  As Alfred will always send the content of the currently selected Item if you press enter, it can only submit what has been entered up to the last successful evaluation of the script. Now for scripts where you input text, e.g. a chat message, where upon pressing enter you want to do something with that message, even if processing it has not finished yet, it would be super useful if you can access the content of the input line from the ScriptFilter in the Script, maybe as {input}. 
     
    (My current usecase is implementing skyping via Alfred, I display the last messages between the user and the currently selected friend as items, it really does not matter which one is selected to submit the message, however it is super important that the complete input string is sent to the script so it can be sent to skype, as otherwise parts of the messages will be missing. Unfortunately the SQLite query to fetch said data takes a while (maybe 50 to 100ms), enough to consistently eat my smilies or at least their mouths, which is a horrible thing to do to smilies I think this should be relatively simple to implement and provide a huge benefit to Alfred, namely be able to chat with it fluently. (Or write E-Mails, or...) )
     
    (This a result of this thread: http://www.alfredforum.com/topic/1416-incomplete-query/)
  12. Like
    xtin got a reaction from Benzi in "Todo" - a todo list workflow, with Remember The Milk (beta) support   
    This is an awesome workflow! 
     
    And I have a bunch of ideas
     
    In increasing complexity ^^:
    - Allow multiple tags.
    - Copy all tasks that are currently displayed to clipboard. This would make it easy e.g. to aggregate tasks throughout the day and print them or email them as batch to so. 
    - Add deadlines to tasks (maybe add a cronjob to periodically check for due items, use ! as keyword (!tomorrow !23.12.2014, ...))
    - Add importance to tasks (maybe with stars? from * to *****, the good thing is that entering 5 stars takes a while, so one is not tempted to over use it , on the other hand this can be done by tags... so maybe not so necessary)
    - Allow people to share lists. (This could be done by creating tags whose content is saved to an extra file, which could be put on a dropbox share or mapped network drive.)
    - Sync with some todo app (maybe reminders, or toodledo, etc.), because my todo list needs to be portable, e.g. run on my android phone (I'm using wunderlist right now, but since version 2.0 hacking the db file is not easy anymore and there's no api up until now, so I can't suggest that at the time being =( )
  13. Like
    xtin got a reaction from anas in Alfred to Skype Interaction   
    Last but not least: Skype! Send messages directly with alfred and call users. You no longer need to use your mouse to chat in skype



    Skype needs to be running for this to work. You should receive a warning from skype, that a programm wants to access its data - accept.

    Commands:
    s - autocompletion from skype contact list, then send message. Also displays last received message.
    sc - autocompletion from skype contact list, call users.
    snew - the 5 newest messages, simply select one for reply.
    sr - reply to last user.

    There is a Contact Action for using the alfred contacts to call skype, simply create a new Contact Action as described here http://support.alfredapp.com/workflows:config:triggers-contact-action and select "Call Skype", if you have saved skype usernames in your contacts as well, they should work too.

    There's also a python equivalent (PyFred) of the PHP Workflows-Script, for those who <3 python over php.
    Rather use this: No need to reinvent wheels http://www.alfredforum.com/topic/403-alp-a-python-workflow-module/
     
    Requirements:
    Alfred, Skype, Python (preinstalled in OSX)
     
    Download:
    http://d.pr/f/cimZ
     
    Known Issues:
    - When you hit enter too fast, a few letters can be cut off. I have optimised what is possible to remedy this, to completely remove it, a feature change in Alfred is necessary. Simple fix, add a space after your message.

    Wishlist/TODO: (decreasing importance)
    - Filter empty Messages. (i.e. if they contained call information that is filtered already)
    - Find user image
    - sr without autcomplete
    - Display status for the users with icon (maybe, if you know a good way to compose images without using libraries that need installation let me know...)
    - Global user search and add
    - More sanity checks: Was update successful, if it fails, why? etc.
    - Clean XML replies from Smilies code etc.
    - sr - directly reply to last person.  - alt opens the chat window. (can't switch current window, but bring skype to front)
    - Call skype # from adress book.

    Changelog:
    v0.3 (http://d.pr/f/cimZ)
    - sr now directly replies, without autocomplete
    - fetches all user images completely
    - shows user status on search, snew, etc.
    - buxfixes for encoding, snew, ...
    - more caching, faster response.
     
    v0.2 (http://d.pr/f/FcIO)
    - Display the history of a chat when replying.
    - New Command sr, to directly reply to a user.
    - If you use sc with an unknown username or directly a phone number, it suggests calling as well as updating the friends list. (must have accidentially removed this, will be back.)
    - Encoding works properly v2
    - Open Skype with alt/enter.

    v0.1.1 (http://d.pr/f/RGTo)
    - Skype startup bug removed
    - More debugging
    - Encoding works properly
    - snew for newest messages
    - Contact Action to allow calling from contacts.
    v0.1
    - Initial release

    License:
    CC BY-SA 3.0
    Any feedback or bug reports are highly appreciated!
×
×
  • Create New...