-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At 3:11 PM +0200 6/12/98, Laurent Bardi wrote: } Hi, me again } } for a script that is in shutdown folder, i want to destroy the } desktop-database (the 2 files "Desktop DB" and "Desktop DF" ) } in order to reconstruct them at every boot. } } Is there a way to do that (FspDelete doesn t work and a call to AS to } move those 2 files in the trash doesn t work anymore...) To remove a file in Perl, use unlink(). But there's a chance this may fail if the file is open by something else (a real possibility with the Desktop files). I've never experimented to find out whether you can unlink() an open file in MacOS. You can move them to the Trash in Perl with rename(). The Trash is an invisible folder in the top level of whatever drive the file is on. } } Many thanks in advance } } } -- } } Laurent BARDI: Ingenieur Systemes & Reseaux } Centre National de la Recherche Scientifique } INSTITUT de PHARMACOLOGIE et de BIOLOGIE STRUCTURALE } Tel : 05-61-17-54-39 http://www.ipbs.fr/ (internal) } Fax : 05-61-17-59-94 lolo@ipbs.fr } CNRS-IPBS 205 Route de Narbonne 31400 TOULOUSE FRANCE } } There is worse than to have not succeded : Not to have tried ! - ----- Paul J. Schinder schinder@pobox.com -----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv iQA/AwUBNYE4s1ZaVc52j0XhEQKqSQCdH9mlaCuIg0IFh81e4W848hn91TYAoMtX dwUJiLNv+OQvO7QC72NnKUFr =knty -----END PGP SIGNATURE----- ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch