Re: Checking on the existence of a file
Re: Checking on the existence of a file
- Subject: Re: Checking on the existence of a file
- From: Shane Stanley <email@hidden>
- Date: Fri, 02 Nov 2012 08:47:03 +1100
On 02/11/2012, at 8:06 AM, Christopher Nebel <email@hidden> wrote:
> If for some reason you feel icky using Finder
It's not so much an icky feeling as a sticky feeling -- Finder scripting seems to be getting slower, if anything. It's also unreliable.
> I don't like the alias trick much, because (a) it obscures the intent of the code, and (b) it relies on what is effectively an implementation detail. Basically, I consider it in bad taste.
Strike a blow for good taste: make the file class support the exists command.
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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