AppleScript Help Please
Trying to teach myself AppleScript and I’m starting with the very basics. Did a search both here and via Google and really didn’t come up with anything I could understand.
For backups I use ChronoSync and it has the ability to run a script pre/post backup. I have created an Automator application that will copy a number of files/folders prior to the backup by ChronoSync. But, the ChronoSync “help”information states:
“In the "Scripts" section, you can set up scripts to be executed either before or after the synchronization runs. ChronoSync can execute AppleScript files, shell script files and applications as a pre- or post- sync 'script'. In the case of applications, ChronoSync will simply launch the application but will not wait for it to terminate. ChronoSync will patiently wait for the scripts to finish executing before continuing. Check the appropriate box based on when you want a script to run and then select the “Choose...” button to select the script that you would like to run.”
So, what I’d like to do is write a script that will copy files from one folder to another, and to make it easy to test, I’ve created two folders on the desktop. Test1 and Test2. Test1 has files, Test2 does not.
If someone could come up with the needed AppleScript for me I’d be appreciative, and hopefully be able to use that as a template for the future.
MacBook Pro 13″, macOS 12.6