Skip to content

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

Notifications You must be signed in to change notification settings

charlierobin/oscar-the-grouch-version-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Grouch for macOS

(See also this first attempt at the problem)

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 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.

oscar.mp4

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

Downloadable prebuilt Macintosh version

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages