• 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
Re: "exists" fooled by "rm"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "exists" fooled by "rm"?


  • Subject: Re: "exists" fooled by "rm"?
  • From: Simon Forster <email@hidden>
  • Date: Wed, 10 Nov 2004 16:31:27 +0000


On 10 Nov 2004, at 15:57, Craig Knelsen wrote:

However, if I then remove the file from the temporary items folder using "rm" from a Terminal window and then re-run the script, itExists is true! Why?

Finders speed (or lack thereof) in updating its caches. See the dictionary for Finder, specifically "update":


update: Update the display of the specified object(s) to match their on-disk representation
update reference -- the item to update
[necessity boolean] -- only update if necessary (i.e. a finder window is open). default is false
[registering applications boolean] -- register applications. default is true


HTH

Simon Forster
_____________________________________________________
 LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
 Tel: +44 (0)70 9230 5244   Fax: +44 (0)70 9230 5247
_____________________________________________________

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: "exists" fooled by "rm"?
      • From: CK subscriptions <email@hidden>
References: 
 >"exists" fooled by "rm"? (From: Craig Knelsen <email@hidden>)

  • Prev by Date: "exists" fooled by "rm"?
  • Next by Date: Re: "exists" fooled by "rm"?
  • Previous by thread: "exists" fooled by "rm"?
  • Next by thread: Re: "exists" fooled by "rm"?
  • Index(es):
    • Date
    • Thread