Skip to content
The Chat Archive
claude-opus-4-20250514· Anthropic LMArena Human Preference 140K

Rewrite the prompt for a AI with details and clear instraction Prompt: Write a script…

  1. User

    Rewrite the prompt for a AI with details and clear instraction

    Prompt: Write a script that can add a page number to a page with a footer design, and The Script should have a function to customize the page number font and color. The script also should have the Factionally where to start page number, and live change in font style and color.

  2. Assistant

    Here's a rewritten prompt with detailed and clear instructions:


    AI Task: Create a Page Numbering Script with Customizable Footer Design

    Objective: Develop a complete script that automatically adds page numbers to documents within a styled footer, with real-time customization capabilities.

    Core Requirements:

    1. Page Number Insertion

      • Create a function that adds page numbers to each page of a document
      • Numbers should be placed within a footer section
      • Support common document formats (specify which: PDF, HTML, Word, etc.)
    2. Footer Design Integration

      • Implement a footer container/section for the page numbers
      • Ensure the footer design is consistent across all pages
      • Footer should not overlap with main content
    3. Customization Features

      • Font Options:

        • Allow users to select font family (e.g., Arial, Times New Roman, Helvetica)
        • Provide font size adjustment (range: 8pt to 24pt)
        • Include font weight options (normal, bold, italic)
      • Color Options:

        • Implement color picker or predefined color palette
        • Support hex codes, RGB values, or color names
        • Apply color changes to page numbers only
    4. Starting Page Configuration

      • Add option to specify which page to begin numbering (e.g., start from page 3)
      • Support different numbering formats (1, 2, 3... or i, ii, iii... or a, b, c...)
      • Option to skip certain pages (like cover pages)
    5. Live Preview Functionality

      • Changes to font style must update in real-time without page refresh
      • Color modifications should be instantly visible
      • Provide a preview pane showing how the footer will appear

    Technical Specifications:

    • Specify the programming language to use (JavaScript, Python, etc.)
    • Include error handling for invalid inputs
    • Make the script modular with separate functions for each feature
    • Add comments explaining each major section of code

    Deliverables:

    1. Complete, working script file(s)
    2. Basic user interface for customization options (if applicable)
    3. Usage instructions or documentation
    4. Example implementation showing the script in action

    Additional Considerations:

    • Ensure the script is efficient and doesn't slow down document rendering
    • Make the solution cross-browser compatible (if web-based)
    • Include default settings that work well out-of-the-box
  3. User

    Rewrite the prompt for a AI with details and clear instraction

    Prompt: Write a script for Adobe Illustrator that can add a page number to a page with a footer design. The script should have a function to customize the page number, font, and color. The script also should have the Factionally where to start page number, and live change in font style and color.

  4. Assistant

    Here's a rewritten prompt with detailed and clear instructions:


    AI Task: Create an Adobe Illustrator Script for Automated Page Numbering with Customizable Footer

    Objective: Develop a JavaScript (.jsx) script for Adobe Illustrator that automatically adds page numbers to multiple artboards with a customizable footer design and real-time preview capabilities.

    Core Requirements:

    1. Script Foundation

      • Language: ExtendScript (JavaScript for Adobe)
      • Compatible with Adobe Illustrator CC 2020 and later
      • File format: .jsx
      • Include proper error handling and user feedback
    2. Footer Creation and Page Numbering

      • Automatically detect all artboards in the active document
      • Create a consistent footer area on each artboard (specify height: e.g., 0.5 inches from bottom)
      • Add page numbers centered or aligned (left/center/right) within the footer
      • Ensure footer doesn't overlap with existing artwork
    3. Customization Panel/Dialog Create a ScriptUI dialog window with the following controls:

      Font Customization:

      • Dropdown menu for font family selection (populate with system fonts)
      • Numeric input for font size (range: 6pt to 72pt)
      • Checkboxes for: Bold, Italic, Underline
      • Text alignment options (left, center, right)

      Color Customization:

      • Color picker or RGB/CMYK input fields
      • Preview swatch showing selected color
      • Option to match existing document swatches

      Numbering Options:

      • Starting page number input field (default: 1)
      • Numbering format dropdown:
        • Arabic numerals (1, 2, 3...)
        • Roman numerals (I, II, III...)
        • Letters (A, B, C...)
      • Prefix/Suffix text fields (e.g., "Page " before number)
      • Option to skip specific artboards
    4. Live Preview Feature

      • "Preview" button that temporarily applies settings
      • Real-time updates when user changes font or color
      • "Apply" button to finalize changes
      • "Cancel" button to revert all changes
    5. Advanced Features

      • Footer Background:

        • Option to add background color/shape to footer
        • Adjustable footer height
        • Border/line options
      • Position Control:

        • X and Y offset adjustments
        • Margin settings from artboard edges
      • Batch Processing:

        • Apply to all open documents option
        • Save settings as presets

    Technical Specifications:

    // Required script structure:
    // 1. Main function declaration
    // 2. UI creation function
    // 3. Footer creation function
    // 4. Page number formatting function
    // 5. Preview update function
    // 6. Apply changes function
    // 7. Error handling wrapper
    

    Code Requirements:

    • Use try-catch blocks for error handling
    • Include validation for user inputs
    • Add comments explaining each function
    • Implement undo functionality (single undo step for all changes)
    • Check for locked layers and provide appropriate warnings

    User Interface Elements:

    • Window size: approximately 400x500 pixels
    • Organized in logical groups (Font Settings, Color Settings, Numbering Options)
    • Include helpful tooltips for each option
    • Progress bar for processing multiple artboards

    Deliverables:

    1. Complete .jsx script file
    2. Installation instructions for Adobe Illustrator
    3. User guide with screenshots
    4. Sample .ai file demonstrating the script's output
    5. Troubleshooting section for common issues

    Performance Considerations:

    • Optimize for documents with 100+ artboards
    • Minimal memory usage
    • Non-blocking UI during processing
    • Option to process in batches for very large documents

    Additional Features (Optional):

    • Export settings to JSON for sharing
    • Keyboard shortcuts for common actions
    • Multi-language support for UI
    • Integration with Illustrator's native page tools

    Testing Requirements:

    • Test with various artboard sizes
    • Verify compatibility with different color modes (RGB/CMYK)
    • Ensure script works with rotated artboards
    • Test with documents containing existing page numbers

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