What is going on, and how do I fix it? This was a very helpful script because OSX got rid of the Print Window command.
tell application "Finder"
set theFolder to choose folder
set theList to (every file of theFolder) as list
set theList to (sort theList by name) as list
set defaultNameList to "Every file of folder: " & (name of theFolder)
set theNameList to defaultNameList
repeat with thisItem in theList
set theNameList to theNameList & return & name of thisItem
end repeat
end tell
if theNameList is defaultNameList then
beep
display dialog "No files found." buttons {"Cancel"} default button 1
end if
try
set the clipboard to theNameList
beep 2
on error
beep
end try