FlowStudio: get file name
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Posts: 284 from 2013/5/29
    Hello.

    Im trying to do some scripts for my coding use. Im learning how to do it with LUA and more or less I get it.
    Now I want to run the current opened file (Hollywood code) but need the full path of the file.
    I have tried with debug.getinfo() but it shows the path of the launched script instead of the opened file.

    How can I get it?

    Thaks!
    PowerMac G5 - PowerBook G4 - MacMini with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »19.03.19 - 18:38
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 343 from 2003/2/25
    From: Berlin
    Unfortunately, I didn't found a way to get the filename of the current tab.

    I got used to it to have the fullpath of the file in the first line as a comment to compile my ECX/Hollywood sources.
    My compile script reads this and starts the corresponding compiler;)
  • »19.03.19 - 18:49
    Profile Visit Website
  • MorphOS Developer
    Nadir
    Posts: 141 from 2003/3/17
    Hi,

    Unfortunately there is no way to do that in the current version of FlowStudio. I’m currently extending the Lua interface a lot and I will among other things add editor properties but you’ll have to wait a bit for that I’m afraid.

    Nicholai
  • »19.03.19 - 19:32
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Posts: 284 from 2013/5/29
    Damm!!! I have spend two days trying to find a way!! hahahahaha
    Ok mates. Thanks the support. I can wait "a bit" ;)

    Quote:

    igracki escribió:
    Unfortunately, I didn't found a way to get the filename of the current tab.

    I got used to it to have the fullpath of the file in the first line as a comment to compile my ECX/Hollywood sources.
    My compile script reads this and starts the corresponding compiler;)


    Hey! I think I can use this trick meanwhile! Thanks.


    [ Editado por tolkien 19.03.2019 - 19:58 ]
    PowerMac G5 - PowerBook G4 - MacMini with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »19.03.19 - 19:55
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 343 from 2003/2/25
    From: Berlin
    Sorry

    [ Edited by igracki 07.04.2019 - 17:01 ]
  • »07.04.19 - 15:58
    Profile Visit Website