Skip to content

Instantly share code, notes, and snippets.

@guicaulada
Last active May 20, 2022 22:52
Show Gist options
  • Select an option

  • Save guicaulada/03fbc75988c2dc9b6d45bf2f457775bf to your computer and use it in GitHub Desktop.

Select an option

Save guicaulada/03fbc75988c2dc9b6d45bf2f457775bf to your computer and use it in GitHub Desktop.
Scripts with SQLite Commands for Mac Launchpad
#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo 'ERROR: Application name is missing!'
exit 1
fi
sqlite3 $(find /private/var/folders \( -name com.apple.dock.launchpad -a -user $USER \) 2> /dev/null)/db/db "DELETE FROM apps WHERE title='$1';"
#!/bin/bash
sqlite3 $(find /private/var/folders \( -name com.apple.dock.launchpad -a -user $USER \) 2> /dev/null)/db/db "SELECT * FROM apps;" > $(date +'%Y-%m-%d_%H:%M:%S_dump.log')
Mac Launchpad Scripts
#!/bin/bash
killall Dock
#!/bin/bash
sqlite3 $(find /private/var/folders \( -name com.apple.dock.launchpad -a -user $USER \) 2> /dev/null)/db/db "SELECT * FROM apps;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment