I have a core aspect of my script in good shape, and that has no effect on what else I need it to do.
I need to have InDesign save a copy of the file and I can’t get anywhere on it. I would love to have specific examples of the syntax in application dictionaries!
tell application "Finder"
set ThisPlace to (choose folder with prompt "Where do you want to save your bingo cards?")
set BatchRound to "1"
end tell
tell application "Adobe InDesign 2025"
set TheName to the name of document 1
my CullName(TheName) --this gets rid of the " Template.indd" part of the file name
set ThisDoc to result
save a copy of document 1 to (ThisPlace as string) & (ThisDoc as string) & "_" & (BatchRound as string) & ".indd"
end tell
on CullName(TheName)
set thisName to (characters 1 through ((offset of " Template.indd" in TheName) - 1) of TheName) as string
return thisName
end CullName
I know it isn’t working, because I get the error saying: Adobe InDesign 2025 got an error: Cannot save a copy of “Bingo Card Template.InDesign”.
Error 3596
Thanks for any help!