Jump to content

raguay.customct

Member
  • Posts

    756
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by raguay.customct

  1. For an interesting note, I just installed PHP 7.0 RC2 and the original script now works fine! With the standard PHP on a Mac, I could only get it to work with a VPS going to the states. Very Interesting....
  2. Hi, Just updated Alfred Browser with some new commands requested: copy and paste absolute file paths.
  3. I just updated the workflow to read the workspaces faster. This workflow requires version 1.3.1 of DockShelf which will be released this week.
  4. I am sorry. I have prematurely released this. The current version doesn't support this, but the next version will. I have a pre-release copy that has the support for this feature. I will post when the new version is released.
  5. This workflow is for automating the DockShelf program. The following items are defined: Commands: “ds:space” This command will show a list of workspaces currently defined. You can narrow the list by typing part of a name. Selecting one causes DockShelf to switch to that workspace. External Triggers: Focus Named Workspace This external trigger will switch to the workspace given. You can get it at: Packal: http://www.packal.org/workflow/dockshelf-workflow My GitHub: https://github.com/raguay/MyAlfred Version: 1.1 date: 09/15/2015
  6. As far as I can tell, it should be the same. My name is set properly in the settings.json file. But, it still doesn't show any. I change the two keywords to st:activate and st:lib to keep from that confusion.
  7. I have only been able to use the activator. The lister doesn't work for me. It always gives zero items in the list which defaults to the default search. You should catch that and give a proper message. I do not have as many games as you, but I keep mine on an external drive. I opened the script.py file and change the default library location to my external drive. It now reads: DEFAULT_STEAM_LIBRARY = "/Volumes/External/SteamLibrary/steamapps/" But, it still will not get my games.
  8. Sorry, just edited the description. It was missing some details. Let me know if you find this useful or not!
  9. This workflow allows you to create templates with Handlebar syntax. To use the workflow, you have to have Node.js installed first. I recommend using Homebrew to install it. Once Node.js is installed, go to your snippets directory in Alfred Browser and select the “Set Template Directory” file action. This tells the workflow where your templates (or snippets) are to be kept. You then run the “tp:install” to install the example templates and a default global.json file. This file should be edited to match your needs. Any data item added to this file is then passed to the Handlebar render as data. All templates have to have the “.txt” extension. If you want data to be associated with a template, then place a JSON file with the same name as the template in the the template directory with the ".json" extension. It will be loaded and used along with the global json file. When you run “tp:expand” or “tp:exptext”, it will list all of your template files in the template directory. When you select one, it will be expanded with any json file with the same name and the global json file data. The “tp:expand” will put the result into your clipboard and the topmost application. The “tp:exptext” will give it to TextExpander (if you have it installed) to expand and place in the topmost application. With the “tp:exptext” command, TextExpander will also expand any of it’s macros in the template file. I mostly use it for placing the cursor after expansion. These two commands also have an associated Alfred Browser File action. These macros also have the option to use the clipboard for a template. If the clipboard is used for a template, only the global json file will be used as the data. All of the Handlebar helpers are usable in any of the modes. The “tp:open” command opens the template/snippet directory in Alfred Browser. If you press the Command key, it will open it in the Finder. The “tp:editglobal” will open the global.json file in your template directory with the default editor for JSON files. The “tp:create” command requires a name. A file with that name and a “txt” extension is created in the template directory and opened in the default editor for files with a “txt” extension. The “tp:createclip” command is the same as the “tp:create”, but this command takes the current clipboard contents as the text for the file. It is then opened in the default editor for “txt” files. The “tp:edittemplate” command will give a list of templates. When you choose one, it is opened in the default editor for a file with the “txt” extension. The “tp:edittemplatedata” command will give a list of templates. When you choose one, it’s corresponding JSON file is opened in the default editor for a JSON file. There are two special helper function for Handlebars defined. They are: {{save <name> <text>}} This command creates a helper named “<name>” with the expanding text of “<text>”. It also places the given “<text>” at the point of definition. This allows you to create text snippets on the fly inside the template. Very handy. {{clpboard}} This helper command places the current clipboard contents at the point in the template. The following data expansions are defined as well: {{cDateMDY}} gives the current date in Month Day, 4-digit year format {{cDateDMY}} gives the current date in Day Month 4-digit Year format {{cDateDOWDMY}} gives the current date in Day of Week, Day Month 4-digit year format {{cDateDOWMDY}} gives the current date in Day of Week Month Day, 4-digit year format {{cDay}} gives the current date in Day format {{cMonth}} gives the current date in Month format {{cYear}} gives the current date in 4-digit year format {{cMonthShort}} gives the current date in Short Month name format {{cYearShort}} gives the current date in 2-digit year format {{cDOW}} gives the current date in Day of Week format {{cMDthYShort}} gives the current date in Month day 2-digit year format {{cMDthY}} gives the current date in Month Day 4-digit year format {{cHMSampm}} gives the current date in h:mm:ss a format {{cHMampm}} gives the current date in h:mm a format {{cHMS24}} gives the current date in H:mm:ss 24 hour format {{cHM24}} gives the current date in H:mm 24 hour format {{filename}} gives the name of the template file. If the clipboard was expanded, then it gives nothing. Let me know if you need more pre-defined macros or have some great templates to add to the default set. The default set mostly just shows how to create basic Handlebar templates. Please visit Handlebars website for more information on the Handlebar format. Packal: http://www.packal.org/workflow/template-workflow My GitHub page: https://github.com/raguay/MyAlfred My Home Page: http://customct.com Version: 1.4 Date: 09/30/2015
  10. Hi, I just updated the Alfred Browser Workflow with many new commands. Give it a try!
  11. Hey, it quite working for me as well. I have php 5.6.10 that I loaded with Homebrew. I am using OS X 10.10.4. Not sure when it quit working as I have not used it in about a week or so. If everyone that is using it is out of the US, then it might be a location limitation on the API? Testing says yes. I opened my VPN to a US location and the workflow works great. Therefore, this workflow will only work if you are in the US (or some short list of countries). It doesn't work here in Thailand anymore! But, I can get it to work with my VPN.
  12. Great. I had been using the older version that did not always align the columns. This one is working great with my theme! Thanks.
  13. So far so good. But, just this week I have noticed that the Alfred debugger does not always show the output of a Script Filter. I have not figured out way or when it does or doesn't. I have just seen some inconsistencies with both normal distribution version and this version. I will keep an eye on it and let you know when I figure out more.
  14. Hammerspoon supports multiple monitors and I have a workflow that makes use of Hammerspoon (I can resize the current window with vim like keyboard shortcuts. Very handy). You can get the workflow here: http://www.alfredforum.com/topic/5334-hammerspoon-workflow/ I do not have any predefined items for multiple monitors because I do not have multiple monitors. But, if anyone that has that type of setup would like to expand this workflow, please do and send me the changes to keep them updated on Packal! My multiple monitor setup is really three computers I use together. :smile:
  15. Hi, I just noticed a problem with ampersands in the input string killing proper xml processing of the script filter. It now escapes all ampersands before pushing the xml to Alfred. If anyone sees anything else like this, just let me know. I use this all the time, but rarely use an ampersand in a title.
  16. I created a quick, easy workflow that displays all of the memory stats put out by vm_stat (a command line utility in Mac OS X). You can get it here: https://db.tt/rRjW0q7Y I might polish up a bit and add it to Packal soon.
  17. Hi, My latest tutorial is now published: http://computers.tutsplus.com/tutorials/creating-alfred-workflows-in-haskell--cms-24277 It explains my Haskell Alfred library and how to use it to make workflows. I had fun writing it. Richard
  18. Just made a new version with a lot of code cleanup and moved to the latest version of the Alfred Haskell Library.
  19. I just updated the library to have conditionally adding items to the XML. I have updated the Haskell Text Converter Workflow to make use of this.
  20. I just added the text converting workflow that demonstrates the use of this library: http://www.alfredforum.com/topic/5967-haskell-text-converter/ Let me know if you have any other questions.
  21. This workflow demonstrates the Haskell Alfred Library. The workflow allows text to be converted to different formats. The following commands are: ht:conv This command takes a string in the Alfred Prompt. You then pick the type of conversion you want. The result is pushed on to the clipboard. ht:start This command starts a dedicated web server for performing the text conversion. ht:stop This command closes the dedicated web server. You then use a GET requests to port 8000 of your localhost with the conversion type and the string. It will return to you the converted string. Example: http://localhost:8000/title/this is a test will return This is a Test There is a hotkey for numbering the lines of text in the clipboard. There is also an external trigger for taking text from the clipboard and allowing the user to select a converter. There is a hotkey for triggering that external trigger also that takes the current selection and puts it into the clipboard. Packal: http://www.packal.org/workflow/haskell-text-converter My Github: https://github.com/raguay/MyAlfred My Website: http://www.customct.com/ Version: 1.2 - July 31, 2015
  22. Hi, This is a Haskell library for making workflows. It's just like the PHP or Ruby libraries listed in the Library section. The cases.hs file is a sample workflow that uses the library. It implements a script filter and some actions. I am currently writing a tutorial on how to use the library for Tuts+. I'll post it here when it goes live (but, it might be a while. They have a large backlog.).
  23. Hi, Could you please add my new Alfred Workflow Library in Haskell to the list of Alfred libraries. You can find it here: https://github.com/raguay/AlfredLibraryInHaskell Thanks.
  24. No problem. Your welcome. Glad you find it useful.
  25. I forgot to mention: With this update, I will no longer be syncing the Mjolnir workflow with this one. The Mjolnir program is not currently being updated and the applescript running submodule no longer works. Since I am making use of that, the two workflows will no longer be syncronized. I no longer use Mjolnir for these reasons and will only be updating the Hammerspoon workflow going forward.
×
×
  • Create New...