TheBrew wrote:OK, on your MacBook, press Cmd+Space (opens Spotlight search) and type "term". That should find Terminal - press enter to open it.
Copy and paste this to the terminal:
- Code: Select all
dbres=$(sqlite3 ~/Library/Application\ Support/Eyefi/Eyefi\ Mobi/offline.db 'SELECT o_mac_address, o_upload_key FROM o_devices') && keys=(${dbres//$'\n'/ }) && dbpath=$(find ~/Library/Application\ Support/Eyefi/Eyefi\ Mobi -regex ".*[0-9]\.db" -maxdepth 1) && if [ ${#dbpath} -gt 0 ]; then dbres=$(sqlite3 "$dbpath" 'SELECT mac_address, upload_key FROM devices'); eckeys=(${dbres//$'\n'/ }); keys=("${keys[@]}" "${eckeys[@]}"); fi && for keyandmac in "${keys[@]}"; do mobimac=${keyandmac:0:17}; mobikey=${keyandmac:18}; ssurl="shuttersnitch://?setKey=${mobikey}%26forMAC=${mobimac}"; open mailto:?body=$ssurl; done;
Press enter to run it..
Wow that is one heckuvan awesome script! Nicely done!!!