Skip to content

Instantly share code, notes, and snippets.

@andriilive
Last active July 10, 2023 14:27
Show Gist options
  • Save andriilive/3bea0ad3330c7cb67afae10360aa3085 to your computer and use it in GitHub Desktop.
Save andriilive/3bea0ad3330c7cb67afae10360aa3085 to your computer and use it in GitHub Desktop.
WebToLayers app Trial Reset (macOs).

WebToLayers App Trial Reset (MacOs)

Last Check: May 2023 on 1.3.2 (6034) build

CleanShot 2023-07-10 at 16 21 34@2x

WebToLayers Trial Reset (Script) ☠️

# Shortcuts environment
curl -fsSL https://gist.githubusercontent.com/andriilive/3bea0ad3330c7cb67afae10360aa3085/raw/reset.sh | sudo bash -s -- true

# Terminal (with colors & debug enabled)
curl -fsSL https://gist.githubusercontent.com/andriilive/3bea0ad3330c7cb67afae10360aa3085/raw/reset.sh | sudo bash

Original script:

defaults write com.jeremyvizzini.webtolayers.macos WebPageExportCount -int 0

WebToLayers Trial Reset (Apple Shortcut) ▶️

New Apple Shortcuts app seems to be a really cosy place to store and organise tweaks & code snippets like this keeping them easy to share with friends 😃

See the shortcut example 👉🏻 WebToLayers Cleaner Shortcut.shortcut

#!bin/bash
# WebToLayers App Trial Reset (MacOs)
is_shortcut="${1:-false}"
process_name=WebToLayers
c_red='\033[0;31m' c_white='\033[0;37m' c_yellow='\033[0;33m' c_green='\033[0;32m' c_stop='\033[0m' c_gray='\033[0;37m'
killProcess() {
if pgrep -xq -- "${1}"; then
killall "$1" && echo "Stopping $1..."
sleep 2
fi
}
echo "Starting 🧹 cleanup..."
killProcess "$process_name"
defaults write com.jeremyvizzini.webtolayers.macos WebPageExportCount -int 0
result="${process_name} is ready to use!!!"
[[ $is_shortcut = false ]] && result="${c_green}$result${c_stop}"
result="$result 🥳"
echo -e "$result"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment