How to access $('p').eq(1) in another frame

How to access $('p').eq(1) in another frame

I know how to access *all* paragraphs in another frame and (eg) change their text content.

I do this via the following code (code A)
$('p' , window.parent.log.document).text('test')
(log is the name of the frame that contains the paragraphs)

But I cannot access a *particular* paragraph (eg the 2nd paragraph) - if there were no frames in the document I would do this via $('p').eq(1) but I cannot get this to work using any variation (and I feel as if I've tried them all!) of code A.

TIA