Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make 'rm' behave like the Finder trash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make 'rm' behave like the Finder trash
Authored by: krishna on May 13, '03 05:46:49PM

Re: converting unix pathnames to regular ones, I think something like

set thefile to get POSIX file "/Users/krishna/foo.txt"
set thefilename to path to thefile
tell application "finder"
delete thefilename
end tell

should do the trick, but I get all kinds of different weird errors (being just an applescript beginner).



[ Reply to This | # ]