• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Deleting files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Script for Post.Office
  • Next by Date: Re: Color Setting in Photoshop
  • Previous by thread: Re: Deleting files
  • Next by thread: Clearing Dates in Entourage
  • Index(es):
    • Date
    • Thread