• 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: 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.


  • Follow-Ups:
    • Re: Deleting files
      • From: Emmanuel <email@hidden>
  • Prev by Date: FW: Script for Post.Office
  • Next by Date: Re: Color Setting in Photoshop
  • Previous by thread: Re: Deleting files
  • Next by thread: Re: Deleting files
  • Index(es):
    • Date
    • Thread