end makeList
--=====
(*
*)
on writeTo(targetFile, theData, dataType, apendData)
-- targetFile is the path to the file you want to write
-- theData is the data you want in the file.
-- dataType is the data type of theData and it can be text, list, record etc.
-- apendData is true to append theData to the end of the current contents of the file or false to overwrite it
try
set targetFile to targetFile as text
set openFile to open for access file targetFile with write permission
if not apendData then set eof of openFile to 0
write theData to openFile starting at eof as dataType
close access openFile
return true
on error
try
close access file targetFile
end try
return false
end try
end writeTo
------------------------------------------------------------------------------------------------
on open droppedFiles
display dialog (count droppedFiles) as text
my writeTo((path to desktop as text) & "essai.txt", droppedFiles as text, text, false)
makeList(droppedFiles)
end open
------------------------------------------------------------------------------------------------
the text file contain 102 file paths and the TextWrangler document contain 102 lines too.
I can't guess what but it seems that something is weird on your system.
I repeat that I run 10.7.4 in French but I have some difficulties to imagine that there is a bug striking only on English systems.