gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
can you write me an apple script for indesign to create a new document and a new…
- User
can you write me an apple script for indesign to create a new document and a new rectangle on the page with fill non stroke none
- Assistant
Certainly! Here's an AppleScript to create a new document in Adobe InDesign and add a new rectangle on the page with a non-filled fill and no stroke:
tell application "Adobe InDesign" activate set newDocument to make new document tell newDocument set newPage to make new page tell newPage -- Set the size of the rectangle set rectangleWidth to 200 set rectangleHeight to 100 -- Set the position of the rectangle set rectangleX to 100 set rectangleY to 100 -- Create the rectangle shape set newRectangle to make new rectangle with properties ¬ {geometric bounds:{rectangleY, rectangleX, (rectangleY + rectangleHeight), (rectangleX + rectangleWidth)}, ¬ fill color:none, stroke color:none} end tell end tell end tellMake sure to save the script with a ".applescript" file extension. You can then run this script in the AppleScript Editor or by executing it in Terminal using the command
osascript myscript.applescript.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.