• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is same not the same?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is same not the same?


  • Subject: Re: Is same not the same?
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Mon, 21 Mar 2016 06:00:32 -0400


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.

Steve
------------------
OS X 10.6.8, AppleScript 2.1.2

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Is same not the same? (From: Iurista GmbH <email@hidden>)
 >Re: Is same not the same? (From: "S. J. Cunningham" <email@hidden>)
 >Re: Is same not the same? (From: Iurista GmbH <email@hidden>)
 >Re: Is same not the same? (From: "S. J. Cunningham" <email@hidden>)
 >Re: Is same not the same? (From: Iurista GmbH <email@hidden>)

  • Prev by Date: Re: Is same not the same?
  • Next by Date: Re: Is same not the same?
  • Previous by thread: Re: Is same not the same?
  • Next by thread: Re: Is same not the same?
  • Index(es):
    • Date
    • Thread