[Pythonmac-SIG] Sending files to the trash

Alex MacCaw maccman at gmail.com
Fri Mar 28 11:24:44 CET 2008

I'm making a cross platform script that sends files to the trash (or  
recycle bin), but am having trouble with the applescript version:

Here's the applescript which I'm trying to generate:

   tell application "Finder"
     move path to the trash
   end tell

And the py-appscript version (which doesn't work):

   app('Finder').move(os.path.abspath(path), to=k.trash)

Can anyone give me any pointers on how to get the appscript version  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20080328/fb33fd67/attachment.htm 

More information about the Pythonmac-SIG mailing list