On May 16, 2007, at 4:59 PM, Jim DeVona wrote:

How can I add a list of items to a collection with AppleScript? I can
add one item at a time, but for large sets of items this is a pokey
(although watching the item count next to the collection icon climb is
kind of interesting). The scripting dictionary implies that you can
add more than one object at once, but I can't seem to figure out the
syntax.

[...]

Any corrections or suggestions?

The add verb currently only accepts a single specifier as the direct parameter. You can add multiple items to a collection at once, but only by way of a single specifier that evaluates to multiple items.

add (every bookmark item whose name contains "foo") to folder collection "Foo"

I have logged a feature request to make this verb more flexible in the future (i.e. accept a list of specifiers). In the meantime, you'll have to add them one at a time.

Jim

--
------------------------------------------------------------------
This message is sent to you because you are subscribed to
 the mailing list <yojimbo-talk@barebones.com>.
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  <http://www.listsearch.com/yojimbotalk.lasso>
Have a feature request, or not sure if the software's working correctly? Please send mail to: <[EMAIL PROTECTED]>

Reply via email to