RE: Odd Finder Behavior
RE: Odd Finder Behavior
- Subject: RE: Odd Finder Behavior
- From: "Stockly, Ed" <email@hidden>
- Date: Fri, 1 Dec 2006 16:29:17 -0800
Following up on this problem from a couple weeks ago. Before I file a bug report I'm wondering if anyone else has seen similar behavior or can let me know what's happening.
Here it is in a nutshell:
I have a script running on OS X server. It's looking for, then downloading and deleting files from a specific directory on an SMB server. New files are being uploaded to the directory all the time.
Once the script runs and finds files, downloads and deletes them, it no longer sees new files dropped into the directory. If a user opens the directory's window on the mac running the script, the user cannot see the new files. If a user opens the same directory's window on another mac that has the volume mounted, the files are visible on the other mac, but still not visible on the mac running the script.
On the mac where the script is running, if the user creates a new folder inside the directory, all the files become visible to the user and the script. (In fact, the work around in the script is to tell the finder to make a new folder and then delete it.)
This only occurs via AppleScript. If the files are copied and moved to the trash by a user, there is no problem.
Telling the finder to activate doesn't help; opening and/or closing the window doesn't help; using finder's "Udate" command has no effect; switching from Jon's commands to the finder for downloading and deleting the files seems to delay the behavior, but that may simply be that Jons commands is so much faster it's more likely to finish before new files appear.
Has anyone else noticed similar behavior? This is 100% reproducible on several SMB mounts and various networking paths.
Ed
> ----------
> From: Stockly, Ed
> Sent: Thursday, November 16, 2006 12:53 PM
> To: 'email@hidden'
> Subject: Odd Finder Behavior
>
> Hi,
>
> We've been having a rather strange behavior that may be related to AppleScript and Jons Commands.
>
> We have a script that's running on OS X server. When it's triggered it looks inside a folder on a mounted SMB volume. Using Jons Commands it copies files from that server to a local drive and,again using Jons Commands, deletes the copied files.
>
> All this works just fine. The problem is that if another file is copied to the server and the user opens the finder window, the new file does not appear. Sometimes opening and closing the window will make the file appear. Sometimes the file appears for a split-second, the disappears.
>
> This behavior only occurs after the script has run.
>
> I've tried the Finder's "Update" command but that seems to have no effect. Next I'll try opening and closing the folder from within the script and see if that helps.
>
> Has anyone seen anything similar? Any suggestions?
>
> Ed
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden