[IDCS4][Remove Text Frame]

Hi,

Please see below code and which is not working for me.

‚‚‚‚If‚myDocument.textFrames.item(“myRemoveFrame”)‚Then
‚‚‚‚‚‚‚‚delete
‚‚‚‚End‚If

Any one has any idea. What I am looking is to delete all text frame with the label name of “myRemoveFrame”.

Regards,

Poo

Looks like the code you have there is VBscript or Javascript.

Here is an applescript version;


tell application "Adobe InDesign CS3"
	tell document 1
		try
			delete (every text frame whose label = "myRemoveFrame")
		end try
	end tell
end tell

Hi David,
Thanks for reply. I have no issue with applescript I am facing problem with VBscript. I tried many things but I am not sure what methods I need to call.

Regards,
Poo