Skip to content

Instantly share code, notes, and snippets.

@andriilive
Last active September 22, 2024 00:47
Show Gist options
  • Save andriilive/ad311ecf7e0e5a6b30da31d8c3489854 to your computer and use it in GitHub Desktop.
Save andriilive/ad311ecf7e0e5a6b30da31d8c3489854 to your computer and use it in GitHub Desktop.
Renamer 7 MacOs app trial reset

Renamer 7 OSX app trial reset

StandWithUkraine

CleanShot 2024-08-15 at 21 25 26

com.incrediblebee.Renamer trial reset (tested up to 7.0.19)

Script

Execute the bellow script in your terminal

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

# Shortcuts environment (comming soon)

Original script: reset.sh

Manual

1. Check the .sysinfo_cd file's contents

The installation date is stored in ~/Library/Preferences/.sysinfo_cd file (plist format)

# show file contents
cat ~/Library/Preferences/.sysinfo_cd

The response should be like

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.incrediblebee.Renamer</key>
    <dict>
      <key>70100</key>
      <date>2024-08-15T19:16:12Z</date>
    </dict>
  </dict>
</plist>

2. Edit <date> value

Set today as <date> field's value. Use YYYY-MM-DDTHH:MM:SSZ format

# Formated today
formatted_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo "$formatted_date"

3. Enjoy 15 days trial

Run the app

# run the app
open -a Renamer

15 day trial shold be active from now

CleanShot 2024-08-15 at 22 45 06

#!bin/bash
# Renamer App Trial Reset (MacOs)
process_name=Renamer
plist_file=~/Library/Preferences/.sysinfo_cd
formatted_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
is_shortcut="${1:-false}"
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..."
echo "Shutting down 😴 $process_name process ..."
killProcess "$process_name"
# ORIGINAL SCRIPT START
# 1. BACKUP
echo "Backing up 🗄️ .sysinfo_cd ..."
cat "$plist_file"
# 2. UPDATE DATE
echo "Setting date 📆 to $formatted_date ..."
sed -i '' "s|<date>.*</date>|<date>$formatted_date</date>|" "$plist_file"
# ORIGINAL SCRIPT END
# Result
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