Editing script label of every text frame with AppleScript
Hey, I'm trying to remove a hard return I have in some of my script labels on an InDesign document, but keep getting the error. Each page has multiple layers each with a text item that contains the label.

Here's the script:
tell application "Adobe InDesign CC 2018"
tell document 1
set label of (every text frame whose label is "Filename
") to "Filename"
end tell
end tell
Thanks!
