At 9:08 am +0800 29/1/04, Peter N Lewis wrote:
Currently I'm using AppleScript to work on files and then send them out to different folders on different servers. But I'm running into problems where users don't know that their file is finished because the icon doesn't appear in their folder.
Generally they should appear if you "touch" the folder (ie, change the modification date of the folder to "now" (or one approach I've heard of is to change the modification date of the folder by one second)).
There is also an API call, FNNotify, which will do this, but only on the local machine.
The Finder 'reveal' event forces the file into visibility. I haven't another Mac on the network but it always used to be possible to send events to the Findder on any machine and I guess it still is.
set fU to "/tmp/filename" set _namef to fU as POSIX file open for access _namef with write permission set eof _namef to 0 write "'A" to _namef close access _namef set _filename to read _namef as Unicode text set _flower to (((path to desktop) as Unicode text) & (_filename)) open for access file _flower close access file _flower tell application "Finder" to reveal file _flower