[shell]-creating a filename in Finder


    Oct 03 2008 | 2:54 am
    Hi everyone
    I've been searching the web a reasonable amount trying to find basic applescript commands avaible for each Apps. How to execute them etc.
    Basically what I want to do is simply change the filename of an new created file by another software.
    More precisely, my friend is creating live movie captures with "Isadora" It gives him a quasi-random file name each time.
    So I thought I would use the shell object to create a specific file name everytime the end of his capture it is triggered.This would be done via OSC.
    Any help on this would be great.
    phil

    • Oct 03 2008 | 6:49 am
      On 3 oct. 08, at 04:54, phil wrote:
      > Basically what I want to do is simply change the filename of an new > created file by another software.
      If you want to do this in Max, you could use my small filesys Java class: http://www.crfmw.be/max
      You'll need to use Max' [folder] object to get the random name of your Isadora file. [filewatch] will send a notification when a file is _created_, but not when it is closed, so you'll probably need indeed an OSC notification from Isadora. Bad luck!
      _____________________________ Patrick Delges
      Centre de Recherches et de Formation Musicales de Wallonie asbl http://www.crfmw.be/max
    • Oct 03 2008 | 2:13 pm
      Wow! Thanks a lot for the tips.
      I'll have a look into it and try find a work around from there. I'll keep you posted.
      Thanks again
    • Oct 04 2008 | 7:32 pm
      Fantastic! it worked out. No use for OSC.
      As you suggested, I used [folder]
      [filewatch] to trigger change in folder. And your [mxj filesys]
      Only one problem though, Finder will not response to manual name changes after having used your [mxj filesys]. Not until I close Max. ?
      Is this normal, does [mxj filesys] confuse the Os x?
      Thanks again
      phil
    • Oct 05 2008 | 8:08 am
      On 04-oct.-08, at 21:32, phil wrote:
      > > Fantastic! it worked out. No use for OSC. > > As you suggested, > I used [folder] > I got off the net). > > [filewatch] to trigger change in folder.
      As I early wrote, [filewatch] will bang when Isadora _creates_ the file, not when it is done writing the file. I don't think it's a good idea to modify the filename while Isadora is still writing the file, this may explain the "Os x confusion" you're talking about! So maybe an OSC notification once Isadora finished to write may be a good idea!
      > And your [mxj filesys] > > Only one problem though, Finder will not response to manual name > changes after having used your [mxj filesys]. Not until I close Max. ? > Is this normal, does [mxj filesys] confuse the Os x?
      It is not normal and I never encounter this problem before. I will do some testings on monday... but please try my suggestion!
      p
    • Oct 05 2008 | 2:40 pm
      Thanks for the heads up.
      I will try your suggestion.
      By the way, I have tried again a few times to cause to Finder problem but w. no success. All might by well?
      I'll get back to if this happens again w. new setup of;changing filename after capture.
      thanks very much for your efforts
      phil