Oh - you want to find “this computer” in the text file and set a local setting based on that one line. Gotcha
q: lines of file "group.txt" of folder "c:\test"
A: server1,TC_Application=MQFT,A
A: server2,TC_Application=MQFT,A
A: Brolly33,TC_Application=BROLLY,D
A: server4,TC_Application=BOB,A
T: 3.475 ms
I: plural file line
q: (tuple string item 0 of it, tuple string item 1 of it, tuple string item 2 of it) of (concatenation ", " of substrings separated by "," of it) of lines of file "group.txt" of folder "c:\test"
A: server1, TC_Application=MQFT, A
A: server2, TC_Application=MQFT, A
A: Brolly33, TC_Application=BigFix, D
A: server4, TC_Application=BOB, A
T: 2.915 ms
I: plural ( string, string, string )
q: computer name
A: Brolly33
T: 2.131 ms
I: singular string
q: (tuple string item 0 of it, tuple string item 1 of it, tuple string item 2 of it) whose (item 0 of it as lowercase = computer name as lowercase) of (concatenation ", " of substrings separated by "," of it) of lines of file "group.txt" of folder "c:\test"
A: Brolly33, TC_Application=BigFix, D
T: 1.927 ms
I: plural ( string, string, string )
q: (following text of last "=" of item 1 of (tuple string item 0 of it, tuple string item 1 of it, tuple string item 2 of it) whose (item 0 of it as lowercase = computer name as lowercase) of (concatenation ", " of substrings separated by "," of it) of lines of file "group.txt" of folder "c:\test") | "MISSING"
A: BigFix
T: 0.905 ms
I: singular string
And your possible action script to set the local computer setting based on what is in the file:
setting "TC_Application"="{(following text of last "=" of item 1 of (tuple string item 0 of it, tuple string item 1 of it, tuple string item 2 of it) whose (item 0 of it as lowercase = computer name as lowercase) of (concatenation ", " of substrings separated by "," of it) of lines of file "group.txt" of folder "c:\test") | "MISSING"}" on "{parameter "action issue date" of action}" for client