Jump to content

raguay.customct

Member
  • Posts

    756
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by raguay.customct

  1. As it currently stands, no. The filenames and extensions used are hardcoded in many places in the workflow. I originally created the workflow before I had TaskPaper. I then used the PlainTasks extension for Sublime Text and used the .txt extension.
  2. The t:settodo command will list matching directories as you type the name. Therefore, typing: t:settodo Taskmator should show that directory in the list. Just select the right one. Once selected, the other commands will use that directory for the other commands. If you try to give a path to the command, it will dump into general search because there isn't a directory with that name. Be careful, the t:settodo command will create the directories inside that directory for the different repeating task types. If you don't want those directories there, you should use a different directory.
  3. Okay. That new copy works great. It doesn't die anymore. I will enjoy the workflow as I work with CSS. Thanks.
  4. I'm sorry. It only happens when I type "lcc bb" and then enter. Any partial commands choke it with the debugger outputing: [2016-07-22 22:43:47][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON: Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/raguay/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/039D0861-BAFE-41D9-8019-7CED5CC37445 on line 3 Notice: Undefined index: input in /Users/raguay/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/039D0861-BAFE-41D9-8019-7CED5CC37445 on line 3 {"items": [{"uid":"p","arg":";;1;","title":": ;","subtitle":"...more values to set","text":{"copy":": ;"},"icon":{"path":"\/Users\/raguay\/Dropbox (Personal)\/Richard\/rag\/Alfred\/Sync\/Alfred.alfredpreferences\/workflows\/user.workflow.F1B010D2-09B2-4C6E-B8DC-DE51D80C453D\/icone\/"}}]}
  5. That is working for me. Yes, I develop in php and want to know anything that could cause an error. It helps make more bullet proof coding. But, If I type 'lcc bbs' with an enter, it comes up with a blank Alfred prompt that doesn't respond to any input. But, typing 'lcc bbs s' gives the output: border-bottom-style: solid; just like I would expect. You might want to catch for the return before a complete query.
  6. If you want to learn go development on the Mac, read my tutorial: http://computers.tutsplus.com/tutorials/start-developing-with-go-on-the-mac--cms-21251 I have a go library for making Alfred workflows: https://github.com/raguay/goAlfred And, I show how to create a markdown powered, go based web server: http://code.tutsplus.com/tutorials/building-a-cms-gopress--cms-25073 But, deanishe is right. Go is a compiled language and doesn't play as an interpreted language too well. They did have a go interpreter, but it has fallen out of use. But, you can automate compiling if you set the two mentioned environment variables in your workflow, but I would not recommend it as it would be slow. I always compile inside the workflow and test the compiled code in Alfred. Not too hard.
  7. All I get on the Alfred Prompt is: Warning: controllaFlusso(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.F1B010D2-09B2-4C6E-B8DC-DE51D80C453D/lcc.php on line 760 Notice: Undefined variable: colorpanel in /Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.F1B010D2-09B2-4C6E-B8DC-DE51D80C453D/lcc.php on line 760 {"alfredworkflow": {"arg":"","config":"","variables":{"terminato":"","colorpanel":null,"input":"43;1;0"}}} I was doing the "lss bbs s" as in the example.
  8. Hi, If you use the option tm:selectn, it will show each of the types of converting the text. But, I believe the result isn't what you want. The problem is the PHP library function I am using doesn't handle non-English letters. The library was designed specifically for English only. If you know of a library that works for Swedish, I would make a version for you. I haven't found one myself, yet. Sorry for the inconvenience.
  9. The second part of my Alfred 3 tutorial is published: http://bit.ly/297faOC. This one is on workflow changes.
  10. The second part of my Alfred 3 tutorial is published: http://bit.ly/297faOC. This one is on workflow changes.
  11. The first part of the Alfred 3 tutorial is here: http://computers.tutsplus.com/tutorials/alfred-3-whats-new--cms-26726 The second part talks about workflow changes.
  12. The first part of the Alfred 3 tutorial is here: http://computers.tutsplus.com/tutorials/alfred-3-whats-new--cms-26726 The second part talks about workflow changes.
  13. Alfred's Own: https://www.alfredapp.com/help/workflows/ My Tutorials: http://computers.tutsplus.com/tutorials/alfred-workflows-for-advanced--mac-60963 http://computers.tutsplus.com/tutorials/alfred-workflows-for-intermediates--mac-60557 https://computers.tutsplus.com/tutorials/alfred-workflows-for-beginners--mac-55446 http://computers.tutsplus.com/tutorials/alfred-debugging--cms-20439?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+mactuts+%28Tuts%2B+Mac+Computer+Skills%29 And I have two more being scheduled on the new items in Alfred 3 workflows. My courses above are about Alfred 2, but they apply to Alfred 3 as well. I will post a note on the forums when my new tutorials are live.
  14. My setup is with Alfred on my laptop and mini sharing preferences by Dropbox. Works great except for the setting of variables in the latest version. I have a workflow that I am setting the path to a work directory in an environment variable. But, that path is different on the two systems. I'm going to have to move it to a storage file in the data directory instead to be different on the two systems. Since these variables would most likely be system dependent, they shouldn't be stored in the shared preferences, in my opinion. Also, it would be nice to have a way to programatically alter the environment variable from launch to launch. I can use the Arg and Vars to set it different for a run on the workflow, but that is lost when the workflow completes. An option to save it would be nice. Thanks.
  15. Since .alfred3workflow is a valid extension and Alfred 2 will not load a workflow that was exported by Alfred 3, shouldn't the extension given to a workflow exported by Alfred 3 be .alfred3workflow? It currently saves as .alfredworkflow and will not allow you to add the 3 in the dialog. I have to manually add it after saving.
  16. I'm sorry. I thought I was using clipboard history, but I have <ctrl-c> tied to seven macros that copy into named clipboards and <ctrl-v> to seven macros that paste from the same named clipboards. Then I use these named clipboards in other scripts to build up text expansions using the named clipboards. So, it simulates a clipboard history, but doesn't really do it. The only action for clipboard history is the "Set Clipboard to Past Clipboard x" where x is 1,2,3,.... Then paste from the clipboard. Therefore, you can make a macro that: Insert text "this is clipboard 1: " by typing Set Clipboard to Past Clipboard 1 Paste Insert text "This is clipboard 2: " by typing Set Clipboard to Past Clipboard 2 Paste You would have to use the "Insert Text by typing" to not mess up the clipboard order. But remember, the "Set Clipboard to Past Clipboard 2" made the current clipboard to the second paste clipboard and removed that one from history, but what was the current clipboard is now the Past Clipboard 1. This does get confusing some.
  17. Hi, I have been compiling commonly misspelled words from my experience and from others for a while. I used to have the list in TextExpander, but I just moved them over to Alfred 3 since I quit using TE. If your interested, I have them here: https://db.tt/gcJPuiEv. Maybe Packal will get a snippet category as well. (hint)
  18. No. It supplements it. Alfred currently doesn't have any way to get to the clipboard history from any type of script, environment variable, etc. Therefore, if you need that kind of information you will have to have a supplementary piece of software to fill in the gap. I use Keyboard Maestro for that functionality, but CopyQ is free. I have asked for it in the "Alfred Feature Suggestions" forum.
  19. In Alfred alone, no. You can if you install CopyQ and use it's script interface to be past clipboard entries. Works pretty good, but I have found times when CopyQ doesn't catch a new clipboard item. You can get it here: https://sourceforge.net/projects/copyq/
  20. The keyword is having any beginning and trailing spaces removed upon import. Since I am importing a large number of whole word matches, they have to have the leading and trailing spaces to match properly. You can see the import file here: https://db.tt/gcJPuiEv.
  21. Cursor movement like this is best done in the editor itself. For example, Sublime Text allows snippets to have many cursor locations and you tab to each one to fill them in. That would never work for any generic application. It works for Sublime because the program is in complete control of itself already. It's not hacking the UI to get an effect. My Quiver Snippet workflow (and the plain file version as well) uses Keyboard Maestro or TextExpander (which I quit supporting since I no longer use it) to move the cursor to a single location. The Keyboard Maestro solution is buggy since it is forcing the back arrow key. For short distances, it does fine. But for a lot of text, it misses quite often. Part of the bugs is that you are not sure when the system will paste the text to start the backtracking. When the system is running hard, even TE got it wrong a lot of the time. But, multiple locations would never work by stuffing the input buffer as these programs do.
  22. I'm working on uploading all my workflows udated to Alfred 3, but I have over 50 of them. So it is taking a little while. I'm also working on a tutorial for Tuts+ about Alfred 3. Stay tuned for it's publication.
  23. It is faster on Alfred 3 because Alfred 3 is much faster, or as I said, snappier than Alfred 2. I have the workflow updated to Alfred 3, but they have asked us not to upload them to Packal and such until Alfred 3 is out of beta. Should be in a couple of weeks.
  24. Thanks. I am glad you like the workflow. It is the workflow I use the most too! If you do not copy the last lines carriage return, then it doesn't count that line as a full line. I always copy past the last line to get the carriage return and the count always comes out fine. I'll look into adding a detector for the last line not having a carriage return and add one if needed. That would be a more robust solution. But, I've converted everything to Alfred 3 now. Since they do not want us updating everything until Alfred 3 is out completely, you will need to wait until Alfred 3 is fully released to get the full update. For now, just copy past the last CR and your count will be fine. The routine uses the wc command line program. It is a peculiarity with that program. I also noticed that I did not package the "Clean For Word Count" cleaner with the workflow. If you create a cleaner with that name, you can specify actions to clean unwanted items (ie: - / \ * and the like) from the text before counting it. That way, your character count will be accurate to actual words and not punctuations. The wc program doesn't always get it right .
×
×
  • Create New...