Hi, everyone. I've got a frustrating issue with my new Mac Mini G4. Basically, an Applescript that I've used for years refuses to work, and times out instead of copying a file as it's supposed to. (This is not a KM issue, although my Applescript is running inside of KM.)
Basically, I set up my new Mac Mini G4 by restoring it from my laptop's Time Machine backup for ease of use. Everything works, except for this one script. Basically it is a command to duplicate a selected file from an external disk to a folder on the same external disk. It worked fine on the last version of this Mac Mini (a M2), and it works on my laptop. But on the M4 Mac Mini, the script times out 100% of the time.
Things I've tried: checking that all apps have permissions for everything, like accessibility, full disk access, . I also tried turning off disk access and turning it on again. Obviously it's some dumb setting, but if the restore from backup was bad, my next step will be to wipe the machine and manually reinstall everything (ugh).
One question I had was, does full disk access automatically encompass apps that "want to access data on a removable device"? Since the disk is external on the new M4 Mac Mini and things work fine on my laptop (where all files are on the local volume).
For reference, my script (well one I wrote to demonstrate the issue) is here:
--testing duplicating of files
set whichComputer to "Mac Mini" -- new Mac Mini
--set whichComuter to "Macbook" -- my Macbook AIr
tell application "Finder"
set theSel to selection
-- this times out when it's run from the new Mac
if whichComputer = "Mac Mini" then
duplicate item 1 of theSel to folder "POST" of folder "archive" of folder "peter sync" of folder "BTSync" of folder "documents" of folder "pp" of folder "users" of disk "Home Raid" with replacing
end if
if whichComputer = "Macbook" then
--this version does not time out
duplicate item 1 of theSel to folder "POST" of folder "archive" of folder "peter sync" of folder "BTSync" of folder "documents" of folder "pp" of folder "users" of disk "Macbook" with replacing
end if
end tell
Thanks for any suggestions you can offer!