In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
wrote:

> I was hoping there would be another way, but 'folder
> actions' might be the only solution.  I'll take a peek at
> the code in some of the 'Folder Action' sample scripts that
> come with OS X and see if I can put together something.

You can use update as originally suggested, if you have username/password 
for each user, e.g.:

   tell app "Finder" of machine "eppc://SomeUser:[EMAIL PROTECTED]"
      update folder "Machintosh HD:Users:SomeUser:folder:"
   end tell

etc.

Or, in Perl:

   use Mac::Glue;
   my $finder = new Mac::Glue 'Finder', eppc => Finder => 'host.local',
      0, 0, "SomeUser", "pass";
   $finder->obj(folder => 'Machintosh HD:Users:SomeUser:folder:')->update;

Note: this syntax will change slightly for Mac OS X.  I have code to 
automatically change file paths from Unix to Mac OS and back, but I 
neglected to apply it to folders too!  Next version of Mac::Glue will allow:

   $finder->obj(folder => '/Users/SomeUser/folder')->update;

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to