Paste not found.
Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on February 10, 2022 at 05:08 PM

example (JavaScript)

var doc = app.activeDocument;

// 1. Obtain a reference to the '[None]' Object Style.
var noneObjectStyle = doc.objectStyles.itemByName('[None]');

// 2. Draw a rectangle
var rectangle = doc.pages[0].rectangles.add({
  geometricBounds: [0, 0, 50, 50],
  appliedObjectStyle: noneObjectStyle // <-- 3. Set its Object Style to [None].
  // ...
});