Search the Community
Showing results for tags 'move'.
Found 1 result
I have successfully implemented SuperContainer on a few projects. I am now working on one where I'll actually use iterations. In doing so, I created little Image Nav buttons under the web viewer, to browse through the existing images. So if there are three images, it says, "Image 1 of 4". As such, I need to manage the "iterations" when a file gets deleted. Say I am on Image 2 of 4. When the user clicks delete, it deletes the image, and I am left with iterations 1, 3, and 4. For my nav to work, I need to renumber them. To do this, I loop through each and basically say: Set Variable [$iteration.new = $iteration.current] Set Variable [$iteration.old = $iteration.new + 1] SCMove ( $path & "/" & $iteration.old; $path & "/" & $iteration.new; "filename=" & filename.new) (note, filename.new is reconstructed with the new iteration number prior to those steps) So I successfully loop through and repeat this until I'm on the last iteration. Works great. They each get moved within the Files structure. Image 2 is deleted, Image 3 becomes Image 2; Image 4 becomes Image 3. However, they are NOT being moved and deleted properly in the Thumbnails structure. My web viewer must be using the thumbnails, as it shows the same one for images 2 and 3. However when I click on Image 3, it opens the correct one (different than what is being displayed in the web viewer). I opened the folders in Finder and could see that the folder structures do not match. Thumbnails shows Image 1 (correct), Image 2 (correct), Image 3 (incorrect - same as Image 2), and Image 4 (should now be Image 3). Any ideas?