I want to take handler output as text or string

getInternalIP()
I am getting IP from handler, I want to get this into string or text and
then further create new folder and then give this IP as foldername

on getInternalIP()
	repeat with interface from 0 to 5
		try
			set myIP to word 2 of (do shell script "ifconfig en" & interface & " | grep 'inet '")
			set result_check to true
		on error
			set result_check to false
		end try
		if result_check then exit repeat
	end repeat
	if interface is 5 then
		return "unknown"
	else
		return myIP
	end if
end getInternalIP

Hi,

try this


set desktopPath to (path to desktop as text)
set myIPFolder to desktopPath & getInternalIP()
do shell script "/bin/mkdir -p " & quoted form of (POSIX path of myIPFolder)
set myIPFolderAlias to alias myIPFolder

on getInternalIP()
	set myIP to IPv4 address of (system info)
	if myIP is "127.0.0.1" then
		return "unknown"
	else
		return myIP
	end if
end getInternalIP


yes this works
thanks again sir