Jump to content

mikejandreau

Member
  • Content Count

    36
  • Joined

  • Last visited

About mikejandreau

  • Rank
    Member
  • Birthday 09/29/1979

Contact Methods

  • Twitter
    mikejandreau
  • Website URL
    https://www.mikejandreau.com

Profile Information

  • Location
    Boston Suburbs

Recent Profile Visitors

1,356 profile views
  1. 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!
  2. 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.
  3. 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.
  4. 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?
  5. Awesome, thank you for going above and beyond! I'll also adapt this to validate other inputs I need to validate, too.
  6. 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.
  7. 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?
  8. 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?
  9. I figured it out. I don't actually need the AppleScript to get the Variable, since I'm using that variable directly in scripts in the Workflow and not external scripts. Thanks for the help!
  10. Color me a noob, I'm just not getting it. I'm doing what I _think_ should be working, but it's not. Here's what I'm doing: app-trigger.png - this is what triggers when someone types "app" and inputs their app name, this should set the configuration value for APP_NAME to the {query} test.png is the mini separate trigger I wrote to test it. All it does it grab the value from the config and push it to a Notification get_app_name.png should grab the name from the config and set it as a variable notification_with_name.png should push a notification with the value the AppleScript grabbed and set as a variable. I'm clearly missing something, but don't know what. Thanks for your help (and patience!)
  11. So if I use: tell application "Alfred 3" to set configuration "APP_NAME" to value "{query}" As a Run Script (usr/bin/osascript (AS))action after my initial "app" trigger, that'll store my value as a configuration, right? How do I then grab it in something else such as a "Run Terminal Script" action?
  12. I'm building a workflow and could use some help with storing semi-permanent variables. For example, the majority of the workflow will be triggered by the word "app", which asks for a variable of the name of the app the person's working with. I want to store that in a variable that I can use in a different flow within the same workflow, using a different trigger. So my workflow would be: app {query} → do some stuff → ask a question → store that in a variable. Then, if someone uses input trigger "diagnose", I want to execute a script using the very first variable from the "app" trigger (which could have been an hour or days ago). If the user triggers the "app" again, I want the variable value to be overwritten. I'm -- right now -- using the Utility of "Args & Vars" which works if the variable is within the main flow, but not if I try to trigger any of my inputs that comes after the initial "app" trigger. I couldn't find a good doc on how to accomplish this (if it's possible). Can someone point me in the right direction?
  13. I must be stupid. It was stuck because iTunes was frozen. Seems to be fine once I rebooted. Phew.
  14. Hey guys, Part of one of my workflows, when triggered via a keyboard shortcut, pauses any audio/video that's playing and changes the volume on my computer. Here's the (basic) script: on alfred_script(q) --Check App Status, to only act on apps if running tell application "System Events" to set SkypeIsRunning to (count of (every process whose name is "Skype")) > 0 --iTunes if application "iTunes" is running then tell application "iTunes" pause end tell end if if application "Spotify" is running then tell application "Spotify" pause end tell end if if application "Plex Media Player" is running then activate application "Plex Media Player" tell application "System Events" key code 49 end tell end if set curVolume to get volume settings if output muted of curVolume is false then set volume with output muted else set volume without output muted end if end alfred_script It doesn't seem to work anymore in Mojave, likely due to permissions, though I went through the permissions doc (https://www.alfredapp.com/help/getting-started/macos-mojave/) and confirmed Alfred has the right permissions in Privacy for both Accessibility, Full Disk Access and Automation. But yet my script doesn't work. Anyone have any suggestions to try?
×
×
  • Create New...