<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm making a cross platform script that sends files to the trash (or recycle bin), but am having trouble with the applescript version:<div><br></div><div>Here's the applescript which I'm trying to generate:</div><div><br class="webkit-block-placeholder"></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">  tell application "Finder"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">    move path to the trash</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">  end tell</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">And the py-appscript version (which doesn't work):</div></div><div>
<div><br class="webkit-block-placeholder"></div><div>  app('Finder').move(os.path.abspath(path), to=k.trash)</div><div><br class="webkit-block-placeholder"></div><div>Can anyone give me any pointers on how to get the appscript version working?</div></div></body></html>