Re: Is Finder "update" command broken in OSX?
Re: Is Finder "update" command broken in OSX?
- Subject: Re: Is Finder "update" command broken in OSX?
- From: Cornwall <email@hidden>
- Date: Sat, 27 Apr 2002 20:56:05 -0700
On Saturday, April 27, 2002, at 08:18 PM, bill wrote:
Corny,
Try to update the parent folder of the file that you want to open, in
your
script, it9s the folder "HD:Users:me:Folding1:work:".
That's what I did down in the "on error" block. It didn't work.
So, try it in this way:
tell application "Finder"
update alias "HD:Users:me:Folding1:work:"
set fil1 to first file of folder "HD:Users:me:Folding1:work:" whose
name contains "logfile_"
Open fil1
end tell
Would that be any different if run earlier, rather than later in the "on
error" block.
Secondly, are you sure these log files can be opened with application
3TextEdit2? Or, let the Finder to decide which application to use,
otherwise, some unexpected behaviours.
If I open the folder and close it again, everything in the script works
including TextEdit's part.
Thirdly, there is an example script 3Build web page2 from Apple, it9s
in the
folder 3Image Capture scripting2, can9t tell you the exact location
now, I
moved it long time ago, so try to search it.
In this long script, the Finder update folder very often, have a look.
Finally, if every civilized method fail, quit the Finder or kill the
process
before you want to open the log file, a brutal way to let Finder
updates.
Fortunately, a couple of lines to open and close the folder is less
brutal than that, but disconcerting with windows popping open and shut.
Thanks
Corny
_______________________________________________
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.