[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] 2 simple queries



Charlie Schofield <charlies@CTN.Argus.CO.ZA> writes:
}Hi, here are 2 simple queries:
}
}1.  How can I move items to the trash and delete them?
}I have tried using the following and it doesn't work:

Which do you want to do, move them to the Trash, or delete them?

}
}Mac::Files::FSpCatMove("file", "HardDisk:Desktop Folder:Trash");

rename("file","HardDisk:Trash:file");

Of course, HardDisk better be the same disk that the file is located on.

To simply get rid of a file:

unlink("file");


}
}Any help would be much appreciated,
}thanks
}Charlie
}
}

---
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693, Greenbelt, MD 20771
schinder@pjstoaster.pg.md.us



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch