Jump to content

raguay.customct

Member
  • Posts

    756
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by raguay.customct

  1. It should be an option on the Power Pack page of the Preferences program so that we can really use it as a tip jar at any time!
  2. Try using "/usr/bin/qlmanage -p myfile.ext" in your script. If that works, you don't have the proper PATH variable setup on your system. Either use the full path to the qlmanage program or add to the environment variables for your workflow a PATH equal to "/usr/bin:/usr/local/bin". That should fix that. Alfred runs a simple shell environment that doesn't load in the ~/.bashrc file. By using the full path to the program, you will be able to ensure that you are getting the command.
  3. You can use my workflow ScratchPad (https://github.com/raguay/MyAlfred/blob/master/Alfred 3/ScratchPad.alfredworkflow). It will copy the clipboard to the Alfred prompt, you can edit it and hit enter to save it back to the clipboard. Very useful for me. Give it a try.
  4. CopyClips was a part of my Quiver Workflow. I decided to move it out so that others could use it also without having the Quiver items. This workflow allows you to create an infinite number of named clipboards to store text into (depending upon disk space). The workflow has a hotkey or copy and paste to a named clipboard which is then stored as a file in the Data directory for the workflow. The command copyclips allows you to view the different copy clips stored and delete any that you do not want. I use this workflow every single day and is very convenient. You can download it here: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/CopyClips.alfredworkflow Added: 02/23/2019
  5. Hi @fncll, Just updated the workflow on GitHub: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/TextSoapCleaners.alfredworkflow It's now future proofed for Alfred and TextSoap. Just set the TextSoap application name in the environment variables and the scripts will call the right application. I changed all the AppleScripts to JXA (JavaScript for Automation). Seems to be working for me. Let me know.
  6. I've had it updated since Alfred 3.0 came out. Sorry, I haven't updated the link. It is now updated and you can get the latest version from the GitHub account: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/TextSoapCleaners.alfredworkflow All of my workflows in this branch work great and I use them a lot.
  7. This workflow is designed to work with the NotePad script for TextBar. NotePad is a group of nine notepads that sit in your menubar. You can tuck information away, run scripts on the text, or regular expression edits. There are around 37 pre-made scripts for editing your notes. You can create and add your own scripts as well. The topmost actions require you to set the noteID variable to the right. It can be 1 through 9 to represent the note that the text will be appended/written to. The actions will append or overwrite depending on the status of the append variable to the right. If set to 'a', it will append. If set to 'w', it will over-right the text. The last group of actions is for pasting a note to the topmost application. You can either give a number for the note or just paste the note that corresponds to the noteID parameter for the workflow. Download: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/NotePadWorkflow.alfredworkflow
  8. Another way to help this issue is to have multiple stores each with a regular expression for putting clipboard history items into it and a special keyword to search in that store. That way, you can have one store for sql commands, one for websites, one for pictures, etc. Each having a regular expression check that automatically places that item into that store. Then, the user can use a keyword for searching in that store and a super keyword that searches all stores. But keep the default one to search just the standard clipboard history. I think that would give the flexibility that everyone would need, but keep the main clipboard history small enough to not bog down Alfred. I believe Copied does something similar to this.
  9. I created a simple example. I used Ruby and no libraries to make it as fast as possible. It's just three lines of code and that could be reduced down, but be less readable. You can get it here: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/VATCalculator.alfredworkflow
  10. Hi, I've had this issue and fixed it by turning off Hazel first. The Finder eject seems to know how to kick Hazel and other programs off it's directories before ejecting. You most likely have a program that is behaving similarly.
  11. Just got a new version to upload. It should work on any system now. I had problems getting my Haskell program to statically compile. But, it is now. I've updated the one in Packal.org and GitHub. Please download and give it a try.
  12. I just added workflow snippets to my Time Stamp Workflow and noticed that I had never shared it. So, here it is. You can use "ts:stamp" to list the pre-defined date/time stamp format and paste the current date/time into the top application. Or, you can use the "ts:build" to build your own date/time stamp to add to the list. I also have several predefined snippets: ;tsl = the current date/time using the last select date/time stamp. ;ed = the current date/time in the mm/dd/yyyy format. ;dow = the current day of the week. ;nsu - the next Sunday date using the last select date/time stamp. ;nmo - the next Monday date using the last select date/time stamp. ;ntu - the next Tuesday date using the last select date/time stamp. ;nwe - the next Wednesday date using the last select date/time stamp. ;nth - the next Thursday date using the last select date/time stamp. ;nfr - the next Friday date using the last select date/time stamp. ;nsa - the next Saturday date using the last select date/time stamp. My GitHub: https://github.com/raguay/MyAlfred Packal: http://www.packal.org/workflow/time-stamp-workflow
  13. Yes, I would love to be able to trigger a text cleaner using ;clean:<name>; where name is the name of the cleaner to use. Would be nice in the normal snippets and the workflow snippets.
  14. I get the message whether Numi is open or not. The version that you get with Setapp must work differently.
  15. It doesn't seem to work with the Numi that comes with SetApp.
  16. It would be nice if Alfred could eject volumes mounted by CloudMounter and Expandrive instead of having special workflows for them.
  17. Okay. I've been using Scriptarian, but I can't get it to produce stack binaries.
  18. Thanks. It is working now. What framework are you using for the automation. I love that it is getting services too!
  19. I've found this script to work better. If you don't have the application, the above scripts will not work as well. This script doesn't stop working if you don't have one of the applications. I've also have other file managers in the list. This is what I use for my Alfred Browser workflow. on pathFinderFile() set appname to "Path Finder" tell application appname set pathfinderselection to selection if pathfinderselection is missing value then display dialog "Nothing selected" buttons {"Oh, crud..."} default button 1 return end if set pathfinderpaths to "" repeat with i from 1 to count of pathfinderselection set pfItem to item i of pathfinderselection -- Corrects for error when hidden files are showing try set currentpathfinderpath to (POSIX path of pfItem) set pathfinderpaths to pathfinderpaths & space ¬ & quoted form of currentpathfinderpath end try end repeat return currentpathfinderpath end tell end pathFinderFile on finderFile() set appname to "Finder" tell application appname try set filep to selection as alias list set finderSelection to POSIX path of filep on error display dialog "Nothing selected" buttons ¬ {"Curses, foiled again!..."} default button 1 return end try end tell return finderSelection end finderFile on commanderOneFile() set appname to "Commander One" tell application appname to activate tell application "System Events" keystroke "c" using {command down, control down} delay 0.5 end tell return the clipboard end commanderOneFile on fmanFile() set appname to "fman" tell application appname to activate tell application "System Events" key code 103 delay 0.5 end tell return the clipboard end fmanFile set fileName to "testing" set frontmostProcessName to "name" tell application "System Events" set frontmostProcess to first process where it is frontmost set frontmostProcessName to name of frontmostProcess as text end tell if frontmostProcessName is "Finder" then set fileName to finderFile() else if frontmostProcessName is "Path Finder" then set fileName to pathFinderFile() else if frontmostProcessName is "Commander One" then set fileName to commanderOneFile() else if frontmostProcessName is "fman" then set fileName to fmanFile() end if return fileName
  20. You need to recompile using static linking. It's requiring a dynalib that I don't have: Code 6: dyld: Library not loaded: @rpath/libswiftAppKit.dylib Referenced from: /Users/raguay/Dropbox (Personal)/Richard/rag/Alfred/Sync/Alfred.alfredpreferences/workflows/user.workflow.85FE278A-FF20-4A2A-919E-8DE7DC7D1C62/./menu Reason: image not found
  21. First, install Hammerspoon. Then run "hs:install" in the Alfred prompt. Whatever hotkey you assigned Alfred to, press that. The default is <command>+space. You should then be able to use the rest of the commands in the workflow. Have fun!
  22. Yes, I split up the repository to Afred 2 and Alfred 3. Here is the link to the latest: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/TextSoapCleaners.alfredworkflow You can see all of the workflows at https://github.com/raguay/MyAlfred/
  23. Here is a quick and easy workflow to do what you want. You will have to assign the hotkeys for each one. It allows you to either open the current OSX selection or clipboard in either chrome, firefox, or safari. You can get it here: https://www.dropbox.com/s/8kkpcjbzr2sde05/Open URL with hotkey.alfredworkflow?dl=0 Examine it and you will see that it is very easy to create workflows like this. There was no programming involved. So, go and experiment.
  24. The workflow works great on Alfred 2 or Alfred 3. The latest version with things for Alfred 3 only can be downloaded from my GitHub account: https://github.com/raguay/MyAlfred/blob/master/Alfred 3/HammerspoonWorkflow.alfredworkflow. It is often easiest to download the whole repo and load the workflow you want to use. I'm not sure which version is on Packal right now (I haven't had time to update it there yet).
×
×
  • Create New...