• 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: CK subscriptions <email@hidden>
  • Date: Fri, 12 Nov 2004 12:58:35 -0600

Adding an "update" for the file solved the problem. I had to add a try-error block in case the file did not exist.

On 10-Nov-04, at 10:31 AM, Simon Forster wrote:

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



_______________________________________________ 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
References: 
 >"exists" fooled by "rm"? (From: Craig Knelsen <email@hidden>)
 >Re: "exists" fooled by "rm"? (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: computing 20! all the way
  • Next by Date: Re: Os 9 SOunds
  • Previous by thread: Re: "exists" fooled by "rm"?
  • Next by thread: Re: "exists" fooled by "rm"?
  • Index(es):
    • Date
    • Thread