Jump to content

deanishe

Community Hero
  • Content Count

    5,909
  • Joined

  • Last visited

  • Days Won

    350

deanishe last won the day on December 11

deanishe had the most liked content!

About deanishe

  • Rank
    Workflow Expert / Moderator

Contact Methods

  • Twitter
    @deanishe
  • Website URL
    https://www.deanishe.net

Profile Information

  • Location
    Essen
  • Interests
    Go, Python, beer

Recent Profile Visitors

21,699 profile views
  1. To be clear, Alfred is a launcher, not an automation app. It's not designed to tell other apps what to do other than "open this thing right now". You need to write a script to do what you want. Then you can use Alfred to run it. But again, Alfred can only run it "right now", so you'll have to take care of the delay yourself. You haven't actually said which email program you're using, so we can't give you any concrete advice. Without that information, all I can suggest is an AppleScript that waits for however long and then simulates the "Send" hotkey (not press the button—that's much harder to do). In the email client I use, MailMate (which has a send-later function anyway), the hotkey to send an email is ⇧⌘D, so to send an email in 2 hours, I would make sure the window with the email is the top window, and run the following AppleScript: -- 7200 seconds = 2 hours delay 7200 -- simulate ⇧⌘D keypress; sent to frontmost window tell application "System Events" to keystroke "D" using {command down, shift down}
  2. Vero asked what you see when you type "bm", not when you type "bm asdf". Please follow the instructions she gave you. You aren't providing enough details for us to help you.
  3. The workflow isn't capable of doing that. It only knows how to activate tabs based on window and tab numbers, not titles or URLs. You should be able to write a script to do what you want based on the scripts the workflow uses to get tab info and activate them.
  4. Nope. But you can change the keyword to "dsc": Any keywords you've changed are preserved when Alfred updates a workflow.
  5. It's pretty straightforward, actually. The only time Alfred might pass your script multiple arguments (via ARGV) is from a File Filter or a Hotkey with Argument = "Selection in macOS". At all other times, arg and variables are always single strings. If you try to use any other datatype, Alfred will convert it to a string, e.g. if you set arg in your JSON to an array, Alfred will convert it to a tab-delimited string before it reaches the next action. If you want to pass around anything that isn't a string, you can either first convert it to a string (e.g. using JSON) and then back again in the next action, or save it to a file.
  6. Yeah. I've been using a few command-line Java programs recently, and I've come to the conclusion that the problem isn't Java itself, but the way a lot of Java developers use it.
  7. When you make a custom web search, you have to adapt it to the specific URL format used by the site you're targeting.
  8. There's still a MacVim.app bundle somewhere. On my machine, it's in /usr/local/Cellar/macvim/…. And if Alfred or Spotlight can find it, you can also drag it from their results lists.
  9. Finder lies quite a lot about where files are/what their names are. If an app can't seem to find a file where Finder says it is, chances are good that there's nothing wrong with the app, but rather that Finder is lying.
  10. Well, it's basically the same question you asked last time. $url = 'https://www.google.es/search?q=' . urlencode(trim($arg)) . '+match'; or $url = 'https://www.google.es/search?q=' . urlencode(trim($arg . ' match'));
  11. Alfred 4 doesn't use the "Alfred 4" directory. It's just called "Alfred" now. But in any case, do what @xilopaint says.
  12. That's very useful to know. I wondered if there was a command-line flag for it, but I didn't realise that you can also pass them via open. Perhaps the API Alfred uses also supports them, then?
  13. I think I hate modern macOS. Yeah. You can't have such a core action being slow.
×
×
  • Create New...