Jump to content

Process Control — Manage misbehaving system processes


Recommended Posts

  • 5 months later...

Thank you so much for this great workflow. It works superbly.

 

Is it possible that you add a "Restart" option? Ideally, two types of "Restart" would be available:

  • "Quit and Relaunch". For apps that are not really frozen and for some reason just need a restart, I rather quit conventionally to not lose any data.
  • "Force Quit and Relaunch" for apps that are frozen.

Thanks again!

Link to comment

@vitor, I see. Well, I guess it was a misuse of words and what I really referred to were processes.

 

I checked Activity Monitor and for a given process there, you have an option to Quit (⌥⌘Q) and Force Quit (that small icon, see attachment), which is different than the former option, if I'm not mistaken.

 

Thanks.

 

image.png.0f2be2026c0619e63521cb5daaa81fc9.png

Link to comment

Thanks @vitor.

 

1. Is the Quit command in Activity Monitor equals to conventional quitting (⌘Q) when there's a standard macOS app in focus? (i. e. Chrome).

2. What I was inquiring about was the possibility that you add an option to relaunch the process that was just quitted, or force quitted.

 

Regards

Link to comment
42 minutes ago, kodiak said:

1. Is the Quit command in Activity Monitor equals to conventional quitting (⌘Q) when there's a standard macOS app in focus? (i. e. Chrome).

 

As far as I’m aware, yes.

 

43 minutes ago, kodiak said:

2. What I was inquiring about was the possibility that you add an option to relaunch the process that was just quitted, or force quitted.

 

I know, and that’s where my previous reply applies. You can’t simply restart a process; not how you can an app. They are not the same thing.


Open Google Chrome, then search for it in with the Workflow. You’ll find a bunch of Google Chrome Helper processes. Those are not the app. Restarting those would not restart Chrome, and they are managed by Chrome, as they should be. It is possible to restart apps with Alfred, but that’s not what this Workflow is about; this Workflow is about processes. To restart apps, you’d need to build something different.

Link to comment
  • 4 weeks later...
  • 3 months later...

@Maddog I’ll need you to be way more specific.

  • Which macOS version are you on?
  • Which Alfred version are you on?
  • Which ProcessControl version are you on?
  • What do you mean “kills the workflow”? Does it crash, does nothing show?
  • Open the debugger, set the log output to “All Information”, do your action, and post the output.

Link to comment

Hey, sorry...

 

OS: 10.11.6

Alfred: 3.6.2 (922)

Process Control: 1.0.6

 

Yeah, the workflow just doesn't show anything, the debug shows:

 

[2018-08-06 10:05:35][ERROR: input.scriptfilter] Code 1: ~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/F4B6A515-4330-4787-A8F6-B96452EDC1E5:4:in `split': invalid byte sequence in UTF-8 (ArgumentError)
	from ~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/F4B6A515-4330-4787-A8F6-B96452EDC1E5:4:in `<main>'

 

Thanks

 

Link to comment

Since this is an issue with the Ruby version on an older OS, I’m tempted to not fix that one. I usually try to support the current macOS release and the one before, and 10.11 is two versions (soon three) behind. Fixing this means introducing a workaround that makes no sense for later versions.

 

That particular issue is difficult for me to debug and fix since I share neither the OS, ruby version, or app with similar peculiarity.

 

I’ll give it some thought.

Link to comment
  • 1 year later...

Hey vitor,

Thanks for the nice workflow

it seems here, I cmd+enter on a process does nothing, same for kill -15 *process name*

  • Which macOS version are you on? Catalina 10.15.2
  • Which Alfred version are you on? Alfred 4 (latest version from the official website, downloaded 2 days ago)
  • Which ProcessControl version are you on? (downloaded from this community readme)
Link to comment
On 3/3/2020 at 5:02 PM, fuorviatos said:

Thanks for the nice workflow

 

Thank you for the kind words.

 

On 3/3/2020 at 5:02 PM, fuorviatos said:

it seems here, I cmd+enter on a process does nothing

 

I need something more specific. Open the debugger, set the log output to “All Information”, and post the output.

 

On 3/3/2020 at 5:02 PM, fuorviatos said:

same for kill -15 *process name*

 

kill takes process IDs, not names (that’s killall)

 

On 3/3/2020 at 5:02 PM, fuorviatos said:
  • Which Alfred version are you on? Alfred 4 (latest version from the official website, downloaded 2 days ago)
  • Which ProcessControl version are you on? (downloaded from this community readme)

 

I need specific versions.

Link to comment
  • 4 months later...
7 minutes ago, RuslanI said:

Is Alfred 4 is so much different that workflows are incompatible? 

 

New Alfred versions introduce capabilities that (logically) previous versions don’t know about. So when you save a Workflow in a newer version, it stops being accessible to previous ones.

 

2 minutes ago, RuslanI said:

It would not run on Alfred 3.

 

And it never will again. Though it would be possible to make the Workflow work on Alfred 3, it would require extra work on my part, including having an older Alfred version installed and developing on it. My Workflows are distributed for free, so I only support the Alfred version I’m on—always the latest. That allows me to concentrate on take advantage of all Alfred’s features.

 

You may be able to find a version of this Workflow that works on Alfred 3, if you scour through the Github commits—unsure, as I don’t recall if I built this on Alfred 3 or 4.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...