All Activity

This stream auto-updates   

  1. Today
  2. Thank you, I was uncertain what protocol you guys prefer. Hopefully this works: Purchase Key.alfredworkflow
  3. @patgilmour Can you explain what you uninstalled, quit, restarted, reinstalled from link on page one here? I will try to replicate your steps. Thanks!
  4. Hi, @Vero I'm having similar problems since upgrading to Alfred 3. I used to be able to use the workflow, but now, after initializing the hot keys (for example, "ent") I see the option to search my Evernote Titles, but when I hit Tab or Enter (which used to take me to the next stage, entering a title of a note), it just defaults me to Google Search in Alfred. Here's an example of my attempt to search to-dos. One thing to note... On one of my Macs, the Evernote workflow works perfectly. But on a different Mac, it performs as described above.
  5. Yesterday
  6. Running 10.9.4 Was looking through the troubleshooting steps and tried to rebuild macOS Metadata but there was an error. Button to launch the rebuild is now greyed out so will try to reinstall and try again.
  7. You'll have to upload the actual workflow somewhere (Dropbox?) and post a link, so we can have a look. Can't say much from a screenshot.
  8. Version 7.0 is out ! Get it here
  9. I would love to add my workflow to assist those able to help me. Am I correct in understanding Alfred Forums only accepts images? My challenge as a newbie is to create a file to save product purchase keys, either as screenshot images or text in a clipboard, or manually typed. I use ^$ to initiate Alfred asking me if it is a txt file or an image file. I then name it and it finishes before I get a chance to do anything else.
  10. All right - the github version is ok.
  11. Alright. Well, I probably won't support older Karabiner Elements, but feel free to change the karabiner.json file path in the scripts files as you wish. As per lines ordering, I agree it'd be better to keep it intact. I might update the script to do this when I find a moment. Keep an eye open for updates ;-)
  12. 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: 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).
  13. Great hint, thank for!
  14. Thanks for the clarification. I have KE version 0.90.68 so the json file's folder may have changed as you say. The problem for me is the line order, since changing it makes it more difficult to edit the file by hand later. I was afraid that reordering the lines in the script can make it fail, so I didn't even test further. If the file can be kept as is, only changing the true|false setting, it would be better. Anyway, thanks for your work so far.
  15. Hi guys, is it already possible to do this in Alfred? I mean to have Alfred show the results that you get in the terminal (when you use this command in Terminal)?
  16. Does it work with Alfred 3? After: Hammerspoon/"Reload Config": Unable to start Alfred 2 Alfred 3 is running, so Alfred 2 can't be started. ...
  17. @rogiebear07 There is a little typo. You have to type "chrome as $USER $URL". Let me know if you still have issues!
  18. Hi Guys, I'm quite new to alfred and automation in general, so I hope you'll bear with me. I'm trying to create a workflow, where a hotkey triggers an image (or selection of images) to be resized and then compressed either through the mac app "JPEGmini" or through "tinyPNG" online. I've divided this up into 4 steps that I'm trying to work on: Resize selection Determine whether it is a jpg/png If JPG compress on mac through JPEGmini If PNG compress online through tinyPNG So this is what I have so far: 1. Resize Image (code by Acidham, altered by ilium007) on alfred_script(target_width) set theCount to 0 set currSelection to {} tell application "Finder" set theSelection to selection end tell repeat with this_file in theSelection -- try to get a jpg or png try tell application "Finder" set myPath to POSIX path of (this_file as text) end tell tell application "Image Events" -- open the image file set this_image to open myPath -- get dimensions of the image copy dimensions of this_image to {W, H} -- calculate scale factor with given width and scale the image set scale_factor to target_width / W scale this_image by factor scale_factor save this_image in myPath close this_image -- get new image width and height for output set new_W to round (W * scale_factor) rounding as taught in school set new_H to round (H * scale_factor) rounding as taught in school set new_size to new_W & " x " & new_H end tell -- set the_return to (W & " x " & H & " → " & new_size) as text -- return the_return set theCount to theCount + 1 on error errStr number errorNumber return "No image file found!" end try end repeat return ("Processed " & theCount & " images") as text end alfred_script 2. Haven't worked on this yet. 3. JPEG compress with JPEGmini - Notification and set filePath on alfred_script(q) display notification with title "Optimising JPEG ..." subtitle "Path: " & (the clipboard as text) tell application "Finder" set theItems to selection set filePath to (POSIX path of (the selection as alias)) end tell end alfred_script - Copy file path to clipboard action through Alfred - Activate JPEGmini and use system events to open file through paste from clipboard on alfred_script(q) tell application "JPEGmini" to activate delay 2 tell application "System Events" keystroke "o" using command down keystroke "G" using {command down, shift down} keystroke "v" using {command down} keystroke return keystroke return end tell end alfred_script This is my first go with apple script and I don't think this is quite the right way to execute this. Namely, system events seems to be quite inefficient as I can only run a single image at a time. Ideally, I would like this part to run hidden and be able to compress all selected JPEGs once they have been resized. 4. PNG Compress online - Using carlosNZ's fantastic workflow for TinyPNG with custom API. CarlosNZ's Tiny PNG Workflow Ideally I would like to get this workflow to the point where, either a hotkey or keyword could be used on a selection of images that would be resized and run through either JPEGmini or TinyPNG depending on the file type. The resize and tiny png parts work, so I'm hoping to improve the JPEGmini flow and have a conditional if for jpg/png. Alternatively, just a better workflow for JPEGmini would be fine as I could run the resize/jpg/png workflows separately. The use case would be to quickly run web images through the process that are 1920 wide. I'm aware that with poor coding skill, this is an uphill battle, so all help is really appreciated. If anyone is interested in assiting, I would reimburse you for your time as well. Thanks alot
  19. The script should not touch `~/.karabiner.d/configuration/karabiner.json`. It's written to work only with `~/.config/karabiner/karabiner.json` path, which I believe is the right one in the latest Karabiner Elements. As per shifting lines around – the script parses the JSON file into a python dictionary, then changes it, and then converts the dict into JSON again. So I'd assume the keys in the output JSON would be sorted A-Z. It could be done without changing lines, but I didn't find that important as everything worked out normally for me. I did one change though after publishing the initial workflow, it's not re-uploaded into version 1.1 – I added pretty formatting the output JSON so it's at least readable and editable by hand again. My macOS version: 10.12.2 My Alfred version: 3.2.1 My Karabiner-Elements version: 0.90.76 Is your problem just the lines order, or the whole workflow not working at all for you?
  20. Last week
  21. Not, really, no. The way Alfred works is that it remembers which result you selected for which query, so when you enter "gd" and select "Search Google Drive" (even though it's keyword is "gdu"), Alfred remembers your choice and boosts that result's ranking for that search query. Select that result for that query a couple of times, and it will be the top result (until you "teach" Alfred to associate "gd" with something else). From Alfred's point of view, what you're doing is saying "'gd' stands for 'Open Google Drive'. No wait, 'gd' stands for 'Search Google Drive'. No wait, it stands for 'Open Google Drive' again" etc. etc. What I'd be tempted to do is replace the two actions with a very simple workflow. Have a single keyword ("gd", natch) with optional argument. Connect that to two Filter utilities. One accepts an empty query and opens the "normal" Google Drive URL, while the other accepts a non-empty query and opens the "search" URL. Did I explain that clearly enough?
  22. Glad you like it. The "Buy me a beer" link in my signature leads to Paypal.
  23. It actually already searches all the dictionaries you have active (i.e. "define" searches all languages). It would be nice to be able to search a specific language, however. The main issue is that if you have, say, an English word and a German word that are spelled the same, Alfred will only show one definition. May or may not be in the language you're looking for.
  24. Thanks! I tried it now, unfortunately the workflow messes up the karabiner.json file for me (which in my system was at '~/.karabiner.d/configuration/karabiner.json' so I changed this in your workflow scripts), it changes the selected: true|false attributes correctly but the lines in the file are shifted around in a seemingly random manner. My karabiner.json file is similar to the sample file you show at Packal. Any thoughts what may be causing this (macOS 10.12.2, Alfred 3.2.1)?
  25. OneNote (Mac App Store version) does not open linked files (i.e. file:///folder/file.ext) because "The application Microsoft OneNote does not have permission to open <it>". Is it possible (with Alfred / other tool) to open such linked files from OneNote? Thanks & Regards, Jiri 1. A linked file in a OneNote: 2. After clicking the link:
  26. Since Alfred does not offer a print output for workflows this would probably never be implemented as a standalone feature. However, it may be reasonable to open a text editor with the titles of all tasks in a list (or a search, or on the due screen, etc) that you can then print or otherwise manipulate. Please post a feature request for this on GitHub with an example of how you would expect to interact with the workflow in order to get that type of output. That will also give others a chance to think about and thumbs-up the idea.
  27. @Yuri, @vitor Thanks so much!! Got it working. My coding knowledge is limited to basic html/css/javascript but I think I can figure out how to add a line break and markdown line to this as well. Thanks again!!
  28. What version of OS X are you running? (haven't seen that much Lucida Grande in a while...). Alfred requires 10.9 (Mavericks).
  1. Load more activity