Skip to main content
Known Participant
January 5, 2009
Question

Find whats the Next Frame

  • January 5, 2009
  • 4 replies
  • 540 views
Hi scripters

Here I am trying to find the next frame. Here is my script.

var myf = app.selection[0];
alert(myf);
var b = myframe.nextTextFrame;

The script error
Error Number: 55
Error string: Object does not support the property or method 'nextTextFrame'

Please advice me where I am mistaken

thanks in advance

regards
a r u l
vpublish.net
This topic has been closed for replies.

4 replies

hm_arulAuthor
Known Participant
January 5, 2009
Hi Kasyan thanks a lot for u r help

regards
a r u l
Kasyan Servetsky
Legend
January 5, 2009
Arul,

This code works for me, when I have a text frame selected and if this text frame is linked to the following frame in the thread. In this case you’ll successfully get a reference to the next text frame in the chain.

Kasyan
hm_arulAuthor
Known Participant
January 5, 2009
Hi Kasyan

Thanks for your reply. I am sorry for my typo mistake I have corrected now the script is like this

var myf = app.selection[0];
alert(myf);
var b = myf.nextTextFrame;

but the same error thrown by the scrip!

please advice

thanks

regards
a r u l
vpublish.net
Kasyan Servetsky
Legend
January 5, 2009
There is a typo in your code. The 3rd line should be:
var b = myf.nextTextFrame;