On Sep 28, 2011, at 15:35, wbrisett wrote:
> Does anybody have any sample AppleScript code for using the Compare option in 
> the AS dictionary of BBedit?
______________________________________________________________________

Hey Wayne,

Both of these work for me.

--
Best Regards,
Chris


------------------------------------------------------------
tell application "BBEdit"
  set win1 to window 1
  set win2 to window 2
  set resultCompareResults to compare win1 against win2
end tell
------------------------------------------------------------
set file1 to alias "Thor:Users:chris:Desktop:comp1.txt"
set file2 to alias "Thor:Users:chris:Desktop:comp2.txt"

tell application "BBEdit"
  set resultCompareResults to compare file1 against file2
end tell
------------------------------------------------------------

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to