Deep recommended:
2) Replace with:
open "Unix", 1, "rm -rf /Soft/Optimafiles/*"
close 1
----------------------------
Thank you Deep for suggesting a solution similar to what I've
previously recommended namely using AppleEvents.
Piet:
Here is an AppleScript for testing Deep's Unix-approach:
--------
set the_dir to choose folder with prompt "Select folder to be deleted"
my remove(the_dir)
-- delete a folder and its contents
on remove(the_path)
try
do shell script "rm -rf " & quoted form of (POSIX
path of the_path)
on error
beep
end try
end remove
--------
Just copy the above code to an empty Skripteditor-Window and start the script.
Furthermore and as recommended by already others you really should
consider using a folder "Optimafiles" in the user's temp-folder.
Best
--
Herbie
------------------------
<http://www.gluender.de>