Jump to content

raguay.customct

Member
  • Posts

    756
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by raguay.customct

  1. I created two workflows to help me do some work. One goes through a list of numbers from a file and pushes the next number to the clipboard. Then I have a hotkey triggered workflow that takes the clipboard and creates a URL from the number found there. When it pushes to the clipboard, it will then push it to the second clipboard area and not the first. The first still has the number from the first workflow. Somehow it is getting the clipboard wrong. I only see this happen with two workflows side by side. If I do one workflow, change program focus, do the next workflow, then the clipboard has the proper ordering! Very confusing. Or, if I do the first workflow, view the clipboard with command alt c, do the second workflow, and then the clipboard has the correct thing. The first workflow is my Next Item workflow that can be found here: https://github.com/raguay/MyAlfred/blob/master/NextItem.alfredworkflow. I create a set of ID for posts in WordPress and setup the list with the NextItem workflow. Then I created a hotkey workflow that takes the clipboard, and then set the clipboard with the edit post url for WordPress using the ID from the clipboard. I can give you that workflow, but it is one among many hotkey assignments I have in one workflow I call "My Hotkeys". I simply have the hotkey passing the clipboard to a copy in to clipboard action with the {query} item inside the URL for editing that post ID. If I do the first workflow, then the second workflow, then look at the clipboard with alt-cmd-c but not commit it, everything looks good, but the second one is pasted with ctrl-v (the results from the first workflow). If I look at the clipboard with alt-cmd-c and hit enter (which basically commits it), then the ctrl-v paste action will paste the correct thing. It is like a rase condition that setting the clipboard overcomes! OS X 10.8.4 (12E55) Alfred 2 v2.0.5 (202) Let me know if you need more information. Richard
  2. Description: Just created a quick and easy TextSoap Cleaners workflow to allow for the execution of any of the TextSoap cleaners on the current clipboard contents. It is using the applescript interface to the TextSoap Menu application. Therefore the full application does not need to be running. It works faster than the PopClip extension for TextSoap. This will also remember past used cleaners and give them back to you as an option. That way you can build your most used list here as well. It can also pop up a list of all cleaners in Alfred for you to pick from. Download: https://github.com/raguay/MyAlfred/blob/master/Alfred 5/TextSoap Cleaners 9.alfredworkflow Readme: This workflow is for using the TextSoap cleaners on text. Each keyword is described below: To Use: The "tc:clean" keyword to select from a list of cleaners or a previously used cleaner. The particular TextSoap cleaner will be performed on the contents of the clipboard. If you hold down the FN key, it will delete that cleaner from the list of most used cleaners. You can use a hot-key to launch the last cleaner automatically on the current selection and copy the results back in place. It also has a hot key to copy the current selection, show a list of available cleaners, perform the cleaner, and copy the results back. The "tc:full" keyword will list every cleaner available and perform the selected cleaner on the clipboard contents. In order to have the list of every cleaner, you should run the keyword “tc:getcleaners" each time you add a new cleaner to Text Soap. You can set an editor to use to edit your personal cleaner list using the "tc:seteditor" keyword. You can then use the "tc:editlist" to edit your list of most used cleaners. You can get a line, word, character count of what is in the clipboard using “tc:count”. It will clean out formatting first (HTML to plain text). If you pass a string with the command, it will count that string. You can set a hotkey to count the selected text. The count is placed back into the clipboard. tc:loadpopclipext This will load the popclip extension for executing the last cleaner on the highlighted text. There are also three places to set your hotkeys: one for doing a character/word/line count of your selection, one for evoking the last cleaner on selected text, and one for choosing from the full list of cleaner to apply on the currently selected text. Current Version: 2.3 changed on 06/26/2014 I refactored and cleaned up a lot of code. Added the line, word, character counting as well. Just fixed problem with sorting cleaners by location in list and use. Now, Alfred sorts each cleaner by times used only. Current Version: 3.0 changed on 11/22/2022 The link above has been changed to the 3.0 version. Sorry for the inconvenience of not updating this sooner. Current Version: 6.0 Just updated to Alfred 5. This workflow no longer uses environment variables. It still uses node.js if the compiled version of the internal program isn't used. Let me know if you need more functionality or you find a bug. Richard Guay
  3. I did not know the quit and quitall keywords. There is so much in Alfred that everyday is a day learning new things! That's just part of the fun!
  4. Do an applescript with a quit to that application. For example: To close the Chrome browser: on alfred_script(q) tell application "Google Chrome.app" quit end tell end alfred_script
  5. Does your /Applications folder happen to be a symbolic link? Alfred does not follow symbol links when looking for things.
  6. Ah, my copy of MacVim does not have a sym-link. I installed mine from the web site, and not from brew. That explains it.
  7. I believe me is referring to the ability to access different things or widgets in a program. Much like "Short Cat" app(http://shortcatapp.com/). It is a free app while in beta testing, but it gives quick keyboard usability to many OSX apps. You have to have the accessibility preference set to use it. It works pretty well, but is somewhat buggy. But, I have been able to use it to cut down the number of trips to the mouse!
  8. It comes up fine on my Alfred. Are you just running it in a plain Alfred Prompt or as part of a workflow? If I type M, MacVim is right there in the list (I do not have that many that start with M). You might check your search preferences in the "Default Results" in the preference app. "/Applications" should be in the "Search Scope" area. I hope that helps.
  9. That was just a case example, but I do use it with Text Expander. I have a Text Expander macro for replying to people asking for group memberships. Each level has its own discount rate. The Text Expander macro fills in the amount with a multiplication symbol. I type in the number of memberships, highlight it all, click the Alfred extension on PopClip, and paste the answer in. Text Expander does not do the math for you, but this makes a nice workaround. I also use it to do translations. I highlight what I want to look up, click the Alfred on PopClip, <command>left to get to the front and type "translate". I then have the phrase translated. I select the one I want and paste it in. It works for me. Of course, not everyone will enjoy the same workflow. Everyone just has to pick and choose which workflows work for them. I love this forum because I can get a peek into how others think, and possibly find an adjustment to my workflow that is faster. That is the great thing about sharing ideas!
  10. Thanks! Many times PopClip does not appear when using SublimeText. This fixes it. Thanks.
  11. Here it is: กลั้น Even in this post the tone mark gets cut off some. I have sent similar requests to Chrome and Firefox. But, most do not seem interested in getting it fixed.
  12. Hi, I use the Thai language everyday. I really make a lot of use of the translate workflow. But, tone marks that are above a vowel only get displayed halfway. The link is to a screen shot of me using the translate workflow with the thai word for holding your breath. The word underlined has a done mark that is only partially shown. I have change fonts sizes, but nothing seems to help. I would think that it would be proper to automatically detect CTL languages and adjust the font size, but not the display size, to accommodate it. If I can be any help in this, just let me know. http://db.tt/YX1AcUHf Richard
  13. If you have some calculations in a document you are working with, highlight and send to Alfred and it will put the result in the clipboard. For me, It is a little faster opening a web site highlighting an web address and sending to alfred automatically pops up my current Chrome and displays it. My PopClip extension for that sometimes crashes, so I dropped it. The Alfred extension has not given me any problems yet. You can also highlight some text and send to Alfred, use <cmd>left arrow to get to the beginning and type your keyword for saving it to a note taker (Evernote, DevonThink,....). More can be thought of. Just use your imagination!
  14. Hi, I thought everyone would be interested in this. If you have PopClip, you can not send what you highlight straight to Alfred. You can get that extension here http://pilotmoon.com/popclip/extensions/ext/Alfred.popclipextz If you do not have PopClip, why not? It is a great tool. My two cents. PS: I did not create the extension. Not sure who did. But it works great. Richard
  15. I just updated the library. I had the creating mode set wrong and made directories that could not be read. Thinking in hex while I should be programming it in octal can really mess you up! Sorry if this caused some problems.
  16. I finally fixed the error. Please update your workflow at the normal place. I was thinking in hex when the mode is set in octal. Dumb mistake. Sorry about that. I also updated the library.
  17. Yep, I was testing that when you wrote. Trying to get go to set permissions correctly. Not sure what I am doing wrong, but I am working on it. Thanks.
  18. Hi, Found that one too. Just pushed an update. You can update with AlleyOOP or redownload.
  19. Hi, Found the bug. I forgot the creation flag. The goAlfred program for that functionality now works. Please give it a try and let me know if it helps. Thanks for letting me know.
  20. Hi, Sounds like it is not creating the file like it should. I have it for creating the file if it is not there (which only happens the first time ran). I will look at it and send an update. Sorry about that.
  21. Hi, just fixed a small bug in the base goAlfred library. If the conditional adding of a result list ends up not adding anything, before the default message would be accepted as a project. It now will not and it will not fall through to default search either. Test it out and let me know if you see any problems.
  22. Just added two new functions: setting a default message string so the ToXML will always produce something usable, and a conditionally add XML string based on the title containing part of the string passed. Alfred Time Keeper is making use of these additions. Also, the ToXML routine only creates xml for items that have a title. Others are ignored.
  23. Hi, just pushed the change to TimeKeeper to conditionally create the project list for setting the current project based on the string given by the user. Also, it should not just dump into default search when the user has no output from the letters given in the search. Try it out and let me know if anyone has any problems.
×
×
  • Create New...