Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

OS/X Tiger loses files/folders?

 
   Mac (Home) -> Apple Scripts RSS
Next:  MacSoup Scripting Help  
Author Message
larrysulky

External


Since: Mar 22, 2006
Posts: 7



(Msg. 1) Posted: Fri Jun 16, 2006 8:01 am
Post subject: OS/X Tiger loses files/folders?
Archived from groups: alt>comp>lang>applescript (more info?)

I have an AppleScript that I developed on OS/X Panther (10.3.9). It
traverses a folder structure and renames any folders or files that have
troublesome characters in their names, or whose names are too long.
(These folders and files have to be moved via FTP to various other
systems, including OS/9, Linux, WinNT, Win2000, and WinXP, so we need
lowest-common-denominator names.)

The script works beautifully on my system, happily traversing folders
of a gigabyte or more. On my colleagues' systems, which are OS/X Tiger
(10.4.6), it works great too, on smaller amounts of data. But when run
on a larger set, even a set that includes the smaller set that worked
great, it loses some files. The lost files are, in some cases, the same
files that were properly processed when they were part of a smaller
set. The pathnames are identical, but when these files are in amongst
too much data, they disappear rather than get renamed.

The loss is consistent; it's always the same files, and it's quite a
lot of them. It's looking like either a memory issue or that there is
something in the larger set of data that's causing otherwise-OK files
to be lost. If it's the latter problem, it isn't something "nearby",
like under the same parent or grandparent folder (we've checked), so I
could be in for a long track-down. Also, it's very mysterious that the
exact same data on my own system gets processed properly every time,
whether it's the larger data set or the smaller.

Does this ring any bells for anyone out there? Make any sense?

Thanks in advance --
Back to top
Login to vote
Simon Slavin

External


Since: Aug 24, 2005
Posts: 125



(Msg. 2) Posted: Mon Jun 19, 2006 11:11 pm
Post subject: Re: OS/X Tiger loses files/folders? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 16/06/2006, larrysulky.RemoveThis@gmail.com wrote in message
<1150470103.703914.236900.RemoveThis@g10g2000cwb.googlegroups.com>:

> The script works beautifully on my system, happily traversing folders
> of a gigabyte or more. On my colleagues' systems, which are OS/X Tiger
> (10.4.6), it works great too, on smaller amounts of data. But when run
> on a larger set, even a set that includes the smaller set that worked
> great, it loses some files. The lost files are, in some cases, the same
> files that were properly processed when they were part of a smaller
> set. The pathnames are identical, but when these files are in amongst
> too much data, they disappear rather than get renamed.
>
> The loss is consistent; it's always the same files, and it's quite a
> lot of them. It's looking like either a memory issue or that there is
> something in the larger set of data that's causing otherwise-OK files
> to be lost.

There is a strange bug with 10.4 where if there are lots of changes to
filenames too quickly one-after-another, the Finder loses touch with the
files and they apparently disappear (though they're actually still there,
as 'Terminal' will prove). I see this most frequently with decompression
programs like Stuffit Expander which create and rename large numbers of
files in a very short time.

One thing that might help your script is to put a pause in it immediately
after every rename. A simple 'delay 10' instruction should suffice. It
will, of course, make your script take longer to finish, but it might make
it work, and it should run nicely in the background while the user does
something else.

Simon.
--
http://www.hearsay.demon.co.uk
Back to top
Login to vote
John Rethorst

External


Since: Nov 28, 2005
Posts: 114



(Msg. 3) Posted: Mon Jun 19, 2006 11:11 pm
Post subject: Re: OS/X Tiger loses files/folders? [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived
Back to top
Login to vote
larrysulky

External


Since: Mar 22, 2006
Posts: 7



(Msg. 4) Posted: Tue Jun 20, 2006 2:28 pm
Post subject: Re: OS/X Tiger loses files/folders? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Simon Slavin wrote:
> On 16/06/2006, larrysulky.TakeThisOut@gmail.com wrote in message

> One thing that might help your script is to put a pause in it immediately
> after every rename. A simple 'delay 10' instruction should suffice. It
> will, of course, make your script take longer to finish, but it might make
> it work, and it should run nicely in the background while the user does
> something else.
>
> Simon.
> --
> http://www.hearsay.demon.co.uk

Thanks, Simon. 10 seconds, eh? Eep! I'm auto-renaming upwards of 20,000
files at a time.

Here's something I've just discovered. If all of the files that are
subject to renaming are visible in Finder (in tree view), then they
don't get lost.

Also, if Terminal can see the files, is there some way to compel Finder
to see them again? I'll be only to happy to write a shell script to
restore the files to visibility, if it's possible.

Thanks again --

---larry
Back to top
Login to vote
larrysulky

External


Since: Mar 22, 2006
Posts: 7



(Msg. 5) Posted: Tue Jun 20, 2006 2:34 pm
Post subject: Re: OS/X Tiger loses files/folders? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

larrysu... DeleteThis @gmail.com wrote:
> Simon Slavin wrote:
> > On 16/06/2006, larrysulky DeleteThis @gmail.com wrote in message
>
> > One thing that might help your script is to put a pause in it immediately
> > after every rename. A simple 'delay 10' instruction should suffice. It
> > will, of course, make your script take longer to finish, but it might make
> > it work, and it should run nicely in the background while the user does
> > something else.
> >
> > Simon.
> > --
> > http://www.hearsay.demon.co.uk

Problem worked around! When you said that the files were really still
there, it occurred to me to copy the whole folder where the problem
occurred to some other location, then copy it back. Voila! All the
files are there. Merely closing and opening Finder against the problem
folder isn't sufficient. It has to be a copy or move to reestablish
connection.

I hope that Apple is monitoring this newsgroup.

Thanks again, Simon, you provided the critical clue.

---larry
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Folder Actions and child folders - I've been playing around with Folder Actions (very cool!), wondering if it's possible to get a Folder Action to trigger when a *child folder* is changed. i.e. attach the action to ParentFolder, then trigger when a file is added to ChildFolder or..

Editing system files via scripts - I want to edit the printer.conf file for cups. I need to do it dynamically. where do i find example files on editing text files and changing to sudo mode? Regards Isak

folder actions - need to move files back to where they cam.. - When a file is dropped in a folder with a folder action attached the file is moved to the folder as usual. (Except in cases where the file must be copied due to permissions.) Is it possible for my script to move the files back to their "home" o...

scripting Quicktime to convert images to jpg - Here is a droplet that I am working on to have Quicktime translate still images generated by iMovie into JPG images that can be imported into iPhoto. on open (theList) tell application "Finder" repeat with x in theList if {"disk&quo...

Help with script, please - Here is the script: tell application "Mail" set foo to the selection set foo to item 1 of foo set address_ to address of item 1 of to recipient of foo if not (name of item 1 of to recipient of foo exists) then set AppleScript...
       Mac (Home) -> Apple Scripts All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact