Has AppleScript change is Sequoia?

Hi all, I use AppleScript to backup my photo drives and my music/video drives. Two simple scripts that in Sequoia does not seem to work anymore. It seems like using the path to the volumes AppleScript no longer likes but there is no error code. This is one script...




set source to "/Volumes/Media Main/"


set destFolder to "/Volumes/Media Backup"


do shell script "/usr/bin/rsync -av --delete --exclude=.* -i --log-file=/Volumes/Macintosh SSD 1TB/ Users / bill / desktop / AppleScriptLog / MediaBackup.txt" & (quoted form of source) & " " & (quoted form of destFolder)



All I get is AppleScript in Result window is "Running."

Any idea's would be appreciated. Thanks in advance

Mac mini, macOS 15.3

Posted on Mar 21, 2025 8:37 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 9, 2025 4:00 AM

Apple changed rsync(v.2.6.9) to openrsync in Sequoia (see Der Flounder). As a result, the option “--log-file” is an error in standalone mode.

% /usr/bin/rsync --log-file
rsync: unrecognized option `--log-file

The error does not occur when started in daemon mode.

% /usr/bin/rsync --daemon --log-file
rsync: option `--log-file' requires an argument
usage: rsync --daemon [-46hv] [--address=bindaddr] [--bwlimit=limit] [--no-detach]
	[--log-file=logfile] [--port=portnumber] [--sockopts=sockopts]

But, if you want is to save the verbose output of “-av” to a text log, you may as well just write STDOUT with “>”.

Alternatively, you can solve this problem by putting in rsync v.3 yourself via brew, macports, etc.

Also, your script's options would drop extended attributes (tags, color labels, etc.), so I suggest “-E” or “--extended-attributes” (for apple rsync), or “-X “ or “-xattrs” (for rsync v.3).

11 replies
Question marked as Top-ranking reply

Apr 9, 2025 4:00 AM in response to wrcooke

Apple changed rsync(v.2.6.9) to openrsync in Sequoia (see Der Flounder). As a result, the option “--log-file” is an error in standalone mode.

% /usr/bin/rsync --log-file
rsync: unrecognized option `--log-file

The error does not occur when started in daemon mode.

% /usr/bin/rsync --daemon --log-file
rsync: option `--log-file' requires an argument
usage: rsync --daemon [-46hv] [--address=bindaddr] [--bwlimit=limit] [--no-detach]
	[--log-file=logfile] [--port=portnumber] [--sockopts=sockopts]

But, if you want is to save the verbose output of “-av” to a text log, you may as well just write STDOUT with “>”.

Alternatively, you can solve this problem by putting in rsync v.3 yourself via brew, macports, etc.

Also, your script's options would drop extended attributes (tags, color labels, etc.), so I suggest “-E” or “--extended-attributes” (for apple rsync), or “-X “ or “-xattrs” (for rsync v.3).

Apr 9, 2025 5:36 AM in response to mu-on

I did install V3 of rsync and had some assistance with a couple different glitches it is working fine again. I do thank everyone for the assistance. My final working script is.


set source to "/Volumes/Media Main/"

set destFolder to "/Volumes/Media Backup"

set userPath to "/Volumes/Macintosh SSD 1TB/Users/bill/"


do shell script "/Volumes/Macintosh\\ HD/opt/homebrew/bin/rsync -av  --delete --exclude=.* --log-file=" & quoted form of (userPath & "desktop/AppleScriptLog/MediaBackup.txt") & space & (quoted form of source) & space & (quoted form of destFolder)


tell application "TextEdit" to open POSIX file (userPath & "Documents/done.txt")

Mar 21, 2025 9:32 AM in response to wrcooke

AppleScript has not changed in Sequoia. Review your spacing between the rsync arguments as it is hard to discern from your plain posting when you should have used the code </> tool in this editor.


Are you using the rsync(1) that shipped with Sequoia? Does the rsync command work correctly when adapted to run from the Terminal command line? Replace your & " " & with & space &. You do not need to enclose the quoted form of source or destFolder in parenthesis.

Mar 22, 2025 12:24 PM in response to VikingOSX

Just confirmed it seems to work in terminal.

rsync -anv /Volumes/Media\ Main  /Volumes/Media\ Backup

Media Main and Media Backup are two drives that store my iTunes and video files.

I think I need to figure out why the syntax seems to be wrong when this has worked without change in about 10 yrs. Let me say, the external drives are not AFPS, they are Mac OS Extended if this is an issue now

Thanks

Mar 21, 2025 12:44 PM in response to wrcooke

Interesting! This script has worked for at least 10 yrs and has only stopped after upgrading to Sequoia. I tried letting this run while going out for a bit and when I returned it looks like it is starting to "copy" the boot volume to the media backup volume. I noticed AppleScript doesn't seem to like /Volumes/volumeName I also presume because I am running AppleScript from Sequoia it should be using rsync from Sequoia as well. Need to test on non destructive items just to be safe.

Mar 21, 2025 2:26 PM in response to VikingOSX

I have scripts saves as scripts only, not an app. I launch AppleScript from the utilities folder then open the script. I saw a tiny program that one can use to get the posix path of the directory you want to use in the event I was using the wrong format. It shows my path the same as in the script. Things are definitely weird. Thanks for your help so far though.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Has AppleScript change is Sequoia?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.