Hello all.
I have only just begun working on scripts and I have hit a wall.
How would I go about selecting and deleting empty layers in Illustrator?
I only found out how to do it in InDesign, as shown below:
tell application "Adobe InDesign CS4"
activate
tell active document
repeat with x from (count layers) to 1 by -1
get page items of layer x
if result is {} then
delete layer x
end if
end repeat
end tell
end tell