I've just installed MacTeX and used TeXworks. However, every time a want to insert a new BibTeX record, I have to manually execute BibTeX command in a terminal and then run Typeset in TeXworks, otherwise I will receive 'citation undefined' warning and a citation is displayed as '[?]'. I want to ask for a way to manually execution all required commands for inserting bib just by clicking on Typeset in TeXworks.
When using TeXworks with MacTeX, there's no need to run BibTeX from a Terminal prompt.
pdfLaTeX once from inside TeXworks -- presumably by clicking on the black arrow inside the green circle, right? -- you need to click on the drop-down menu to the immediate right of the "Typeset" button and select
BibTeX from the options that present themselves. After running
BibTeX once, run
pdfLaTeX twice more.