Re: "exists" fooled by "rm"?
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