Re: Panther bug: 'missing value' for modification date??
Re: Panther bug: 'missing value' for modification date??
- Subject: Re: Panther bug: 'missing value' for modification date??
- From: Christopher Nebel <email@hidden>
- Date: Thu, 19 Feb 2004 11:54:46 -0800
On Feb 19, 2004, at 11:13 AM, Emmanuel wrote:
At 9:31 AM -0800 19/02/04, Christopher Nebel wrote:
On Feb 19, 2004, at 6:00 AM, Harald E Brandt wrote:
On Panther, as opposed to Jaguar, telling Finder to get the
modification date of a file on a mounted volume (belonging to
another computer) yields 'missing value' on first invocation, but
gets the date later on second invocation!?
This is a known bug in the Finder. The problem is that the
underlying file-information calls the Finder is using are completely
asynchronous in Panther
Harald says that "update" does not work either. Are you saying that
the underlying calls for "update" are asynchronous as well? That would
imply that there is no deterministic difference between calling
"update" and not calling it, wouldn't it?
In this case, no, there's no difference. However, you seem to
misunderstand what "update" actually does. "Update" informs the Finder
that a particular disk item has changed behind its back, and that it
should update its view. For example, say you've downloaded a file to
the desktop using curl(1); the Finder won't show it until somebody
calls "update". (Clicking on the desktop implicitly does an update.)
In order to show the updated item, the Finder is going to ask for
various file properties, and those requests do indeed happen
asynchronously. However, until you call "update", *it's not going to
ask at all*, so "update" still serves a useful purpose, just not one
that's useful here. Harald's script has already made a request, but
the server hasn't coughed up an answer yet. Calling "update" will send
more requests, but that's not going to make the first one come in any
sooner.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.