Re: script to delete .html files from a folder
Re: script to delete .html files from a folder
- Subject: Re: script to delete .html files from a folder
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 05 Nov 2004 09:29:51 -0800
On 11/5/04 9:20 AM, "Courtney Schwartz" <email@hidden> wrote:
> Personally, I tend to keep my path variables as strings (so they're
> ready to do regex etc.), then coerce them as necessary, but I suppose
> it's just as easy to argue for the other way around... depends which
> operations on your path are more common to save you processing time...
Not only that. If you save the alias form as a property, then the user can
move the file around, rename it, and so on, and the script still finds the
file. (There is a liability though: if the file has been deleted, the
property declaration causes an error _even if_ you think you have prepared
for this case by a try/error block to get the alias in the script. The error
occurs as AppleScript tries to parse the script properties, before it ever
gets to the try block. I've never been able to figure a way around this
one.)
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden