tell application "Finder" repeat with i from 1 to count of Finder windows tell window i try update every item with necessity end try end tell end repeat end tell http://www.soderhavet.com/refresh/ Am 14.03.2008 um 03:00 schrieb MACSCRPT automatic digest system: > There is 1 message totalling 43 lines in this issue. > > Topics of the day: > > 1. Bug in "list folder" in Standard Additions > > ---------------------------------------------------------------------- > > Date: Thu, 13 Mar 2008 15:59:39 +1030 > From: Emmett Gray <[log in to unmask]> > Subject: Re: Bug in "list folder" in Standard Additions > > Update is lame, it won't work on a folder - i.e. i.e. tell > application "Finder" to update alias foo will not update the > contents of foo, only foo itself. Lame. That's why I had to get a > lists of the contents using ls. Touch does the job in one line. > > --Emmett > >> Walter Bushell <[log in to unmask]> wrote: >> IIRC update (the Finder command) does the job, also. >> >> On Mar 4, 2008, at 11:20 AM, Mark Lively wrote: >> >>> On Mar 4, 2008, at 10:56 AM, Emmett Gray wrote: >>> >>>> I've found a bug (10.4.11) which is probably still in Leopard >>>> since I looked at the Leopard bug fix technote and it's not >>>> mentioned. I've reported the bug to Apple. >>>> >>> Looks like it is fixed in leopard. Not to surprising since the old >>> system event osax was built on top of FSRefs which are deprecated >>> in Leopard. >>> >>>> If the target folder of the "list folder" command has a name >>>> longer than 32 characters you get a "bad filename" error. I can't >>>> use the Finder to get the info because the very reason I'm needing >>>> the command for is to force the lazy Finder to update the contents >>>> of the folder! >>>> >>> I use touch to update the folder. >>> >>> set aFolder to choose folder >>> do shell script "touch ""ed form of posix path of aFolder >>> >>> -Mark >>> Who likes touching folders. >>> >> > > ------------------------------ > > End of MACSCRPT Digest - 12 Mar 2008 to 13 Mar 2008 (#2008-27) > ************************************************************** >