Re: 2 queries - file/creator type and do shell "rm"
Re: 2 queries - file/creator type and do shell "rm"
- Subject: Re: 2 queries - file/creator type and do shell "rm"
- From: steve harley <email@hidden>
- Date: Fri, 27 Feb 2004 16:33:03 -0700
on 26 Feb 2004, at 1:26 PM, DizzyPenguin wrote:
Can I assume that the following handler will work whether the user is
admin or guest?
on delete_file(the_file)
do shell script "rm " & (quoted form of POSIX path of the_file)
end delete_file
certainly it will fail if the user running the script doesn't have
adequate permission to remove the file.. possibly it will fail if the
filename has some characters that the shell can't handle (don't recall
whether that has been remedied -- it used to be a problem).. also might
be a little safer to specify "/bin/rm "
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.