Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
How to get AEResolve to handle lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get AEResolve to handle lists



AEResolve isn't happy when you call it with an object specifier
that is actually a list (typeAEList); it returns errAENotAnObjSpec.
This is somewhat surprising, since it's so easy to write scripts
that do this:

tell application "Finder"
open { file "My Disk:foo.txt", file "My Disk:bar.txt"}
end tell

PowerPlant's Object Model code doesn't seem to support this
very well (for the 'open' case it falls back on a generic
handler), and I've not seen other code that handles this.

So what's the recommended way? Should I wrap AEResolve in code
that check for the object being a list, and calls AEResolve in
each item in the list, building the resulting token as a list
of resolved items? Or is there a better way?

Simon




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.