Jump to content


  • Content Count

  • Joined

  • Last visited

About mikejandreau

  • Rank
  • Birthday 09/29/1979

Contact Methods

  • Twitter
  • Website URL

Profile Information

  • Location
    Boston Suburbs

Recent Profile Visitors

1,374 profile views
  1. Thanks for the feedback, everyone. I think I'm going to go with the simpliest option of prefacing the setup options with : I'm also going to consider making some changes @deanishe suggested around the keywords and using external files and whatnot. I already made the change to the "tell application" stuff. Thanks again!
  2. I feel like I've seen other workflows do this, but I can't find one to copy from. Here's what I'm after: the workflow I'm building offers a "setup", where it asks users questions that they answer, and then the info get stored in variables. Each step of that setup is using a keyword (so if they want to jump right to a specific step, they can). What I'd like to do is after the first time setup is completed to hide those options if someone types in the keyword again. The reason I want to do this is that I've set the keywords to similar words to other keywords I'm using in the workflow (ie; "away" triggers an Away message, but "awaysetup" is the keyword to set that message in the variable). So, ideally, after setup is complete, if I type "away", I wouldn't see the option for "awaysetup" in Alfred. Here's my workflow (happy for any other input on anything I've done terribly!) for those who want to take a peek: https://www.dropbox.com/s/k2tk3vnu7tpdxfd/Change Slack Status %26 Play%3APause multimedia.alfredworkflow?dl=0 Its purpose: update Slack status to a specific status message, set away mode, and pause music/video & mute my computer when I leave my desk. Then "undo" it all when I'm back. It's the "statussetup" section I'd love to hide from Alfred seeing it once it's been completed the first time. If that's possible, I'd love some guidance. If what I said makes no sense, I'm happy to clarify!
  3. Brilliant. Thanks @Andrew! Would the same apply if I'm trying to grab the name of a variable to stuff into tell application "VARIABLE HERE" to activate
  4. While we're on it, I also need to grab the "Franz" value from a variable in this line, too: tell application "Franz" to activate With it being AppleScript, it needs to be in quotes, but I can't figure out how to grab the value there and have it be in quotes to appease the AppleScript.
  5. @Vero I can't share the whole Workflow, as it has some company proprietary info in it right now. But here's the "Run NSAppleScript" bit I'm working with, in its entirety: on alfred_script(q) tell application "Franz" to activate tell application "System Events" keystroke "/away " delay 2.5 key code 36 key code 36 delay 2.0 keystroke "/status " set the clipboard to {var:away} tell application "System Events" keystroke "v" using {command down} delay 2.5 key code 36 end tell key code 48 using {command down} end tell if application "Spotify" is running then tell application "Spotify" pause end tell end if end alfred_script Essentially, this bit of the workflow looks to see which Application is running (in my case, Franz), then sends some keystrokes to it to change the status. Then it goes on to pause Spotify. Until now, I'd hard coded the "var:away" bit, but I am rewriting to share with my colleagues and want people to be able to set their own messaging there. Hence the variable. (I have another part of the workflow where they setup all the variables, which is working fine). I suppose I could break this up and use the "Copy to Clipboard" Output in the workflow, but that could get messy with a bunch of different options I'm building in. But if it's the only way, I'm happy to give that a whirl.
  6. I'm building a workflow, and as part of it, I need to copy a variable to my clipboard using Applescript I'm using set the clipboard to {var:VARNAME} and also tried set the clipboard to "{var:VARNAME}" But neither has worked. Is it possible to grab the value of a varname and put it on my clipboard in this manner?
  7. That seems to have worked. The version in /Applications showed as damaged when I tried to overwrite it, which could explain why the update wasn't working. Once I deleted it and copied it over from the .dmg, all appears well again. Thanks Vitor!
  8. For the last few days, my main desktop won't seem to stay upgraded to 3.8. I get the alert there's an update, download it, run it, password input, then a second or two later it seems to want me to upgrade again. I grabbed a video of it happening, which you can see here: https://take.ms/YZn66 I've done this maybe 20 times in the last few days. My other two machines upgraded fine, so I'm sure it's something specific to this machine, I just don't know what to look for.
  9. Sorry, I missed the pinned topic there. Here's the workflow: https://www.dropbox.com/s/4wj5q271p7gw5f2/App Assessment.alfredworkflow?dl=0 The bit I'm having a problem with is between "emailaddress" and "ticketid". The version number of: Alfred 3.7.1 macOS 10.14.1 The version of any non-system language you're using (e.g. nodejs) - N/A The version of any non-system programs you're using (e.g. ffmpeg or youtube-dl) if they aren't bundled in your workflow N/A Any changes you've made to your macOS environment (e.g. via launchctl setenv) or the language you're using (e.g. via Python's usercustomize.py or sitecustomize.py files) -- None.
  10. Part of the workflow I'm building has two Script Filters back to back, which store info input by the user as part of the flow. The issue is that the {query} from the first is maintained in the input window of the second, meaning the user has to manually delete it before inputting their selection for the second Script Filter. Here's a video of it happening: http://take.ms/uwlBk How can I stop this from happening so the "Ticket ID" input isn't pre-filled with whatever was input in the first Script Filter?
  11. Awesome, thank you for going above and beyond! I'll also adapt this to validate other inputs I need to validate, too.
  12. To clarify, here's my section of the flow in question. I want to go from the Post Notification Action back to the Email Input, but I can't connect the two.
  13. Looks like that'll work. I've thrown a Script Filter in line after the ask for the email address with regex in it. I then fork for regex matches and regex doesn't match. The only issue I see is that I can't loop back from my Script Filter to the Input asking for the email. Ideally I'd like to do: Ask for Email → Regex (script filter) says it doesn't match → Show a Notification → Loop back to Ask for Email step. I don't seem to be able to connect my Regex failure Script Filter back to the input. Am I missing something there?
  14. If I'm using a basic keyword trigger, is there any method I can use to validate the input? For example, if I only want to allow numeric input, or if I want to validate email address formatting?
  • Create New...