In article <[EMAIL PROTECTED]>,
Alex MacCaw <[EMAIL PROTECTED]> wrote:
> 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
> working?
With a current appscript, try this:
app('Finder').move(mactypes.Alias(os.path.abspath(path)), to=its.trash)
--
Ned Deily,
[EMAIL PROTECTED]
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig