Jump to content

raguay.customct

Member
  • Posts

    756
  • Joined

  • Last visited

  • Days Won

    12

Reputation Activity

  1. Like
    raguay.customct got a reaction from Diegobit in Quiver Workflow   
    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.
  2. Like
    raguay.customct got a reaction from EDALPA in Hammerspoon Workflow   
    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!
  3. Like
    raguay.customct got a reaction from amoose136 in Common Misspellings Snippets   
    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)
  4. Like
    raguay.customct got a reaction from mrchow19910319 in Can someone create a workflow that let google chrome open a specific url in a new window?   
    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.
  5. Like
    raguay.customct got a reaction from vitor in Search History in Alfred Browser like in zsh   
    I have a set of workflows that I use to process videos on our website and attach SRT files to them. Usually I just up arrow to the one before the last command to recycle through them. But, I some times have to execute other commands in the middle. Then, I either have to retype the older command or up arrow until I find it. It would be nice to type in the first two letters and then up arrow through the history that only starts with those two letters. Just like I have my zsh configured to do.
     
    For example: My History has:
     
    dp:nextfile
    eh:openSRTfile
    dc:disable
     
    The first two commands are the two that I cycle through, but I then disabled DwellClick with the dc:disable. To do the dp:next file, I would have to retype it or up arrow 3 times. But, with this feature I am proposing, I would type 'dp' then one up arrow and it will jump to the dp:nextfile command. In this example, it doesn't really save much time. But in other situations, it will.
  6. Like
    raguay.customct got a reaction from cands in Search History in Alfred Browser like in zsh   
    I have a set of workflows that I use to process videos on our website and attach SRT files to them. Usually I just up arrow to the one before the last command to recycle through them. But, I some times have to execute other commands in the middle. Then, I either have to retype the older command or up arrow until I find it. It would be nice to type in the first two letters and then up arrow through the history that only starts with those two letters. Just like I have my zsh configured to do.
     
    For example: My History has:
     
    dp:nextfile
    eh:openSRTfile
    dc:disable
     
    The first two commands are the two that I cycle through, but I then disabled DwellClick with the dc:disable. To do the dp:next file, I would have to retype it or up arrow 3 times. But, with this feature I am proposing, I would type 'dp' then one up arrow and it will jump to the dp:nextfile command. In this example, it doesn't really save much time. But in other situations, it will.
  7. Like
    raguay.customct got a reaction from nikivi in Writing workflows with go help   
    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.
  8. Like
    raguay.customct got a reaction from Vero in New Alfred 3 tutorial   
    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.
  9. Like
    raguay.customct got a reaction from nikivi in New Alfred 3 tutorial   
    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.
  10. Like
    raguay.customct got a reaction from nikivi in Workflows API   
    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.
  11. Like
    raguay.customct got a reaction from cands in TextSoap cleaners on the Clipboard   
    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.
  12. Like
    raguay.customct got a reaction from cands in TextSoap cleaners on the Clipboard   
    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 .
  13. Like
    raguay.customct got a reaction from cands in TextSoap cleaners on the Clipboard   
    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.
  14. Like
    raguay.customct got a reaction from cands in TextSoap cleaners on the Clipboard   
    I just updated the workflow to work with TextSoap 8. If you haven't upgraded to this version, you should. It runs much faster and lots of bug fixes. The workflow currently only works with version 8. If you haven't upgraded, then just use the older version. I haven't added any other features.
  15. Like
    raguay.customct reacted to KennedyOliveira in Exchange Rates Workflow   
    Hello everyone!
     
    I just made a exchange rate workflow, check out on github and in packal!
     
    Github -> https://github.com/kennedyoliveira/alfred-rates
     
    Packal -> http://www.packal.org/workflow/rates
     
    Its simple, but very useful.
     
    I hope it can helps someone as help me.
     
    Any feedback is appreciated!
     
    Convert between many currencies using the YQL (Yahoo! Query Language) to get the exchange rates in realtime for free.
     
    Screenshots
     
    Convert from USD to EUR

     
    Convert from default configured currency (BRL in my case) to USD

     
    Autocomplete example

     
    Usage:
     
    rate <VAL> <CUR SRC> <CUR DST> -> Convert the value from the currency to the currency . Example: rate 100 BRL USD
    rate <VAL> <CUR DST> -> Convert the value to the default currency setted with ratesetcurrency comand.
    rate <CUR SRC> <VAL> -> Convert the value from the currency to the default currency setted with ratesetcurrency command.
    rate <CUR DST> -> Convert the default currency to the <CUR DST>, just to show the rates.
    ratesetcurrency <CUR DST> -> Set the default currency, for use with the comands rate <VAL> <CUR DST> and rate <CUR SRC> <VAL>
    rateclear -> Clears all the cached data, used when there is a new version for removing olds caches.
     
    New Version 2.4.0!
     
    Added support for multiple queries with one command.
     

     
    Added support for checking a conversion for many currencies, see below:
     

     
    Now the currencies list and info is online, so when there are new currencies update there's no need to update the workflow to get just the currency list, it'll be downloaded.
       
    New Update :
    Added support for basic mathDivision Multiplication Sum Substraction Support for 4 digits after the decimal Configurable division digit "," or "."
  16. Like
    raguay.customct got a reaction from cands in Hammerspoon Workflow   
    Hi,
     
    I just upgraded the Hammerspoon workflow to have an upgrade option and integration with the AnyBar workflow for the caffienate function.
     
    The hs:upgrade command will upgrade all future version without messing with the init.lua file. But, for this, you have to run hs:install to now to create this functionality. The install creates the .hammerspoon/init.lua file with a line to load the alfred.lua file. The hs:upgrade will then only effect the alfred.lua file.
     
    If the AnyBar workflow and program are installed, then an indicator is shown. If caffenate is active, red "zzz" will be shown. Otherwise, grey "zzz" are shown.
     
    Give it a try and let me know how it works for you.
  17. Like
    raguay.customct got a reaction from dfay in Alfred Workflows in Swift Tutorial is available.   
    Oops. I thought I had changed that line. I just fixed the tutorial to copy the library file and put the tcconverter.swift file as it's own file. Thanks for spotting that. From XCode 6 beta to XCode 6.3, there has been a lot of changes to Swift!
     
    The first compile line creates .o files. The .o file is the object code unlinked. It is the executable code that has placeholders instead of addressress for branching statements. Relative addresses are compiled in on the link stage.
     
    The second line creates the library file that other programs can dynamically load the library instead of statically linking them.
     
    The third line creates the .swiftmodule and . swiftdoc files needed by the linker to link the library to the final program. These are mostly used by XCode itself and not so much with the 4th stage.
     
    The last line compiles our tcconverter code, links it to the Alfred library, and creates the final execuatable, tcconverter.
     
    I hope this de-mystifies it some for you. Compiling is complicated up front, but runs so much faster than interpreting. The Swift compiler is much easier to use than like the gcc compiler for C code! You can really get bogged down in options for some compilers.
     
    But, if your system is fast enough, I much prefer interpreters!
  18. Like
    raguay.customct got a reaction from patgilmour in Ebook Tutorial?   
    I have written a series of articles on using Alfred for Mac Tuts+. They are:
    Alfred Workflows for Beginners Alfred Workflows for Intermediates Alfred Workflows for Advanced Alfred Debugging Track Project Time With Alfred Timekeeper Use a Mac to Monitor Website Uptime or Other Regular Tasks Alfred Workflows in Swift It's not an ebook, but it will get you going using Alfred with practical examples. If there is a topic you need and it is not covered, let me know. You can also look at all of my workflows on my website: http://customct.com/alfred-2-workflows
  19. Like
    raguay.customct got a reaction from dfay in Hammerspoon Workflow   
    Yes. It is a window manager. To work with tabs of an application, you would have to use AppleScript or JavaScript for automation. You can run AppleScript from Hammerspoon with the hs.applescript module. If you have Dash, the documentation for Hammerspoon is in Dash as well. If not, use the API pages on their website.
     
    Dot are to reference parts of a structure. hs is a global variable that is a structure with an element named applescript. Therefore, to reference it you use hs.applescript. The colons are for class member references. When you get a window, it is a class variable, not a structure. Therefore, it members are referenced with a colon.
     
    It is confusing the difference between different programming languages. I use quite a variety and it does get hard to track them all. But, some are better for some things, while others are better for other things. Lua is super small. That is why they used it in this type of application.
  20. Like
    raguay.customct got a reaction from 40-02 in Copy/Move To and Alfred Browser Workflows   
    Hi,
     
    Just uploaded two new (old for me) workflows that I find very useful and thought someone else might like them. They are:
     
    Copy/Move To Workflow

    This workflow starts with a "Add Directory to Copy/Move locations..." File Action to create a list of directories to use as targets for a copy/move operation. If actioned on a file, the directory of the file is saved.

    Once you have a list, you can use "copy to..." or "move to..." file actions to move or copy files to a previously saved directory.

    The keyword "cm:fav" is used to view saved directories, remove one, go to one in Alfred Browser, open in Finder, or go to in terminal/iTerm depending on your terminal preset in Alfred.
     
    Alfred Browser Toolbox
      Keywords   ff   It is a way to lookup a folding in the Alfred browser or in Finder. Very handy.   ab:newfile   Creates a new file in the directory of the topmost Finder, Commander One, or Path Finder window.   ab:newdir   Creates a new directory in the directory of the topmost Finder, Commander One, or Path Finder window.   ab:open   Opens the URL, URI, or file given using the Mac OS X open terminal command. This has a hot key as well to open the current selection with "open".  This works with Finder, Path Finder, and Commander One.   ab:pdf   This is a file filter for PDF files. I have many and this really makes finding them easy.   ab:cparent   
     
    This command will get the currently selected file in Finder, Path Finder, or Commander One and copy it to the parent directory. Works on files or directories. This has a Hotkey as well.
     
    ab:mparent   
     
    This command will get the currently selected file in Finder, Path Finder, or Commander One and move it to the parent directory. Works on files or directories. This has a Hotkey as well.
     
    ab:cfile      
     
    This command will copy the contents of the file to the clipboard. You need to be sure it is a text file. This has a Hotkey as well.
      Alfred Browser Actions   Get File Name   This gets the name of the file selected in Alfred Browser and puts it into the clipboard.   Get File Size   This gets the file size of the file selected in the Alfred Browser and puts it into the clipboard.   Create a File   Simply creates a file in the directory this file action is ran on. It will ask you for the name and then create it.   Create a Directory   Same as "Create a File", but creates a directory instead.   Copy Relative Home Path   This file action calculates the relative path from the user’s home directory and copies it to the clipboard.   Paste Relative Home Path   This file action copies the absolute path to the clipboard. It will then paste the relative path to the topmost application.   Copy Absolute Path   This file action copies the absolute path to the clipboard.   Paste Absolute Path   This file action calculates the relative path from the user’s home directory and copies it to the clipboard. It will then paste the relative path to the topmost application.   Copy/Move to Parent Directory
     
    These two actions will copy/move the selected file to the parent directory.
     
    Copy File Contents to Pasteboard
     
    This action will copy the contents of the file to the pasteboard.
     
    NOTE: Currently this requires OS X 10.10 because I am using JavaScript for Automation that is only in 10.10. Sorry!
     
    Version: 1.5
    Date:      12/04/2015
     
    You can get them from my Github account: https://github.com/raguay/MyAlfred
    or Packal:
     
    http://www.packal.org/workflow/copymove
    http://www.packal.org/workflow/alfred-browser-toolbox
  21. Like
    raguay.customct got a reaction from Andrew in Creating workflows using automator in Alfred 2   
    Hi,
     
    I wrote a quick tutorial on how to do this. You can read it here: http://customct.com/posts/tutorials/Alfred/Running-Automator-and-AppleScripts-in-Bash
     
    This should help clear up what you do not understand. If you have more questions, just let me know.
     
    Richard
  22. Like
    raguay.customct reacted to raguay.customct in Mjolnir Workflow   
    This workflow is for running scripts using Mjolnir to control your windows. This is just a sample of the things that can be done. Follow this layout and you can do many neat things with Mjolnir.
     
    First off, download Mjolnir from https://github.com/mjolnir-io/mjolnir.git. That site also tells how to get started. To install the needed modules and configuration file, you will need to run the "mj:install" command. This will also install the cli program called "mjolnir".
     
    Once mjolnir and it's cli program is installed, use the "mj:find mjolnir" command to set the path to the executable. After this step is done, all the following commands are available to use.
     
    mj:install
    This will install some modules that is used in the configuration file for this workflow. It will also install a default configuration file for mjolnir. If you already have one, move it to a temporary location, run this command, and then copy your function to the configuration file. This should be the second command you run to get this workflow running.
     
    mj:updateinit

    This command just updates the init.lua file to the new one for the workflow. It does not try to update the modules.
     
    mj:reload
    This tells mjolnir to reload the configuration file.
     
    mj:open
    This will open the Mjolnir console to the front.
     
    mj:nup
    This nudges the current window up.
     
    mj:ndown
    This nudges the current window down.
     
    mj:nleft
    This nudges the current window to the left.
     
    mj:nright
    This nudges the current window to the right.
     
    mj:tcaff
    This toggles system caffenate.
     
    mj:leftthirds
    This moves the current window to the left 1/3 of the screen.
     
    mj:rightthirds
    This moves the current window to the right 2/3 of the screen.
     
    mj:lefthalf
    This moves the current window to the left half of the screen.

    mj:righthalf
    This moves the current window to the right half of the screen.
     
    mj:tophalf
    This moves the current window to the top half of the screen.

    mj:bottomhalf
    This moves the current window to the bottom half of the screen.

    mj:fullScreen
    This moves the window to the maximum size on the screen.

    mj:minimize
    This minimizes the current window.

    mj:tzoom
    This toggles the system fullscreen on and off for the current window. This moves the window to it's own space taking up the entire screen.

    mj:running
    This will list all the running apps. You can then just select one to bring it to the front, select with alt key to hide it, select with ctrl key to unhide it, and select with the fn key to close the application.
     
    mj:snap
    This snaps the current window to the closes grid box area.
     
    mj:setgrid
    This requires you to put the x, y for a starting position in a 3x3 matrix for the current window. Then you give the width and height. Therefore, to move the current window to the upper left most block in a 3x3 matric, you would do "mj:setgrid 0, 0, 1, 1". There is also a hotkey set to this value as an example.
     
    mj:command
    Type in a command string and it will be sent to Mjolnir directly!
     
    mj:ftmove
    This puts every window for FoldingText to the left half of the screen.
     
    mj:fttoday
    This focuses the window with the title "today.txt". That is my todo list for the day.
     
    mj:expose
    This will list all applications. When an application is selected, it will show all of it's windows in a matrix on the screen and ask the user for the coordinates of the one to show. It will then put all the windows back to their original position and bring the one selected to the foreground.
     
    If the application has only one window, it will simply bring it to the front.

    I also created a hotkey for doing Expose on FoldingText. The user can create more in the same manner. Just be careful to get the name of the application correct!
     
    mj:last
    This will move the last window moved around to it's position and size before the movement. This is a single level return.
      This workflow is also set up with a Remote page as well. Have fun controlling your windows from your iPad or iPhone.
        Please let me know if you have any issues with this workflow.   Version: 2.1 GitHub: https://github.com/raguay/MyAlfred Packle: http://www.packal.org/workflow/mjolnir-workflow
  23. Like
    raguay.customct got a reaction from SmokyBarnable in Mjolnir Workflow   
    To use any of the other commands, you have to first do "mj:install" to get the mjolnir command line program installed and the initialization file installed with the components that the other commands use. Then you have to run "mj:find mjolnir" to find where your command line tool is placed. It should be in the /usr/local/bin, but I have seen it get installed in other areas on some systems.
     
    After that, all the other commands should work. The message you see is the other scripts not able to find the command line program. The "mj:find" command stores the path to the command in the data workspace for the workflow in the file mjolnir.txt. You can use the awf workflow (http://www.packal.org/workflow/alfred-workflow-builder-quickref) to open that directory easily.
     
    If you did run the above two commands already, let me know which keyword you invoked so I can look at that script in particular.
  24. Like
    raguay.customct got a reaction from dfay in Text Case Converter in Swift   
    The tutorial on this workflow is now available: https://computers.tutsplus.com/tutorials/alfred-workflows-in-swift--cms-21807
     
    The compiling instructions inside the workflow are more accurate now with the latest versions.
  25. Like
    raguay.customct got a reaction from Florian in Alfred URI Handler Workflow   
    Alfred URI Handler
     
    GitHub: https://github.com/raguay/MyAlfred/blob/master/AlfredURIHandler.alfredworkflow
    Packel: http://www.packal.org/workflow/alfred-uri-handler
     
    This workflow has one command "au:install". Once you run it, a URI handler for Alfred will be installed. This is used to trigger external triggers in any workflow. The format is:
     
    alfreduri://com.apple.AppleScript.AlfredURIhandler?wf=<workflow Bundle ID>&arg=<arguments>&ext=<external trigger name>
     
    The arguments should be URI encoded (ie: no spaces, but %20 instead). If you update the workflow, you have to re-apply the handler. Also, do not delete the workflow or the functionality will be removed.
     
    I use it to make action links in FoldingText to trigger actions in Alfred.
     
    There is also a "search=<search args>" to open the Alfred prompt with a query. It now works. If you already downloaded and installed the handler, please do it again.
     
    Version: 1.1
    Date: 9/6/2014
×
×
  • Create New...