Deleting files
Deleting files
- Subject: Deleting files
- From: Bernard Azancot <email@hidden>
- Date: Sun, 7 Mar 2004 09:14:10 +0100
Thanks everybody.
Your answers were very helpful.
Now everything works fine... BUT I would like to understand 2 points:
1- What is the exact result of the "update desktop " command ? In what
case should I use it ?
2- In the "Deleting files" script, if I write:
=-=-=-= Script 1/2
try
with timeout of 200 seconds
tell application "Finder"
Do this...
Do that..
Etc. Etc.
end tell
end timeout
end try
tell application "Finder"
if exists file "A" of desktop then delete file "A" of desktop
if exists file "B" of desktop then delete file "B" of desktop
if exists file "C" of desktop then delete file "C" of desktop
end tell
=-=-=-=
--> Deletion is performed.
=-=-=-= Script 2/2
try
with timeout of 200 seconds
tell application "Finder"
Do this...
Do that..
Etc.
if exists file "A" of desktop then delete file "A" of desktop
if exists file "B" of desktop then delete file "B" of desktop
if exists file "C" of desktop then delete file "C" of desktop
end tell
end timeout
end try
=-=-=-=
--> Deletion is not performed.
Is there an explanation of this odd (to me at least) behaviour ?
Thanks again.
BA
_______________________________________________
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.