I made this for a post in a different section, but if you would like to sync your iPhone without backing up each time run this AppleScript; it works by temporarily stripping write permissions from the folder that holds the iOS backups until that step is complete. It still needs refining to support wifi sync, multiple devices, and close/quit Terminal.
1. Paste code in-between the ***s in Script Editor
2. Change DeviceName to whatever you call your phone
3. Export it as an application so you can just double-click to execute.
4. You'll need to grant the exported AppleScript application it some permissions.
tell application "Terminal"
activate
do script "chmod 000 ~/Library/Application' 'Support/MobileSync/Backup/"
display notification "Permissions changed"
tell application "Finder" to open ("/" as POSIX file)
tell application "System Events" to tell outline 1 of scroll area 1 of splitter group 1 of window 1 of application process "Finder"
set theElements to first UI element of every row whose name is "DeviceName"
repeat with e in theElements
try
if name of e is "DeviceName" then
tell e to perform action "AXOpen"
exit repeat
end if
end try
end repeat
end tell
tell application "System Events" to tell application process "Finder"
repeat until button "Sync" of splitter group 1 of splitter group 1 of window "DeviceName" exists
end repeat
click button "Sync" of splitter group 1 of splitter group 1 of window "DeviceName"
end tell
delay 30
tell application "Terminal"
do script "chmod 755 ~/Library/Application' 'Support/MobileSync/Backup/"
display notification "Permissions restored"
end tell
end tell
1. Paste code in-between the ***s in Script Editor
2. Change DeviceName to whatever you call your phone
3. Export it as an application so you can just double-click to execute.
4. You'll need to grant the exported AppleScript application it some permissions.
tell application "Terminal"
activate
do script "chmod 000 ~/Library/Application' 'Support/MobileSync/Backup/"
display notification "Permissions changed"
tell application "Finder" to open ("/" as POSIX file)
tell application "System Events" to tell outline 1 of scroll area 1 of splitter group 1 of window 1 of application process "Finder"
set theElements to first UI element of every row whose name is "DeviceName"
repeat with e in theElements
try
if name of e is "DeviceName" then
tell e to perform action "AXOpen"
exit repeat
end if
end try
end repeat
end tell
tell application "System Events" to tell application process "Finder"
repeat until button "Sync" of splitter group 1 of splitter group 1 of window "DeviceName" exists
end repeat
click button "Sync" of splitter group 1 of splitter group 1 of window "DeviceName"
end tell
delay 30
tell application "Terminal"
do script "chmod 755 ~/Library/Application' 'Support/MobileSync/Backup/"
display notification "Permissions restored"
end tell
end tell