Accessing Inventory items
You can access all inventory items in your GarageSale library through the allInventoryItems
variable.
function run() {
consoleLog("your library contains " + allInventoryItems.length + " inventory items);
}
Accessing selected inventory items
You can access the currently selected inventory items in GarageSale’s outline view through the selectedInventoryItems
variable.
function run() {
for (item of selectedInventoryItems) {
consoleLog(item.title);
}
}
<< Image JavaScript properties | Inventory Item properties >> |