on readFile(thePath)
try
set thePath to thePath as string
set idFile to open for access file thePath
set fileData to read idFile
close access idFile
on error errMsg number errNum
close access file thePath
return false
end try
return fileData
end readFile
>>Ouvrir le script dans l'éditeur
Aucun commentaire:
Enregistrer un commentaire