Deleting files
Deleting files
- Subject: Deleting files
- From: Bernard Azancot <email@hidden>
- Date: Thu, 4 Mar 2004 20:22:54 +0100
Just a newbie surprise.
I have tried an elementary script to delete temp files.
It goes like this:
---
tell application "Finder"
try
delete file "tempA" of desktop
delete file "tempB" of desktop
delete file "tempC" of desktop
end try
end tell
---
-->
tempA is deleted
tempB & tempC are not
Now...
---
tell application "Finder"
try
--delete file "tempA" of desktop
delete file "tempB" of desktop
delete file "tempC" of desktop
end try
end tell
---
-->
tempB is deleted
tempC is not
Now...
---
tell application "Finder"
try
--delete file "tempA" of desktop
--delete file "tempB" of desktop
delete file "tempC" of desktop
end try
end tell
---
-->
tempC is deleted
Have I missed something ?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.