Selecting/Renaming Files

Can anyone tell me if it is possible to have the finder go into a folder, select a file by creator code (ie: simple text file) and change the name of that file?

Thanks
Dean

Hi :slight_smile:
Here a small suggestion:

tell application "Finder"
	set theDoc to (choose file of type "TEXT")
	set name of theDoc to (text returned of ¬
		(display dialog "The new name :" default answer (get name of theDoc) with icon 1))
end tell

:wink: