View Single Post
I'm trying to modify the Snooze script to snooze unselected items rather than those that are selected. I'm new to Applescript, though, so I'm not sure the best way to proceed. Clearly the following line obtains the selected items:

set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder)

1. What are the possible classes of value attributes? What is the "item" class?
2. Assuming there is no object for unselected items, I'm guessing I would have to get the full list of items in the view and then remove the selected ones? Is there an easy way in applescript to find the relative complement of the selected items with respect to the total without two nested for loops?