-
1. Re: Help too selecting object [JS]
pkahrel Jul 16, 2009 10:26 AM (in response to (MightyJack))In contrast with the interface, in scripting you rarely need to select objects in order to do something with them. You collect certain text frames in your array myObjectsToSelect. If e.g. you want to move them, you'd do something like this:
for (i = 0; i < myObjectsToSelect.length; i++)
myObjectsToSelect[i].move (...);
What do you want to do with them?
Peter
-
2. Re: Help too selecting object [JS]
(MightyJack) Jul 16, 2009 10:57 AM (in response to pkahrel)Hi Peter
I have to find the OrderNumber (in a text frame) there are on top of the image and save the imagename, link and the OrderNumber in a text file.
I just had problems referred to the object by label or script, to read the geometricBounds after i have found them.
Tonny
-
3. Re: Help too selecting object [JS]
pkahrel Jul 16, 2009 11:17 AM (in response to (MightyJack))>I just had problems referred to the object by label or script, to read the geometricBounds after i have found them.
There's no need to refer to the objects by script label or id, just use the object references. To do something with each object's geometric bounds, do this:
for (i = 0; i < myObjectsToSelect.length; i++)myObjectsToSelect[i].geometricBounds = ....
Peter

