Hi.
I’ve had no trouble running my script on a single IND file, but I would like to run it on my entire book at once- and am having no luck with syntax.
I have:
tell application “Adobe InDesign CS4”
activate
tell book “Book 1.indb”
tell document 1
try
set grouped_items to every group
repeat with ungroup_repeater from 1 to count grouped_items
ungroup grouped_items
end repeat
on error
–no grouped items found
end try
set Text_Layer to make layer
try
set name of Text_Layer to "live copy"
on error
--name already exists
end try
try
set text_frames to every text frame
repeat with textframe_repeater from 1 to count text_frames
move text_frames to layer "live copy"
end repeat
end try
try
set text_paths to every text path
repeat with text_path_repeater from 1 to count text_paths
move text_paths to layer "live copy"
end repeat
end try
end tell
end tell
end tell
Which gives me a “can’t make class layer” error.
I’ve been trying to figure it since lunchtime. Seems like I’m missing something very simple…
Thanks in advance for any assistance.