Skip to content
TheChatArchiveThe Chat Archive
grok-3-preview-02-24· xAIHugging Face LMArena Human Preference 140K

Rewrite the prompt for a AI with details and clear instraction Can you create an…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro’s answer.
  1. User

    Rewrite the prompt for a AI with details and clear instraction

    Can you create an Illustrator script that selects the first grouped object, creates a new artboard, and places it on that, trimming it to the size of the object? Then, repeat this process for all other grouped objects. After creating a new artboard, delete the old artboard

  2. Assistant

    Here's a detailed and clear rewritten prompt for an AI to create an Adobe Illustrator script with your specified requirements:


    Prompt for AI:

    Write a script for Adobe Illustrator that automates the process of selecting grouped objects, creating new artboards, placing each group on its own artboard, trimming the artboard to the size of the group, and deleting the original artboard. The script must meet the following requirements:

    1. Grouped Object Selection:

      • Identify and select the first grouped object (group item) in the active document.
      • If no grouped objects exist, display an error message and exit the script gracefully.
    2. New Artboard Creation:

      • For each grouped object, create a new artboard in the document.
      • Position the new artboard in a logical location (e.g., to the right of the previous artboard or in a grid layout, if applicable).
    3. Placement and Trimming:

      • Move the selected grouped object to the newly created artboard.
      • Resize (trim) the new artboard to exactly match the dimensions of the grouped object, ensuring no extra space around the group.
      • Ensure the grouped object is centered on the new artboard.
    4. Repetition for All Groups:

      • Repeat the process for all remaining grouped objects in the document, creating a new artboard for each group and moving the group to its respective artboard.
    5. Original Artboard Deletion:

      • After all grouped objects have been processed and moved to new artboards, delete the original artboard(s) from the document.
      • Ensure no grouped objects are left on the original artboard before deletion.
    6. Script Requirements:

      • Use Adobe Illustrator’s scripting environment (JavaScript / ExtendScript).
      • Write clean, modular, and well-commented code.
      • Use clear and descriptive function and variable names.
      • Handle edge cases, such as:
        • Documents with no grouped objects.
        • Documents with locked or hidden groups.
        • Documents with no artboards.
      • Display appropriate error messages or alerts for edge cases.
    7. Additional Notes:

      • Ensure the script preserves the layer structure and properties of the grouped objects during the move.
      • Provide instructions on how to run the script within Adobe Illustrator.

    If you need a sample implementation or further clarification, feel free to ask!

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