InDesign - create outlines of text on path

Hello,

I want to convert all my text on paths to outlines. The following script produces this error: “Can’t get every character of every text path of active document.”


tell application "Adobe InDesign CS2"
	tell active document
		set my_outline_text to every character of every text path
		create outlines of my_outline_text without delete original
	end tell
end tell

I’m sure I’m missing a big obvious here, anyone want to jump in and point it out to me?

Thanks!
Clobberella

Clob:

You can talk directly to the text frame.

this works:

tell application "Adobe InDesign CS3"
	tell document 1
		set outlineMe to every text frame of it
		create outlines of outlineMe without delete original
	end tell
end tell

If you only want to do text on paths, this works:

tell application "Adobe InDesign CS3"
	tell document 1
		set myOutlines to every text path of every page item of it
		repeat with outlineMe in myOutlines
			create outlines of (every text of outlineMe) without delete original
		end repeat
	end tell
end tell

Thanks misterfriendly! That did the trick.
(Oh, and I like your shortening my name to “Clob.” :lol: )

You’re welcome!

–Sterf