Re: file references
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