Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

im trying to write an apple script to change the colour of boxes by script labels but…

  1. User

    im trying to write an apple script to change the colour of boxes by script labels but its not working: set color of all page items of page 1 of active document whose label is "Box 1" to black

  2. Assistant

    The AppleScript code you have provided seems to have a minor syntax error. Please try the revised version below:

    tell application "Adobe InDesign"
        tell active document
            tell page 1
                set color of every page item whose label is "Box 1" to "Black"
            end tell
        end tell
    end tell
    

    Make sure to replace "Adobe InDesign" with the correct application name if you are using a different software. Also, double-check that the label "Box 1" exists on the page items you are targeting for color change.

    Note: The color name should be specified exactly as it appears in InDesign. In this example, it is given as "Black."

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.