to make it work with any file, delete the of type "com.adobe.postscript" phrase. then you'll be able to select any file you want. however, if you have file extensions that are not exactly three characters long you need to modify the script:
set theFiles to (choose fileof type "com.adobe.postscript" with multiple selections allowed)
tell application "System Events"
repeat with thisFile in fileList
set fName to (get name of thisFile)
-- extract extension form original name to add to new name
set fExtension to (get name extension of thisFile)
-- only work on file names that are (6 chars plus the period plus the length of the extension) long
if length of fName > 7 + (length of fExtension) then
set newFName to text 1 thru 6 of fName & "." & fExtension
set name of thisFile to newFName
end if
end repeat
end tell
edited by twtwtw to correct oversights