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


  • Follow-Ups:
    • Re: Deleting files
      • From: Emmanuel <email@hidden>
    • Re: Deleting files
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: applescript-users digest, Vol 3 #2492 - 18 msgs
  • Next by Date: Re: Deleting files
  • Previous by thread: Re: mounting novell shares
  • Next by thread: Re: Deleting files
  • Index(es):
    • Date
    • Thread