Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/miyako/4d-plugin-dock-tile

This plugins allows 4D to control the dock tile on Mac.
https://github.com/miyako/4d-plugin-dock-tile

4d-plugin 4d-plugin-apple-silicon

Last synced: about 1 month ago
JSON representation

This plugins allows 4D to control the dock tile on Mac.

Awesome Lists containing this project

README

        

![version](https://img.shields.io/badge/version-16%2B-8331AE)
![platform](https://img.shields.io/static/v1?label=platform&message=mac-intel%20|%20mac-arm&color=blue)
[![license](https://img.shields.io/github/license/miyako/4d-plugin-dock-tile)](LICENSE)
![downloads](https://img.shields.io/github/downloads/miyako/4d-plugin-dock-tile/total)

**Note**: for v17 and earlier, move `manifest.json` to `Contents`

# 4d-plugin-dock-tile

Control the dock tile.

### Commands

```c
// --- Dock
DOCK_Get_badge
DOCK_SET_BADGE
DOCK_CANCEL_BOUNCE
DOCK_Bounce
DOCK_SET_ICON
DOCK_Get_icon

// --- Size
DOCK_GET_SIZE
DOCK_GET_SCREEN_FRAME
```

### Remarks

Badge notofication can be disabled in system settings.

badge

The badge is automatically removed when the plugin is unloaded.

### Examples

To resize the window to touch the Dock.

```
DOCK GET SCREEN FRAME ($x;$y;$width;$height)

$offsetY:=102 //Design Mode Tool Bar

SET WINDOW RECT($x;$offsetY;$x+$width;$height+Menu bar height;Frontmost window)
```