The original version of this page can be found at : http://forum.makemusic.com/default.aspx?f=12&m=278148
Posted By : meneeermalik - 12/9/2009 8:43 PM
ok..
so part of my script selects all texts on the page and deletes it.
What I'd like is to keep the title on the page and delete everything else. I know (under the text tools) that if you do control + A that it selects all the texts and if you hold down the shift key and left click a text bock it unselects it. What I dont know is how to direct to a specific text block.

Thanks in advance.

Posted By : UCG Musician - 12/9/2009 9:40 PM
You cannot use FS to find a text box. You can act on a text box using FS once you've selected it. Here's an example of that:

Menu item "Text/Frame Attributes..."
Type -0.00 near "H:"
Type -0.38 near "V:"
Hit OK

This repositions the text box that is selected.

Posted By : UCG Musician - 1/3/2010 11:49 PM

I found a way to use Finalescript to select & act upon a single text box but it must be in a known place.  The files I primarily work with have the same types of text boxes & they're almost always in the same place.  But selecting them takes few tricks.

First, the view must be set to some standard setting for each file.  Then, the Ctrl + Home Key is invoked.  Next, the cursor is set to the position where the text box handle is.  Finally, the click function is used.  At this point the text box is selected & can be manipulated as desired.

Below is an example of a working script that selects a subtitle normally situated at H: = 0.00" & V: = -0.35".  The code sets the page to 75% & locks it in "home position".  Then the mouse position is set to 320 205.  These are grid coordinates determined mostly by trial & error.  Once the cursor is at that location, the click command selects the handle.  From that point on you can manipulate whatever parameters you want in the Text/Frame Attributes dialog box.  In this case it simply adjusts the vertical position -0.35 to -0.38.

Text Tool

Press Ctrl + 3

Press Ctrl + Home Key

Mouse 320 205

Click

Menu item "Text/Frame Attributes..."

Type -0.00 near "H:"

Type -0.38 near "V:"

Hit OK