tell application "Finder" to set fSel to selection as alias list
set fileCount to (length of fSel) - 1
repeat with i in fSel
set contents of i to (quoted form of (POSIX path of i))
end repeat
tell application "Terminal" to do script
delay 0.5
tell application "System Events" to tell application process "Terminal"
set frontmost to true
repeat fileCount times
keystroke "t" using {command down}
end repeat
end tell
delay 0.5
tell application "Terminal"
tell front window
set selected tab to its tab 1
repeat with i from 1 to count of tabs
do script "emacs " & item i of fSel in tab i
end repeat
end tell
end tell