Jump to content

hubertcampan

Member
  • Content Count

    9
  • Joined

  • Last visited

  1. +1 for this request. Outed TextExpander and missing this.
  2. Vitor, Thanks for your reply. I do understand what you say and have searched that path. I cannot find where to check "escape single quote". It is the case for "spaces", "backslash", … but no "single quote". That is in the Script Filter workflow Alfred preferences window. Or, do I have to escape them myself ? I'll try that last thing. Cheers Hubert Alfred v2.0.6 (203) OSX 10.8.4 French locals, fr_FR
  3. Hi all, Can you tell me if the single quote ['] is allowed in the search window ? I'm now creating a workflow with a filter script, but when testing entering a single quote (like in "It's magic") it falls back to web searches as soon as the single quote is entered. I've tested with some other workflows, even with an empty one. Same problem. My bad if I may have not seen a preference somewhere. Can someone then point me to it ? Cheers ! Hubert Alfred v2.0.6 (203) OSX 10.8.4 French locals, fr_FR
  4. Hi Andrew, It did help me on this topic http://www.alfredforum.com/topic/1907-bash-script-in-workflow-language-of-locals-accented-characters/?p=11799 pointed by _mk_ Thanks. Hubert
  5. @_mk_ Thank you for pointing me in the right direction. It does work indeed. Danke schön @Andrew Problem solved. Thanks to your command line tool. Hubert
  6. Andrew, Thanks, but striping/replacing the accents will not work. The date command will then end in error. I can use Alfred2 as is (that means in EN) and use SED to "translate" any month from FR to EN. I'll see and post if I find a solution. Take care. Hubert
  7. Andrew, thanks for your reply. It could be what you say, I really have no idea. How do I bypass this problem is my question. Cheers. Hubert
  8. Hi all, I've have some problems with determining the locals language in bash script in workflows in Alfred2. I'm on OSX 10.7.5 FR. My script : DATE=$(echo "{query}" | sed -e's/HAEC/CEST/g' -e's/HNEC/CET/g'); export LC_TIME="fr_FR.UTF-8"; date -jf "%d %B %Y %T %Z" "$DATE" "+%Y%m%d%H%M%S" I use it : Select a text date (i.e. : "18 décembre 2006 19:24:12 HNEC"), use my hotkey to launch Alfred2/Workflow/Bashscript Problem : Works • In Alfred2 when month has NO accented character (i.e. : "18 janvier 2006 19:24:12 HNEC") • In terminal as is with or without month with accented characters Does NOT work • In Alfred2 when month has accented character Note : I had to add 'export LC_TIME="fr_FR.UTF-8"' as I assume Alfred bash script works in EN. It didn't work with french dates even though my whole system is in french and it DOES work in terminal without the export command. Also, I had to "translate" HAEC and HNEC as date command doesn't understand this frenchified CEST and CET. Any ideas on how I can bypass this problem ? Is it a bug ? Thanks in advance ! Hubert
  9. Hi all, I've have some problems with determining the locals language in bash script in workflows in Alfred2. I'm on OSX 10.7.5 FR. My script : DATE=$(echo "{query}" | sed -e's/HAEC/CEST/g' -e's/HNEC/CET/g'); export LC_TIME="fr_FR.UTF-8"; date -jf "%d %B %Y %T %Z" "$DATE" "+%Y%m%d%H%M%S" I use it : Select a text date (i.e. : "18 décembre 2006 19:24:12 HNEC"), use my hotkey to launch Alfred2/Workflow/Bashscript Problem : Works • In Alfred2 when month has NO accented character (i.e. : "18 janvier 2006 19:24:12 HNEC") • In terminal as is with or without month with accented characters Does NOT work • In Alfred2 when month has accented character Note : I had to add 'export LC_TIME="fr_FR.UTF-8"' as I assume Alfred bash script works in EN. It didn't work with french dates even though my whole system is in french and it DOES work in terminal without the export command. Also, I had to "translate" HAEC and HNEC as date command doesn't understand this frenchified CEST and CET. Any ideas on how I can bypass this problem ? Is it a bug ? Thanks in advance ! Hubert
×
×
  • Create New...