• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: file references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file references


  • Subject: Re: file references
  • From: Jim Brandt <email@hidden>
  • Date: Thu, 15 Nov 2012 14:44:21 -0600

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

On 15-Nov-2012, at 2:00 PM, email@hidden wrote:

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'.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: file references
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: Scripting Word 2011
  • Next by Date: Re: Scripting Word 2011
  • Previous by thread: Re: file references
  • Next by thread: Re: file references
  • Index(es):
    • Date
    • Thread