Yvan, Luther, Paul,
Thanks for the replies and the explanation.
It's the lack of "as alias list" on my Finder command that makes it so slow. I actually don't want a list of aliases, but rather a list of full paths as text items.
When I first put this library handler together (when I was an AS neophyte), a list of aliases is what was returned, so all of my scripts (which use this routine) are now ingrained to deal with this result. I guess its time to change. The speed (or lack thereof) is getting to me. :)
Paul,
Your explanation of inside vrs outside the tell block makes sense. It just seems to me that a reference to a file should be just that, a reference to a file. This, to me, is what makes AS so confusing to a user. A file is a file is a file. If you're referencing that file, why should it matter if the reference is Applescript's, or the Finder's or the System Event's. It's a fricking reference to a file.
Thanks all.
Jim Both System Events and the Finder can quietly coerce either alias or file references to their own type of file, which have a 'name' property. But they have to be the "right kind" of file, as coerced within their own tell block. A reference to a 'file' outside a tell block won't work inside a tell block that has its own application definition of 'file'.
|