Paul Didzerekis wrote:
>Here is a script I have been using for a couple years.
Thanks. The "deleteFile" does not work - I guess an OSAX is
missing for it (that's one big sucker about AS, and REALbasic,
too: the system can't tell you where the function originally
came from - although it could if they wanted).
Oh, and since I run this on an OS X box, I wonder if I might
even be able to use the OSAX under OS X? Perhaps you can suggest
an alternative way to delete the file that uses built-in
commands?
Oh, I figured it out myself. I changed "deleteFile filename"
into:
if name as string does not start with "." then
tell application "Finder"
delete file (filename as string)
end tell
end if
The extra if prevents the Finder from attempting to delete the
".DSStore"
I also removed the "activate" commands because it would bring
my Finder to front frequently while I may be working on the
server (via VNC)
Thomas
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[EMAIL PROTECTED]>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to <[EMAIL PROTECTED]>