Delete Empty Text Blocks

Steve Mills smills at multi-ad.com
Sat Apr 12 13:30:54 CDT 2008


On Apr 12, 2008, at 06:49:01, Zach Manring wrote:

> Ok I see what you mean, I could make it find it, then select it  
> somehow and
> at the end delete selection? Kinda like the clear pasteboard script.  
> Alright
> so how can I get the element info of the selected text flow that  
> comes back
> at 0. Using the text flow owner shape?
>>

This assumes each flow has only 1 block.

tell application "MultiAd Creator Pro"
	set emptyShapes to {}
	set num to number of text flows of document 1
	
	repeat with i from 1 to num
		if length of text flow i of document 1 is 0 then
			set end of emptyShapes to get owner shape of text container 1 of  
text flow i of document 1
		end if
	end repeat
	
	delete emptyShapes
end tell

_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
smills at multiad.com                       www.multi-ad.com




More information about the Creator mailing list