An open API service indexing awesome lists of open source software.

https://github.com/charlierobin/oscar-the-grouch-version-2

A different approach to the Oscar the Grouch revamp - uses Accessibility to get position of Mac trash, then floats Oscar animation over icon
https://github.com/charlierobin/oscar-the-grouch-version-2

Last synced: 7 months ago
JSON representation

A different approach to the Oscar the Grouch revamp - uses Accessibility to get position of Mac trash, then floats Oscar animation over icon

Awesome Lists containing this project

README

          

# Oscar The Grouch for Macintosh (macOS)

Another of my attempts at a new version of Oscar the Grouch for macOS (OSX).

(See also [this first attempt at the problem](https://github.com/charlierobin/oscar-the-grouch-version-1))

This version works a little differently, in an attempt to more closely match how the original Grouch worked.

At the moment it's just a rough outline, with none of the preferences etc from the first version (linked to above), so I can run it on my Mac for a few weeks and see how it works.

Basically: the app runs a small Applescript which then uses [Accessibility](https://developer.apple.com/library/archive/documentation/Accessibility/Conceptual/AccessibilityMacOSX/index.html) to get the size and position of the user’s trash icon from their Dock.

Then a revised version of the animation (the bitmap frames of Oscar minus the original trash artwork) is played over the trash icon, positioned and scaled so that it looks like he's popping up and out of it.

It seems to work pretty well, although the app now needs even more permissions: in addition to disk access, it needs permission to run automation (via System Events) and then to use Accessbility.

The position and scale of the Oscar animation in relation to the trash icon could do with a little fine tuning, but it’s good enough for now.

https://user-images.githubusercontent.com/10506323/215374627-25e8b54f-9df1-491a-ae77-11b067845520.mp4

(November 2nd 2024) Ooops ... forgot the link to the downloadable zipped prebuilt Mac Intel binary:

[Downloadable prebuilt Macintosh version](https://github.com/charlierobin/oscar-the-grouch-version-2/releases/download/v1.0.0/Oscar-the-Grouch-alt.zip)

(September 2025) And changed the download link so it’s now a GitHub release.