copy to a folder with fluctuating name

I got this line working except that I need to copy the files to a folder (sitting in the container folder) whose name always ends with “Fonts” but always starts with something different.

copy (every file in folder originals_folder whose file type is FlTp_T1Fnt) to folder … of container of folder originals_folder

FlTp_T1Fnt is already defined to a font type

thanks

Hi,

Maybe you are looking for whose name contains.

Does your containing folder only have one folder in it whose name contains 'Fonts"? If so try something like:

tell application "Finder"
	set myFolder to first folder of (container of folder originals_folder) whose name contains "Fonts"
	copy (every file in folder originals_folder whose file type is FlTp_T1Fnt) to folder myFolder
end tell

John M