So I am constructing a basic bibliography-formatter. Here is my script so far:
on clicked theObject
if theObject is button "bookbutton" of tab view item "book" of tab view "view" of window "main" then
tell tab view item "book" of tab view "view" of window "main"
set authorfirstname to contents of text field "firstname"
set authorlastname to contents of text field "lastname"
set authorname to authorlastname & ", " & authorfirstname & "."
set booktitle to contents of text field "title"
set publisher to contents of text field "pub"
set publishercity to contents of text field "pubcity"
set publishingyear to contents of text field "pubyear"
set publisheroverall to publishercity & ": " & publisher & ", " & publishingyear & "."
set overallbiblio to authorname & " " & booktitle & ". " & publisheroverall
display dialog overallbiblio
end tell
end if
end clicked
I need to do two more things. A, I need to make it so that the whatever is entered into the Title text field is underlines, as is proper. I also need to change the display dialog command at the end to some sort of command which sets the text of a text view area to the variable “overallbiblio”
Thanks for any help you can provide!