I want to be able to input a list and then from that list the images with the corresponding file names are selected.
This script will be running from in Capture One.
Here is what I have so far… still far from complete I imagine…
on run argv
	try
		
		
		if (class of argv is list) then
			
			set theList to list returned of (display dialog "Enter File Names" default answer "" buttons {"Cancel", "OK"} default button 2)
			set selected_images to item 1 of argv
			
			
			tell application "Finder"
				repeat with selected_images in img_path
					set name of (POSIX file (img_path as string) as alias) to img_name
					
				end repeat
				log (class of theList)
				
			end tell
		end if
	end try
end run