How do I identify and change a property in a record within a record?

Hi,

If I use the Record function in Script Editor, I can make a certain change in MultiAd Creator 7 and yield the following command:

set properties of document 1 to {page options:{registration marks:false, crop marks:false, color bars:false, document notes:false, plate information:true, show ornaments onscreen:false, print as spreads:false, bleed edge items:false, print pasteboard items:false, show outlines:true, align page to paper:false, page position:{horizontal position:at center, vertical position:at center}}}

My goal is to create a simple toggle script for the “bleed edge items” property – if it’s false, I want to change it to true, and vice versa, without changing any other properties. I’ve seen in AppleScript documentation how to change a property in a record, but this looks like a record within a record, so I’m not sure what to do.

Any ideas?

I don’t have MultiAd Creator, so I can’t use those terms. Hopefully, this will help you understand.

set documentProperties to {page_options:{bleed_edge_items:false, something_else:"whatever", position:{horizontal:"blah", vertical:"blah"}}}
set (bleed_edge_items of page_options of documentProperties) to not (bleed_edge_items of page_options of documentProperties)

Not will switch true to false, or vice versa.

Thanks Bruce!!!

Your idea wasn’t quite what I wanted, but it pointed me in the right direction and within minutes I had exactly what I needed!

Couldn’t have done it without you!