Why can’t I quit Dropbox with “Quit a specific application” action?

Hi,

I have several macros with an action "Quit Dropbox" (Quit a specific application). This does however not happen anymore (with Dropbox version 93.4.273 on macOS 10.14). Has anybody the same issues? Is there some Dropbox helper application I should end instead?

Thanks,

Chris

Dropbox- Kurz nach Start für 5 Minuten starten.kmmacros (3.1 KB)

I think @peternlewis would have to chime in for sure, but I think Dropbox is actively making it harder to quit it via automation.

Given Dropbox's history of doing slimy and disrespectful things, this seems easy to believe.

I can confirm that Dropbox 93.4.273 does not quit when told to by Keyboard Maestro.app 9.0.5.

And it's not just Keyboard Maestro.

For example, this should work to quit Dropbox:

osascript -e 'tell application "Dropbox" to quit'

but instead it gives this error:

30:34: execution error: Dropbox got an error: User canceled. (-128)

I can assure you that the user did not cancel.

There is another option you can use. It's not as kind as an official quit, but if Dropbox is going to play dirty, well, then you have no choice but to use a bigger weapon.

Enter “Kill Dropbox Macro”

Here is a macro that will use the Unix tool pkill to force Dropbox to quit:

Kill Dropbox.kmmacros (25 KB)

At its core, all it is doing is running a shell script:

pkill -x Dropbox

which you can use in place of Keyboard Maestro's "Quit Dropbox" action. The rest is just notifications.

Here is the full macro:

1 Like

Works for me, thank you very much!

-Chris

There is a Force Quit variant to the Quit Application. You could try that.

All the normal caveats for force quitting an application would apply, doubly for an app that is syncing like Dropbox. But presumably pkill would be the same.

image

3 Likes

This works too. I wasn't aware of this option. So much hidden in Keyboard Maestro :slight_smile:

Thanks.