• 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: script to delete .html files from a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: script to delete .html files from a folder (From: Courtney Schwartz <email@hidden>)

  • Prev by Date: Re: Somewhat OT
  • Next by Date: Re: Somewhat OT
  • Previous by thread: Re: script to delete .html files from a folder
  • Next by thread: Re: script to delete .html files from a folder
  • Index(es):
    • Date
    • Thread