move file or folder to trash

With OS 9 or earlier I have been able to move items from a server to the trash when I was done with them

tell appliation "Finder
move thisItem to the trash
end tell

but in OSX I’ve been having some problems with it…I think it is because the files need to be deleted immediately rather than being stored in the trash.

Any thoughts on how I can get this to work?

Thanks in advance,
Dave

Can I assume that this can’t be done in OS X? :?

I don’t have the proper environment to test with but maybe it’s possible using shell commands via ‘do shell script’.

I’m not sure of what you are trying to do. If you are trying to delete a file that exists on another machine, you would have to tell that machines Finder to handle that task. Something like this…

tell application "Finder" of machine "eppc://12.12.12.12"
--your code goes here
end tell

The 12.12.12.12 is a made up IP number

I got this to work…they changed it to delete! :lol:

tell application "Finder"
delete  currentItem
end tell