Okay, i took a stab at this
The first two are single result EA's the third combines them
1#!/bin/bash
2loggedInUser=$(python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "
3");')
4Echoing=$(defaults read /Users/$loggedInUser/Library/Preferences/com.dms.echo.plist echoing)
5
6#if that result is blank then
7 if [ -z "$Echoing" ]; then
8 echo "<result>No Echoing</result>"
9 else
10#if its not blank print the result
11 echo "<result>$Echoing</result>"
12 fi
13exit 0
1#!/bin/bash
2loggedInUser=$(python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "
3");')
4echoDays=$(defaults read /Users/$loggedInUser/Library/Preferences/com.dms.echo.plist echoDays)
5
6
7#if that result is blank then
8 if [ -z "$echoDays" ]; then
9 echo "<result>No echoDays</result>"
10 else
11#if its not blank print the result
12 echo "<result>$echoDays</result>"
13 fi
14exit 0
1#!/bin/bash
2loggedInUser=$(python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "
3");')
4Echoing=$(defaults read /Users/$loggedInUser/Library/Preferences/com.dms.echo.plist echoing)
5
6#if that result is blank then
7 if [ -z "$Echoing" ]; then
8 echoing_Result="no Echoing"
9 else
10#if its not blank print the result
11 echoing_Result=$Echoing
12 fi
13
14echoDays=$(defaults read /Users/$loggedInUser/Library/Preferences/com.dms.echo.plist echoDays)
15#if that result is blank then
16 if [ -z "$echoDays" ]; then
17 echoDays_Result="no echoDays"
18 else
19#if its not blank print the result
20 echoDays_Result=$echoDays
21 fi
22
23
24echo "<result> $echoing_Result & $echoDays_Result </result>"
25exit 0