Skip to main content
Participant
February 1, 2013
Answered

How to select all text, all layers including locked or not visible, using VBScript?

  • February 1, 2013
  • 1 reply
  • 812 views

I'm looking for the most elegant syntax to loop through a document and select all the text frames.

This topic has been closed for replies.
Correct answer CarlosCanto

you can't select objects in hidden or locked layers...so, you'll have to unlock/unhide the layer and do what you need to do with the text while the layer is visible/unlocked.

to get all text loop thru text in the document object, that'll get all text items. If you loop thru text in a layer object, you won't get the text that is inside groups.

1 reply

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
February 1, 2013

you can't select objects in hidden or locked layers...so, you'll have to unlock/unhide the layer and do what you need to do with the text while the layer is visible/unlocked.

to get all text loop thru text in the document object, that'll get all text items. If you loop thru text in a layer object, you won't get the text that is inside groups.