(*
Here's an example of converting a posix path to an unc link. The host is hardwired for now.
The results are put on the clipboard. To do: Extract host and protocol from mount output.
--CBT
*)

on open these_items
	set path_str to ""
	repeat with i from 1 to the count of these_items
		set path_str to path_str & POSIX path of item i of these_items & (ASCII character 10)
	end repeat
	
	set the clipboard to (do shell script "cat <<EO_TEXT | sed 's#/^Volumes##; s#/#\\\\#g; s#^#\\\\\\\\SERVER#' | sort
" & path_str & "EO_TEXT
") as string
end open

open copy-unc-paths in the applescript editor