Menu

"Metascripts" and file associations

2016-02-13
2016-02-27
<< < 1 2 3 4 > >> (Page 3 of 4)
  • Pier Andrea Serra

    Hi Stefan,
    the GUI looks good, unfortunatly the menuItems for the creation of the SCE and the SCEZ files remain disabled; I've tryed every combination for enabling them without success.
    It is possible that I forgot something.
    I'm curious to test the new functionality. I've observed that you maintained the possibility to customize the dir paths. I suppose that the COMBOBOX meaning is to inform SC about the filetype and SC manages it accordingly. I did not study the source code (unavailble for testing releases), but if you have several LIB files (or scripts) pointing to different directories (customized), is SC able to manage multiple sub-dirs for the same file typology (i.e. libs).?
    Thank you.
    Kndest regards,
    Pier Andrea.

     
  • Stefan Zieker

    Stefan Zieker - 2016-02-19

    Hi Pier,

    for enabling the menus you needed at minimum one 'executable script' (one entry above the 'script' entry in the combo box).->I will put this entry below the 'script' entry.
    If you select a filetype with the combo box SC suggests a sub directory (which can be overwritten). You can have as many different directories for a file type as you like.

    Best regards,
    Stefan

     

    Last edit: Stefan Zieker 2016-02-19
  • Stefan Zieker

    Stefan Zieker - 2016-02-19

    Hi Pier,

    I have uploaded a new pre-release which includes some changes in the GUI and the source code ('SC folder'/src).

    Best regards,
    Stefan

     
  • Pier Andrea Serra

    Hi Stefan,
    your solution offers both a controlled behaviour and a higly customizable path definition.
    Excellent.
    I'll download-and-try your last pre-release.
    Thank you for your patience.
    Kindest regards,
    Pier Andrea

     
  • Pier Andrea Serra

    Hi Stefan,
    I've found my mistake: I confused "executable script" with "script".
    Now it works.
    I'm sorry.
    Kindest regards,
    Pier Andrea.

     
  • Pier Andrea Serra

    Hi Stefan,
    I've tryed the new release and it works very well. I have a curiosity about paths; in a previous message you wrote: "You can have as many different directories for a file type as you like" but, from an "execute script point of view" are ALL FILES accessible as written the same directory? This seems to be true for bin (and lib) files, but is it also extendible to ALL the generated tree?
    This may simplify a lot the programmer efforts with paths because bypasses the relative path creation headaches and every file may be pointed AS WRITTEN in the same folder of the execute script(s).
    Amazing.
    I think that the path behaviour have to be similar in SCE/SCEZ files and scrips launched for inside SC or from commandline or, these differences have to be clarified in the documentation.
    Another thing we have to think is the SAVING behaviour of SCE/SCEZ.
    The SCE file may SAVE data and PREFS in its own tree and this is OK.
    I presume that the SCEZ is expandend-launched in a tmp dir and removed when the execution finished. Every saved file inside the SCEZ tmp relative tree will be removed after execution.
    I think this must be clear to the final developer for the right selection of the destination path i.e. for saving TCP- or serial-acquired data.
    A possible approach may be to have a folder inside the SC tree i.e.a shared folder in wich a SCEZ file may save the PREFS and/or create subDirs for data etc. In this way every EXTRA processing may be directed inside the SC tree.
    Personally I prefer to free the programmer in this way, but you have to consider the "disorder" in disseminating the computer with PREF.xml files; a guideline in this direction may be welcome.
    I'm sorry for adding "problems and problems" immediately after a new SC "release" but I think that THIS is the moment for such kind of considerations because this powerful funcionality (really advanced) opens a lot of issues that have to be faced (sooner or later).
    Thank you again.
    Kindest regards,
    Pier Andrea.

     

    Last edit: Pier Andrea Serra 2016-02-19
  • Stefan Zieker

    Stefan Zieker - 2016-02-19

    Hi Pier,

    I hope I have understand your first question correct. You can place your files in every sub directory you want. This mean for example that you can place all files in one directory.

    SAVING behaviour-> It was my plan to add scriptThread::getUserDocumentsFolder. With this path you can store your data permanent (in a custom sub folder).

    Best regards,
    Stefan

     
  • Pier Andrea Serra

    Hi Stefan,
    About SAVING behaviour, OK, I agree with your plan.
    About tree and path, I have undestood your idea (you are free to customize the SCE/SCEZ path),
    The curosity was about the path from inside a execute script; i.e. in the following instruction:

    var executable = scriptThread.getScriptFolder()+"/" + getExecutableName();
    

    "executable" points to the right PATH independently from the relative path you create with the SCEZ creator dialog (you can save the exe file in a custom subfolder).
    While, when the script is launched from inside SC, you need that the exe files resides in the same folder of the script, this is not necessary with SCEZ files; is it correct?
    Kindest regards,
    Pier Andrea.

     
  • Stefan Zieker

    Stefan Zieker - 2016-02-19

    Hi Pier,

    An exe file which is started by a script (which is launched from the SC gui) can reside in every folder that you want. You only need to now the relative (to the script) path (and convert it to an absolut path with getScriptFolder).

    Best regards,
    Stefan

     
  • Anonymous

    Anonymous - 2016-02-19

    Hi Stefan,
    OK.
    Thank you for the explanation. I continue to test this functionality during the WE. I suppose that the SCE/SCEZ extension is in pole position to be integrated in the next release of SC.
    I think you thid a hard work during this week. I suggest you to alternate SC programming with a nice outdoor excursion.
    Kindest regards,
    Pier Andrea.

     
  • Pier Andrea Serra

    Hi Stefan,
    I'm following the incredible work (commint r928 up to now) you did during the WE and are doing now.
    Thank you.
    Kindest regards,
    Pier Andrea.

     
  • Stefan Zieker

    Stefan Zieker - 2016-02-22

    Hi Pier,

    I have uploaded a new pre-release which includes:
    - changes in the installer
    - add folder in th SCE window
    - some minor changes in the SCE window
    - some bug fixes
    - ScriptThread: getScriptArguments, zipDirectory, zipFiles, extractZipFile und getUserDocumentsFolder
    - cleaned up code

    This will be the version for the next release (I only need to update the manual).

    Best regards,
    Stefan

     
  • Pier Andrea Serra

    Hi Stefan,
    I've downloaded your last test release and I'll check it ASAP this afternoon.
    Thank you again for your efforts.
    Kindest regards,
    Pier Andrea.

     
  • Pier Andrea Serra

    Hi Stefan,
    few issues after testing.
    1) I think you inverted the menu-item "script" and "execute script" in the execute popup menu. Please check this because I have problems in generating SCE/SCEZ files (the generate menu is active only if at least ONE "script" file is active; but I need at least one "execute script" ).
    2) When you define a sce file (i.e. C:/Users/myName/Desktop/test/sss.sce) with the "select" button and simply close the "create sce file" window, try to close SC, a xml-saving window opens asking to "save sce config file". I do not know it this behaviour is correct.
    Thank you.
    Kindest regards,
    Pier Andrea.

     

    Last edit: Pier Andrea Serra 2016-02-22
  • Stefan Zieker

    Stefan Zieker - 2016-02-23

    Hi Pier,

    1) The generate menu is active if at least one executable or one script is in the file table. If you select generate and no execute script is in the table then a message pops up and the file is not generated (this is more intiutive for a normal user who normaly just adds scripts (in the past he didn't know why the menu was inactive and now a message is shown))
    2) I have removed the version from the settings folder of SC. Therefore you have started with a config in which no sce config file was set. If you now change something in the sce window SC try to save this. This is the reason why SC shows a save as config (if you select a file name this dialog will never appear again).

    Best regards,
    Stefan

     
  • Pier Andrea Serra

    Hi Stefan,
    about the point 1), I confirm the strange behaviour on my PC:
    As you can see in the atteched pictures, If I select the plotWindow example and I define the pointed file as "execute script", the menuitem for SCE/SCEZ generation are DISABLED. If I define the pointed file as " script", the menuitem for SCE/SCEZ generation are ENABLED but during the SCE/SCEZ generation an error message appears because at least one "execute script" must be defined.As written before, I think you inverted the "execute script" and "script" in the popup menu inside the table.
    About the point 2), OK.
    KIndest regards,
    Pier Andrea.

     

    Last edit: Pier Andrea Serra 2016-02-23
  • Stefan Zieker

    Stefan Zieker - 2016-02-23

    Hi Pier,

    the problem was that in the check for enabling the menus only 'script' and not 'executable script' was included. I have uploaded a new pre-release which fixes this bug.

    Best regards,
    Stefan

     

    Last edit: Stefan Zieker 2016-02-23
  • Pier Andrea Serra

    Hi Stefan,
    thank you for your fast answer.
    I'll donload a ndh check the new pre-relase asap.
    Kindest regards,
    Pier Andrea.

     
  • Pier Andrea Serra

    Hi Stefan
    I've tryed the new release and the SCE/SCEZ functionality is absolutely amazing now and it seems to work without problems. The new functionality "add a folder" is useful and simplify the inclusion of resources in complex projects.
    You did a fantastic work in this sense.
    Thank you again.
    Kindest regards,
    Pier Andrea.

     

    Last edit: Pier Andrea Serra 2016-02-23
  • Stefan Zieker

    Stefan Zieker - 2016-02-23

    Hi Pier,

    I have uploaded a new official release. Now I need a break :-).

    Best regards,
    Stefan

     
  • Pier Andrea Serra

    Hi Stefan,
    You did an incredible work this week and in particular during the WE.
    Thank you very much.
    As suggested in a previous post ([...]" I suggest you to alternate SC programming with a nice outdoor excursion"[...]) and you wrote in your last post, IT IS TIME FOR A BREAK.
    Enjoy a well deserved rest after a winning effort.
    I hope to hear from you soon.
    Kindest regards,
    Pier Andrea.

     
  • Stefan Zieker

    Stefan Zieker - 2016-02-26

    Hi Pier,

    I have uploaded a new pre-release which includes a bug-fix.
    If you put a library (for a custom widget) into the scez file then SCE tries to delete the temporary folder on exit. But the library is loaded by SC therefore the folder cannot be deleted.
    Now SC create a process (DeleteFolder) which deletes the folder after 10 seconds have been elapsed ( I cannot simply unload the libraries because the Qt ui loader locks the libraries).

    Best regards,
    Stefan

     
  • Pier Andrea Serra

    Hi Stefan,
    thank you for the new pre-release.I'm following your work in the code section.
    I understand the problem you fixed: you found a clever solution.
    I'll try the test version.
    Kindest regards,
    Pier Andrea.

     

    Last edit: Pier Andrea Serra 2016-02-26
  • Pier Andrea Serra

    Hi Stefan,
    The behaviour of DeleteFolder.exe is as expected under Windows 7.
    During tests, I've observed that sometimes SC remains active in Background (tested under Windows 7). An example is when you run the TestSceFile example and close the GUI Window. I've discovered the permanence of the SC in the process tree because of the increase of the temperature of the CPU related to SC activity.
    Do you think it may be necessary to call scriptThread.exitScriptCommunicator() everytime you close the main GUI Window and you must exit?
    Kindest regards,
    Pier Andrea.

    ps: I suggest you to rename DeleteFolder.exe to DeleteFolder.dll (fake dll) or something different from EXE under Windows for preventing to launch the file from Shell (or form outside SC). I suppose You can launch the process as external process also if the extension is different from EXE.

     

    Last edit: Pier Andrea Serra 2016-02-26
  • Stefan Zieker

    Stefan Zieker - 2016-02-27

    Hi Pier,

    The TestSceFile example is not part of SC (I have deleted it last week, because the user should create the sce file with the GUI). The reason why SC don't exits is that 2 script with not GUI (DataExchangeSender.js and DataExchangeReceiver.js) are started. This scripts do not call exitScriptCommunicator. But this is not necessary because the script window should be shown (if you close this window then all scrips are stopped). The problem is that I renamed the ScriptWindowState XML element to Options. Therefor SC does not show the script window and you can not stop this 2 scripts.

    DeleteFolder.exe->I will rename it to DeleteFolder.

    Best regards,
    Stefan

     
<< < 1 2 3 4 > >> (Page 3 of 4)

Anonymous
Anonymous

Add attachments
Cancel