AppleScript: Help with copying folder to Library/Application Support
Hi,
I'd like to copy a folder named SMFL from a source folder META FILE in a parent folder named My FOLDER to this destination: "/Library/Application Support/SMuFL/Fonts/" but I can't manage with it...
Actually, the META FILE folder include a folder named SMFL where SMFL contains again a .json file named SMFL.JSON, so I want my folder SMFL to be exactly copied here: "/Library/Application Support/SMuFL/Fonts/"
Below is my code:
tell application "Finder"
activate
set SRCMETA to folder "MY FOLDER:META FILE" of desktop
set thePath to "/Library:Application Support:SMuFL:Fonts"
duplicate every file of SRCMETA to thePath with replacing
end tel
Thanks a lot for your help, and sorry if I'm making any confusion.