On Mar 21, 2016, at 2:41 AM, Iurista GmbH wrote:
But what I have learned now from all the responses is that two scriptfiles containing the same text may not necessarily be the same, (hmm, simple lesson, but quite astonishing)
You can use this script to view the actual contents of the files in question:
set resultFile to choose file with prompt ¬
"Choose the file to dump, Rudolph"
set posixPathFile_1 to quoted form of POSIX path of resultFile
set dumpScript to "hexdump -C " & posixPathFile_1
try
set dumpResult to do shell script dumpScript
on error errMsg number errNum
display dialog errMsg with title "Dump Failed"
return
end try
display dialog "Offset in file hex bytes |ascii|" & return & return & dumpResult with title "Dump Result"
As you can see, they are not the same as the text displayed by the Script Editor.