User Tag List

Results 1 to 3 of 3

Thread: Sequential filenaming with the file object

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sequential filenaming with the file object

    I'm trying to find a way to test for the number of the last file recorded, add 1, then save a new file.

    I'm sure there must be a way to make the file object do it but I can't quite work out the syntax. Any thoughts?

    Thanks guys.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    1,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sequential filenaming with the file object

    If you look at Help, Contents, Objects, Inventory, Special Object, Expressions - you'll find lots of useful functions for getting the first or last n characters from a string, and for converting these from string to numeric. [smile]

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sequential filenaming with the file object

    Thanks Sarah.

    I've ended up with
    1)Each time the file is created, a counter has 1 added to it
    2)c:\folder\filename.jpg exists
    + run once when loops
    THEN rename "c:\folder\filename.jpg" as "c:\folder\filename"+Str$(value( "Filename sequential counter" ))+".jpg"

    It works, its a bit clunky though, so I'm going to try your advice next!

    Thanks

Similar Threads

  1. Create folder with File object on Program File
    By Vantales in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th April 2013, 11:13 AM
  2. File Object - Mass/Mulitple File Rename
    By Yelnek in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th January 2013, 09:44 PM
  3. File size problem with regular file object??
    By TrojanWolf in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th April 2010, 10:39 PM
  4. File object - file selector saving issues
    By Gary_Molton in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2006, 08:25 PM
  5. File selector styles? (file object)
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th October 2006, 09:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •