Mac OS X 10.1 & server folder contents
Mac OS X 10.1 & server folder contents
- Subject: Mac OS X 10.1 & server folder contents
- From: What does not kill you only makes you stronger <email@hidden>
- Date: Mon, 29 Oct 2001 18:05:48 -0600
Mac OS X 10.1 Scenario:
The contents of a folder on a server is updated by another client machine.
Script runs to get a list of items in the folder, basic example follows:
set x to alias "Server:Folder:"
tell application "Finder"
open x --open a window showing the contents of x
update x with necessity--update the contents
set y to name of every item of (x as alias)--list name(s) of every item
of x
end tell
Has anyone else on the list experienced or tested this? Obviously the
windows popping up can get pretty annoying, but if you don't open them
first, the Finder seems very oblivious to the fact that the folder contents
have changed.
The following is what I would like to do (but does not currently work):
set x to alias "Server:Folder:"
tell application "Finder"
update x with necessity--no open windows, update the contents
set y to name of every item of (x as alias)--list name(s) of every item
of x, will not show current state of contents of x
end tell
Nate