• 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: 2 queries - file/creator type and do shell "rm"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >2 queries - file/creator type and do shell "rm" (From: DizzyPenguin <email@hidden>)

  • Prev by Date: Re: AS/FMP: a list of fewer than two records
  • Next by Date: Re: AS/FMP: a list of fewer than two records
  • Previous by thread: Re: 2 queries - file/creator type and do shell "rm"
  • Next by thread: editing HTML
  • Index(es):
    • Date
    • Thread