Nipple Scripting

H owdy folks! The nipple cover August 15, 2017 was more or less generated with a custom script written in Applescript. If you’re an Adobe nut and haven’t played around with scripting you need to start. There are some powerful things that can be done in Applescript and Javascript which can automate the crap out of your daily workflow.

Below is a script that runs in Illustrator CS5 that selects every item on the active document, generates random CMYK values from user-defined ranges then randomly scales the objects to a user-defined range. It’s painfully simple and works on more than just nipples.




tell application “Adobe Illustrator”

set obj to selection as list

set allMyItems to every path item of current document

repeat with myItem in allMyItems

set rndCyan to random number from 1 to 5

set rndMagenta to random number from 20 to 55

set rndYellow to random number from 1 to 5

set rndBlack to random number from 10 to 20

set fill color of myItem to {cyan:rndCyan, magenta:rndMagenta, yellow:rndYellow, black:rndBlack}

set rndScale to random number from 90 to 120

scale myItem horizontal scale (rndScale) vertical scale (rndScale) about center

end repeat

end tell

No comments yet.

Leave a Reply

Law & Disorder: The Docket 9/19


Major key Last weekend a local couple was watching TV in their living room, having a relaxing evening, when suddenly […]

Law & Disorder: The Docket 9/12


Jesus take the wheel A local couple recently decided to visit their church on a particularly warm and muggy Sunday […]

Law & Disorder: The Docket 9/5


Flightless In a local park, police were dispatched to the crime scene. A woman called the police when she realized […]

The Docket: 8/29


Stolen in a nanosecond Just last week a woman visited her local sheriff’s office to place a tip on a […]

Law & Disorder: The Docket 8/22


Totally secure knot …not In a local home a garage door was broken into. This garage door was perfectly secured […]