#this script creates textgrids for all the selected Sound objects (multiple) #the textgrids contain four tiers: word, seg, syll ,pitch #the textgrids will be automatically saved to your desktop n=numberOfSelected ("Sound") echo n='n' for i to n sound'i' = selected ("Sound", i) printline sound'i' endfor for i to n select sound'i' label$=selected$ ("Sound") To TextGrid... "Word Syll Seg Pitch pitchSZ" Pitch pitchSZ Write to text file... 'label$' printline finished sound'i' endfor