Convert Unicode to text?
I have this little script that searched for files
set tc to countspotlightqueryList
set theseCount to {}
repeat tc times
set end of theseCount to 0
end repeat
repeat with i in thefolders
set thepath to my existsItem(tHome & i)
if thepath is not "" then -- exists
repeat with j from 1 to tc
set tQuery to itemj of spotlightqueryList
do shell script "mdfind -onlyin " & thepath & " " & tQuery & " " & thekind & " | wc -l" -- wc return the number of lines
set item j of theseCount to (item j of theseCount) + (the result as integer) -- add the number of lines
end repeat
end if
end repeat
Then I add it to the csv file
do shell script "echo " (quoted form of theseCount) & " >>" & quoted form of POSIX path of csvPath
Now when I log theseCount
the result is (*70, 369, 0, 141, 113, 45*)
error "Can’t make quoted form of {70, 369, 0, 141, 113, 45} into type Unicode text." number -1700 from quoted form of {70, 369, 0, 141, 113, 45} to Unicode text
I need to get each value in the quoted form.
How can I do this?
Thanks
Matt
Mac Pro, OS X Mavericks (10.9)