Deleting files
Deleting files
- Subject: Deleting files
- From: Bernard Azancot <email@hidden>
- Date: Mon, 8 Mar 2004 09:04:15 +0100
Sorry for my incomplete feeding back.
I did not think my little newbie interrogations would be that
interesting for high level scripters.
Emmanuel seems really mad at me. May be the F.I.T.C.P.S (french income
tax calculation period syndrom). ;-))
Serious desease. I have caught it too. :-D
Anyway I quite understand his reaction. Shame on me.
More details:
- MacOS 10.3.2
- SE 2.0 (v43)
- AS 1.9.3
Testing (1st simple script):
The script worked fined with "update desktop" and "delay 1" as well.
Testing (2nd script and 2nd question):
I have tried to "delay" or "update finder" in the Script 2/2 and it did
not changed anything. Deletion is not performed at all, on any of the 3
files.
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 on any of the 3 files.
Is there an explanation of this odd (to me at least) behaviour ?
Yours.
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.