Hello Grafflers,
Executing this line of my script:
get every graphic of layer 1 of canvas of front_doc
gives:
{{graphic id 320 of canvas id 1 of document "webLayout2" of application "OmniGraffle Professional 5"}}
when I know this graphic is in layer 2. It's the red graphic in the attached png, if that shows up. The png shows that layer 2 contains only 1 graphic which is the one I'm after. Layer 1 contains all the other un-coloured shapes. Why is Applescript saying the red shape is in layer 1? I have a workaround (swap the layers around) but I'm puzzled by this behaviour. Any thoughts anyone?
Cheers,
Captain Fatty
Executing this line of my script:
get every graphic of layer 1 of canvas of front_doc
gives:
{{graphic id 320 of canvas id 1 of document "webLayout2" of application "OmniGraffle Professional 5"}}
when I know this graphic is in layer 2. It's the red graphic in the attached png, if that shows up. The png shows that layer 2 contains only 1 graphic which is the one I'm after. Layer 1 contains all the other un-coloured shapes. Why is Applescript saying the red shape is in layer 1? I have a workaround (swap the layers around) but I'm puzzled by this behaviour. Any thoughts anyone?
Cheers,
Captain Fatty