• 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: Luther Fuller <email@hidden>
  • Date: Thu, 15 Nov 2012 14:54:14 -0600

On Nov 15, 2012, at 2:44 PM, Jim Brandt wrote:

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

That's why I insist on always having AppleScript give me a list of aliases. It avoids most of these problems.
If Finder errors with "needs a reference", for example in code such as
	item "somename" of folderAlias
I simply write,
	item "somename" of folder folderAlias
and the problem is usual fixed.
('folder folderAlias' is a reference to the folder, while 'folderAlias' may not be.)



 _______________________________________________
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

References: 
 >Re: file references (From: Jim Brandt <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: Scripting Word 2011
  • Index(es):
    • Date
    • Thread