Thanks for the BBedit clipboard script

The script below worked just fine. Thanks to all who helped.

tell application “BBEdit”
activate
make new text window
set filename to (the clipboard) as string
set filepath to “G5 Office Server Drive:Upload to AMC:” & filename
open file {filepath} with LF translation
zap gremlins text 1 of text window 1 zap action delete_gremlin with filter linefeeds, non ASCII characters and controls
save text window 1
close text window 1
close text window 1
end tell

Douglas McKibbin