Hey,
I’m trying to update my old script, but can’t figure it out. I want to copy fonts from a folder in Active window to “user/library/fonts” folder. The script is giving me error.
My script is this, can someone please help me out:
set userApplicationSupportFolder to path to application support folder from user domain as text
tell application "Finder"
set theLocation to target of front window
-- Copies the scripts to Desktop
duplicate (folder "General_Scripts" of theLocation) to desktop with replacing
-- Copies the PDF Preset to the Preset folder
duplicate (every file of folder "PDF_Presets" of theLocation) to folder (userApplicationSupportFolder & "Adobe:Adobe PDF:Settings") with replacing
-- Copies the Fonts to the User Fonts folder
set myPath to (path to home folder as text) & "Library:Fonts" as alias
duplicate (every file of folder "New Fonts" of theLocation) to folder (myPath) with replacing
end tell