• 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 05:32:43 -0400


On Mar 21, 2016, at 2:41 AM, Iurista GmbH wrote:

I have no Script Debugger, as I'm only a hobby scripter and the price of that software is too high for my needs.

And yes, they're indeed normal AppleScript script files (".scpt"), Steve. Unfortunately, I'm not enough familiar enough with shell & Terminal matters to use cmp or cksum.

Use this script to compare the two files:

set resultFile to choose file with prompt ¬
"Choose the first file to compare, Rudolph"
set posixPathFile_1 to quoted form of POSIX path of resultFile

set resultFile to choose file with prompt ¬
"Choose the second file to compare, Rudolph"
set posixPathFile_2 to quoted form of POSIX path of resultFile

set cmpScript to "cmp " & posixPathFile_1 & " " & posixPathFile_2


try
set compareResult to do shell script cmpScript
on error errMsg number errNum
display dialog errMsg with title "Compare Failed"
return
end try

display dialog "The files are the same"

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