Jump to content

rob213

Member
  • Posts

    231
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    rob213 reacted to Andrew in How to search by tag and filename at the same time?   
    You can put any metadata field in that table, and some may give worse performance than others, just experiment. If you want multiple fields, just add them all manually.
     
    Cheers!  
  2. Like
    rob213 reacted to Andrew in How to search by tag and filename at the same time?   
    @Jasondm007 Ah I see what you mean, actually I don't have control over this as it's just allowing you to pass * as the field in the constructed MDQuery.
     
    Also, in my experience, using fields prefixed with kMDItemFS can be quite a bit slower.
  3. Like
    rob213 reacted to vitor in is it possible to create a workflow to resize image in clipboard by 50% ?   
    Images are a different type of data from text so the clipboard placeholders don’t apply.
     
     
    Thus your first suggestion is the way to go.
  4. Like
    rob213 reacted to Stephen_C in is it possible to create a workflow to resize image in clipboard by 50% ?   
    That is the key to the problem: once you have the image you need resizing it (either with my workflow or your own, using an Automation Task) is easy. You may find this post helpful in the context of finding the relevant image. [Edit: Ignore this next comment—see this post later in the thread. Otherwise, if you don't do it that way you're going to need to know the position, in the clipboard history, of the relevant image and recall it like that (see Using Clipboard History Items In Workflows and Snippets).]
     
    Edit: Welcome to the forum, by the way!
     
    Stephen
  5. Like
    rob213 reacted to drahcir in is it possible to create a workflow to resize image in clipboard by 50% ?   
    I'm trying to find out an answer to this question and I'm not having any luck. @Stephen_C I couldn't figure out how to use this automation Task. Should I put this in a workflow? How to set the clipboard as an input?
     
    Your 'Shrink JPEG/PNG files' workflow should do the trick, but I only see a file from finder as an input and I would like to use the copied clipboard image as an input. Is that possible there?
     
    @rob213 which solution did you end up with?
  6. Like
    rob213 got a reaction from JJJJ in how do I update all workflows from gallery instead of having to update them one by one ?   
    thanks in advance for your time and help
     
    example

  7. Like
    rob213 reacted to vitor in how can I find where in the forum the Bear ToC (table of contents) by Fred Liang is discussed   
    Not all workflows have a forum thread, as not all workflow creators have a forum account. By double clicking the workflow’s name in Alfred Preferences, there is a website section which may or not have been filled out. If not, try to remember where you got the workflow from or search online (outside the forum).
  8. Like
    rob213 reacted to Stephen_C in Clearing Multiple Notifications   
    All you need to do is to copy the quoted script to a Run Script action in Alfred (see this help page about that action). When you double click on the action set it to /usr/bin/osascript (AppleScript). In this case you won't need the lines Alfred automatically adds (because you're not passing in any variable) so you can simply select all and overwrite with a copy of the quoted script from above.
     
    Then all you need to do is to trigger the script—so before it add a hotkey or keyword trigger.
     
    Stephen
  9. Like
    rob213 reacted to vitor in how to add option to copy path to clipboard to @vero's Dynamic File Search workflow   
    Add a Copy to Clipboard Output and double-click the connection to change the shortcut.
     
  10. Like
    rob213 reacted to Vero in how to restrict Dynamic File Search by @vero to subfolders   
    @rob213 To do this, first duplicate the workflow (so that the bundle ID is removed, ensuring that next time we update that workflow, it doesn't overwrite yours). I'd recommend changing the workflow name - and keyword if you wish - to make sure it doesn't cause confusion later
     
    Next, take a look at the workflow objects - the one you want to edit is the third object titled "Search for files".
     

     
    Double-click the third object to open the configuration and you'll see that the File Types section is empty. If you drag in a folder, you'll then narrow down the filtering to only showing you folders. Change the title to "Search for subfolders" and save your changes, and you're done!
  11. Like
    rob213 reacted to chowderresearcher in New Bear Alfred Workflow   
    This is a great workflow 🙏.
     
    I use it all the time, but it fails sometimes, I think, because Alfred has been updated, which makes macOS want to de-authorise the workflow. 
     
    The solution is given here [https://github.com/drgrib/alfred-bear#authorize-all-executables]. You use CLI to go to the workflow and run "xattr -rd com.apple.quarantine cmd" to authorise it again. Then searching works. ✅
     
    It's a few steps so I thought that it would be worth streamlining. So far, I've just been selecting one of the shell lines, below, from a Bear note and using PopClip to run it in iTerm. It would probably be more convenient to run in Alfred (Shortcuts, Keyboard Maestro, etc)
     
    Version 1
    # This changes directory & runs the authorisation in one line.  # If you want to use it, replace XXX with your Username.  cd /Users/XXX/Library/CloudStorage/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6FC9E059-46E3-4200-90F2-745362247D62 && xattr -rd com.apple.quarantine cmd  
    Version 2
    # The problem is that if you have Macs with different User names (I do), the path will be wrong.  # This version sets a variable to the current User account and replaces that bit of the path, so cd-ing should work anywhere.  # If you want to use it, it should work as is.  current_user=$(id -un) && cd "/Users/$current_user/Library/CloudStorage/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6FC9E059-46E3-4200-90F2-745362247D62" && xattr -rd com.apple.quarantine cmd  
  12. Like
    rob213 reacted to Andrew in is it possible to backup (ie one shot export) Alfred settings (as opposed to sync) ?   
    You can just delete the one you aren't using. Again, temporarily back it up first just in case.
  13. Like
    rob213 reacted to Andrew in is it possible to backup (ie one shot export) Alfred settings (as opposed to sync) ?   
    Alfred will be using the preferences location shown in the Advanced prefs. Any other .alfredpreferences files you see will be unused.
     
    If you'd like to return the preferences back to the default location, take the following steps:
    Quit Alfred Temporarily back up any of the .alfredpreferences files just in case something isn't done correctly (i.e. just copy them to a safe location). If the prefs in Dropbox are the ones you want to use, copy them ~/Library/Application Support/Alfred/ (replacing the preferences package already there). Delete ~/Library/Application Support/Alfred/prefs.json in your home folder, this file tells Alfred any custom sync location Restart Alfred From this point on, you can manually backup the Alfred.alfredpreferences in Alfred's App Support folder if this is what you were looking to achieve.
     
    Cheers,
    Andrew
     
  14. Like
    rob213 reacted to Stephen_C in what is the keyboard shortcut to navigate from a workflow result in the alfred search bar to the workflow itself ?   
    In the Alfred search box type ? and (without a space) start typing the name of your workflow. When it's either the first in the list or highlighted press ⏎.
     
    Stephen
  15. Like
    rob213 reacted to Stephen_C in is the Alfred.alfredpreferences file sufficient to backup all my alfred configurations and workflows?   
    Does this previous reply to a similar question from you not deal fully with the first question? As to the second, you can do that but as a matter of prudence avoid using the Dropbox/Apps folder and note the comment about Dropbox smart sync on this help page.
     
    Stephen
  16. Like
    rob213 reacted to vitor in How can I kill a workflow/ Stop it from running once I've initiated it.   
    The currently running script may still finish, but the objects wouldn’t continue.

    One way to have a workflow stop is to have a File Conditional check for the existence of a certain file and stop the workflow—i.e. go another route—if it exists. Use the alternative route to also delete that file.

    Then also have an action to create that file so it can be checked.

    Shutdown Timer uses that technique. 
  17. Like
    rob213 reacted to vitor in How can I kill a workflow/ Stop it from running once I've initiated it.   
    In a decade of building Workflows and frequenting this forum, I don’t recall ever facing the need or seeing another request for that.
     
    Most Workflow actions are fast enough you wouldn’t get to abort them in time anyway.
     

    How would that work, even? You add a kill utility to a Workflow, and then what? You connect it to a Keyword or Hotkey and when those are invoked they kill everything in the Workflow? With which signal? Does it force a quit? What about if you have queued actions ready to trigger? Are those cancelled to?
     
    You’re asking for a big internal change to support a minor feature which so far only one person would get occasional use out of. It seems unlikely to happen.
  18. Like
  19. Like
    rob213 reacted to Stephen_C in migrated from Launchbar: where are missing file actions ?   
    If you want a Universal Action to move a file or files to the DEVONthink inbox do this:
    create a Universal Action like this:
     
    link that to a Run Script action like this:
     
    Stephen
  20. Like
    rob213 reacted to vitor in migrated from Launchbar: where are missing file actions ?   
    The official place is the Alfred Gallery which is relatively new so still growing. You can also search this forum or GitHub. I know there are Kindle and DevonThink workflows here, though I don’t use either so I don’t know if they have those features. From what I understand Kindles have an email address you can send to.
  21. Like
    rob213 reacted to Andrew in Objects: make Save Button the default instead of having to click on it   
    @rob213 this isn't the default as the return key can also have some actions within the object configuration itself, which would lead to some confusion.
     
    Use ⌘S on a workflow object configuration sheet to save it.
  22. Like
    rob213 reacted to Andrew in problem with key combo action not accepting keystrokes   
    @rob213 you're typing ⇧⌃⌥Z into the key combo field, and Typinator is subsequently "typing" ⌘C to bring text into itself, then you'll see ⌘C in Alfred's key combo field, as that was the last "typed" combo in macOS.
     
    If you'd like Alfred to simulate ⇧⌃⌥Z as the Key Combo, type Z as the combo into the field, then right click and add in the modifiers manually.
     

     
    Cheers,
    Andrew
  23. Like
    rob213 reacted to Andrew in documentation for file actions : currently selected file in the currently used file manager   
    Fun fact: You can even select some text and it'll work too, e.g. select this and use the file selection hotkey: ~/Desktop/
     
    Interesting info though, thanks. I'll look at updating that blog post.
  24. Like
    rob213 reacted to Stephen_C in is there a way to list all keywords or create a workflow to do so ?   
    Sorry, I was trying to edit a post and it disappeared while I checked something else. There is also this help page: Use Alfred to Search Alfred: The Question Mark Trick which you may find useful from time to time.
     
    Stephen
  25. Like
    rob213 reacted to Stephen_C in is there a way to list all keywords or create a workflow to do so ?   
    And, indeed, see https://www.alfredforum.com/topic/20332-how-to-change-the-default-alfred-shortcuts/?do=findComment&comment=105220. 😀
     
    Stephen
×
×
  • Create New...