Indesign Style Groups – pulling my hair out!

Okay … after about two hours of trying to get a simple ‘apply paragraph’ style to work, I found a post that says grouped styles can’t be applied in the same way (http://macscripter.net/viewtopic.php?pid=110815).

However, I don’t see how I can get my style group ID. Here’s the base code …

		tell page 1
			set myFrame to make text frame with properties {geometric bounds:{"186mm", "10mm", "191.5mm", "17.17mm"}, label:"leftFolioFrame"}
			tell myFrame
				set contents of insertion point 1 to auto page number
			end tell
		end tell

The style I wish to apply is named ‘Folios Left’ and is in a group named ‘Folios’. There’s one other group (Captions) “ but I can’t see how the heck I reference the group or style ID?

Heeeeeeelllpp!

The paragraph style is contained by the group, so it’s :


tell application "Adobe InDesign CS4"
	tell active document
		tell page 1
			set myFrame to make text frame with properties {geometric bounds:{"186mm", "10mm", "191.5mm", "17.17mm"}, label:"leftFolioFrame"}
			tell myFrame
				set contents of insertion point 1 to auto page number
			end tell
		end tell
		set applied paragraph style of parent story of myFrame to paragraph style "Folios Left" of paragraph style group "Folios"
	end tell
end tell

Is that what you’re looking for?

d.