I have the following code
on open the_Droppings
-- set something to {item 1 of the_Droppings, item 2 of the_Droppings}
set file1 to POSIX path of item 1 of the_Droppings
set file2 to POSIX path of item 2 of the_Droppings
set diff to (do shell script "diff " & file1 & " " & file2)
if (diff is equal to "") then
display dialog "files are the same"
else
set diff to ""
tell application "TextEdit"
activate
set NewDoc to make new document
set diff to text of NewDoc
end tell
end if
end open
end
two problems with it! One: it opens a dialog box that is very long. So long that I cant even hit the ok to exit it. (I know i can hit the return key) Question, how do I stop the dialog box? Two: It never puts the text in the new textedit that it opens.