Rewrite the prompt for a AI with details and clear instraction Prompt: Write a script…
- 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.
- Assistant
Certainly! Here's a detailed and clear version of your prompt for an AI, with explicit instructions and requirements:
Prompt for AI:
Write a script that adds page numbers to a document page which already contains a footer design. The script must meet the following requirements:
-
Page Number Addition:
- Add page numbers to the footer area without disrupting the existing footer design.
- Position the page number appropriately within the footer.
-
Customization Functionality:
- Include a function that allows customization of the page number’s font family, font size, and font color.
- The font style and color should be changeable dynamically (i.e., live update without restarting the script).
-
Page Numbering Control:
- Provide an option to specify the starting page number (e.g., start numbering from page 1, 5, or any other number).
- Ensure the page numbers increment correctly from the specified start.
-
Live Update Feature:
- Implement functionality to update the font style and color of the page numbers on the fly, reflecting changes immediately.
-
Code Quality:
- Write clean, well-documented code.
- Use clear function and variable names.
- Include comments explaining key parts of the script.
-
Environment:
- Specify the programming language and environment (e.g., Python with reportlab, JavaScript for web PDF viewer, etc.).
- If applicable, mention any libraries or dependencies required.
If you want, I can also provide an example implementation in a specific language or environment. Just let me know!
-
- 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.
- Assistant
Certainly! Here's a detailed and clear rewritten prompt tailored for an AI to create an Adobe Illustrator script with your specified features:
Prompt for AI:
Write a script for Adobe Illustrator that automates adding page numbers to artboards containing a footer design. The script must include the following features and functionality:
-
Page Number Addition:
- Automatically add page numbers to the footer area of each artboard.
- Ensure the page number is positioned consistently within the footer without overlapping or disrupting existing footer elements.
-
Customization Function:
- Provide a function or interface to customize the page number’s:
- Font family (e.g., Arial, Times New Roman, etc.)
- Font size
- Font color
- Allow these font properties to be changed dynamically (live update) so that changes are immediately reflected on all page numbers.
- Provide a function or interface to customize the page number’s:
-
Starting Page Number:
- Include an option to specify the starting page number (e.g., start numbering from 1, 5, or any other integer).
- Page numbers should increment sequentially from the specified start number across all artboards.
-
Live Update Capability:
- Implement functionality to update the font style and color of all page numbers on the fly, without needing to rerun the entire script or manually reapply changes.
-
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 artboards without footers or empty documents gracefully.
-
Additional Notes:
- Assume the footer design is already present on each artboard.
- The script should not remove or alter existing footer elements except to add the page number.
- Provide instructions on how to run the script within Adobe Illustrator.
If you want, I can also provide a sample script implementation or further guidance on how to integrate this into your Illustrator workflow. Just ask!
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.