add a watermark to your FileMaker Pro icons to quickly differentiate filemaker versions. For example, you can add a "20" watermark to your FileMaker Pro 20 app and a "21" watermark to your FileMaker Pro 21 app.
-
Download or clone this repository to your local machine.
git clone https://github.com/jwillinghalpern/fm_watermark_icon.git cd fm_watermark_icon -
python3 -m pip install --upgrade pip && python3 -m pip install pillow numpy -
Install fileicon using one of these approaches
brew install fileicon
or
npm install fileicon -g
-
Make the script executable
chmod +x fm_watermark_icon.py
-
(Optional but recommended) Add the script to your PATH for easy access
Create a symlink (preferred if you want to keep the script in its current location)
Note: When using symlinks, the file must remain in the original directory:
sudo ln -s "$(pwd)/fm_watermark_icon.py" /usr/local/bin/fm_watermark_iconOr copy the script to a directory already in your PATH. If you choose this method, you may need to update the copied script in the future when changes are made in this repository
sudo cp fm_watermark_icon.py /usr/local/bin/fm_watermark_icon
Add a "22" watermark and immediately update the app icon:
fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22Or using the short form:
fm_watermark_icon -a '/Applications/FileMaker Pro.app' -t 22Add a "23" watermark and save to a file instead of updating the app:
fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 23 --output new_icon.icnsChange the colored parts of the icon to orange while adding a watermark:
fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --color "#FF8A00"Just tint the icon without adding text watermark:
fm_watermark_icon --app '/Applications/FileMaker Pro.app' --color "#00A7FF"Change white/light background regions to a custom color:
fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --bg-color "#F0F0F0"Combine colored region tinting with background color change:
fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --color "#FF8A00" --bg-color "#E8E8E8"Use red text for the watermark:
fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --text-color "#FF0000"White text on a dark background:
fm_watermark_icon --app '/Applications/FileMaker Pro.app' --text 22 --text-color "#FFFFFF" --bg-color "#000000"The original positional argument format still works:
fm_watermark_icon '/Applications/FileMaker Pro.app' 22If you use the --output approach, you can manually update the app icon for FileMaker by right-clicking on the FileMaker Pro app in Finder and selecting "Get Info". Then drag or paste the new icon over the old one in the top left corner of the Info window.
This only works on macos.