diff --git a/.DS_Store b/.DS_Store index 227be7b..0a74bb6 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/mobisync.app/Contents/Info.plist b/mobisync.app/Contents/Info.plist deleted file mode 100644 index 133ffbf..0000000 Binary files a/mobisync.app/Contents/Info.plist and /dev/null differ diff --git a/mobisync.app/Contents/MacOS/mobisync b/mobisync.app/Contents/MacOS/mobisync deleted file mode 100755 index 249a99b..0000000 Binary files a/mobisync.app/Contents/MacOS/mobisync and /dev/null differ diff --git a/mobisync.app/Contents/Resources/AppIcon.icns b/mobisync.app/Contents/Resources/AppIcon.icns deleted file mode 100644 index d2ff260..0000000 Binary files a/mobisync.app/Contents/Resources/AppIcon.icns and /dev/null differ diff --git a/mobisync.app/Contents/Resources/AppSettings.plist b/mobisync.app/Contents/Resources/AppSettings.plist deleted file mode 100644 index 76d7ebf..0000000 Binary files a/mobisync.app/Contents/Resources/AppSettings.plist and /dev/null differ diff --git a/mobisync.app/Contents/Resources/MainMenu.nib/designable.nib b/mobisync.app/Contents/Resources/MainMenu.nib/designable.nib deleted file mode 100644 index 59df482..0000000 --- a/mobisync.app/Contents/Resources/MainMenu.nib/designable.nib +++ /dev/null @@ -1,705 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/mobisync.app/Contents/Resources/MainMenu.nib/keyedobjects.nib b/mobisync.app/Contents/Resources/MainMenu.nib/keyedobjects.nib deleted file mode 100644 index f215593..0000000 Binary files a/mobisync.app/Contents/Resources/MainMenu.nib/keyedobjects.nib and /dev/null differ diff --git a/mobisync.app/Contents/Resources/script b/mobisync.app/Contents/Resources/script deleted file mode 100755 index e225a28..0000000 --- a/mobisync.app/Contents/Resources/script +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/zsh -# This script syncs an Android with a Mac using adb and adb-sync. -# Version 12.1 (09 June 2021) -# Added excluding .DS_Store. Unfortunately can only exclude one file - -# Export paths for use if the script is turned into an app using Platypus. -export LC_ALL=en_US.UTF-8 -export LANG=en_US.UTF-8 -export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/$" - -# Sets the local paths -export LOG=~/Library/Logs/mobisync.log -export DOWNLOADS=~/Downloads/ - -# Set error variable -ERROR=0 - -echo "NOTIFICATION: Sync is starting..." # Send a notification (with logo) - -# Function: Reviews the last command for errors. Then prints update complete to log or shows error dialog. Takes section variable. -catcher () { -if [ "$?" = "0" ]; then - printf "$1 synced." >> $LOG # If no error, print sync complete to file. - echo "" >> $LOG # Add a line to file. -else # If error, show a dialog stating the section where the error occured. - echo "NOTIFICATION: '$1' sync failed." - printf "$1 failed to sync." >> $LOG # If error, print sync failed to file. - echo "" >> $LOG # Add a line to file. - ERROR=1 # Sets variable for error in script to 1. -fi -} - -# Function: If there has been an error in the script open the log file. -verify () { -if [ $ERROR = 1 ]; then - { echo "Error: Mobisync encountered an error in execution"; line; } >> $LOG - open $LOG - echo "NOTIFICATION: Syncing completed with some errors." -else - { echo "Success: Mobisync completed successfully"; line; } >> $LOG - echo "NOTIFICATION: Syncing is complete" -fi -} - -# Function: Creates a horizontal line in the text file. -line () { -printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - >> $LOG # Prints line -} - -# Writes the header for the log file: Program, Version number, Date and Line. -{ echo "mobisync 12.1"; echo "Log: " `date`; line; } >> $LOG - -# Syncing images and video on device to the Downloads folder on computer. -{ - adb shell find "/sdcard/DCIM/" -type f -iname \*.jpg -o -type f -iname \*.mp4 -o -type f -iname \*.dng | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; - adb shell find "/sdcard/Pictures/" -type f -iname \*.jpg -o -type f -iname \*.mp4 -o -type f -iname \*.dng | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done; -} >> $LOG -catcher Images -line - -# Syncing documents on device to the Downloads folder on computer. -{ - adb-sync --reverse --times "/sdcard/Documents/Checkin/" ~/Documents/Checkin/; - adb-sync --reverse --times --delete "/sdcard/Documents/Logistics/" ~/Documents/Logistics/; - adb-sync --exclude .DS_Store --delete ~/Documents/Papers.sparsebundle/ "/sdcard/Documents/Papers.sparsebundle/"; - adb-sync --reverse "/sdcard/Download/" $DOWNLOADS; -} >> $LOG -catcher Documents -line - -# Syncing Automate data on device to the computer. -{ - adb-sync --two-way --exclude .DS_Store ~/Projects/Programming/push/automate/ "/sdcard/.automate/Interface/"; - adb-sync --reverse "/sdcard/.automate/" ~/Mobile/Automate/; -} >> $LOG -catcher Automate -line - -# Syncing app, recovery and backups. -{ - adb-sync --reverse "/sdcard/Restore/" ~/Mobile/Restore/; - adb-sync --reverse --times "/sdcard/Backup/" ~/Mobile/Backup/; -} >> $LOG -catcher Backup -line - -# Syncing Music from the computer. -{ - adb-sync --delete --exclude .DS_Store ~/Music/ "/sdcard/Music/"; -} >> $LOG -catcher Music -line - -# Notification that the sync is over. -printf "Syncing is complete. END" >> $LOG -line -verify $ERROR - -echo "QUITAPP" \ No newline at end of file diff --git a/mobisync.sh b/mobisync.sh index e225a28..a0a8ed1 100755 --- a/mobisync.sh +++ b/mobisync.sh @@ -1,6 +1,6 @@ #!/bin/zsh # This script syncs an Android with a Mac using adb and adb-sync. -# Version 12.1 (09 June 2021) +# Version 12.1.2 (09 June 2021) # Added excluding .DS_Store. Unfortunately can only exclude one file # Export paths for use if the script is turned into an app using Platypus. @@ -62,6 +62,8 @@ line { adb-sync --reverse --times "/sdcard/Documents/Checkin/" ~/Documents/Checkin/; adb-sync --reverse --times --delete "/sdcard/Documents/Logistics/" ~/Documents/Logistics/; + adb-sync --reverse --times --delete "/sdcard/Documents/Exercise/" ~/Documents/Exercise/; + adb-sync --reverse --times --delete "/sdcard/Documents/Finances/" ~/Documents/Finances/; adb-sync --exclude .DS_Store --delete ~/Documents/Papers.sparsebundle/ "/sdcard/Documents/Papers.sparsebundle/"; adb-sync --reverse "/sdcard/Download/" $DOWNLOADS; } >> $LOG