Digg this topic Add to my del.icio.us Submit to SlashDot 3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Script Levels, project depending ?!
psc
post Sep 3 2007, 10:34 AM
Post #1


Guru
***

Group: .script developer
Posts: 2,983
Joined: 14-July 06
From: Korschenbroich, Germany
Member No.: 3


Germany


Currently we spend a lot of work in the API, to make scripts project independent.

But there is currently one issue which should be changed:
Script levels.
When I create a script with the new myNIC tool:
  • For nativeEx_barebone I have to choose the level 4
  • For NativePE I have to choose level 5
  • For LiveXP I have to choose the level 6.
If I use a 'wrong' level, I see several 'Drivers' nodes in the tree. (IMG:../forums/style_emoticons/default/frusty.gif)

It is not a good way to make the structures identical: I already did this some time ago and brought the nativeEx_barebone drivers to level 4, following the LiveXP structure at that time.

Now several weeks ago, Nuno changed the LiveXP structure again, etc. etc. ...

My suggestion:

Give a level to folder.project and use this as first sort criteria.

Peter
Go to the top of the page
 
+Quote Post
smiley
post Sep 3 2007, 12:27 PM
Post #2


Advanced Member
***

Group: .script developer
Posts: 1,011
Joined: 11-August 06
Member No.: 149


Greece


QUOTE(psc @ Sep 3 2007, 01:34 PM) *
Give a level to folder.project and use this as first sort criteria.


(IMG:../forums/style_emoticons/default/thumbup.gif)
Go to the top of the page
 
+Quote Post
MedEvil
post Sep 3 2007, 12:44 PM
Post #3


Advanced Member
***

Group: .script developer
Posts: 1,257
Joined: 29-December 06
Member No.: 2,192



The level idea is actually good as it enables one to have an execution order different from the names of the scripts.
The fact that this results in a different representaion in the treee view, screws this advantage up again.
It's not possible to sort scripts logical so that the users find easy what they are looking for and at the same time use a completely different execution order. (IMG:../forums/style_emoticons/default/thumbdown.gif)

With that disadvantage, we could just as well throw the levels out and rely completely on the name structure.

(IMG:../forums/style_emoticons/default/cheers.gif)

edit:
The ideal would be a level per folder and the levels of scripts within the folder, are used as a secondary sort criteria.
So we could have 10 folder Levels and within each folder another 10 levels.
There should be nothing we can't set up with this system.
Go to the top of the page
 
+Quote Post
Nuno Brito
post Sep 3 2007, 01:22 PM
Post #4


Advanced Member
***

Group: .script developer
Posts: 4,153
Joined: 13-July 06
From: Azores
Member No.: 1


Portugal


Yes, it's a complicated matter - if a more efficient can be proposed, I'm all eyes and ears to get it working.. (IMG:../forums/style_emoticons/default/smile.gif)
Go to the top of the page
 
+Quote Post
psc
post Sep 3 2007, 01:56 PM
Post #5


Guru
***

Group: .script developer
Posts: 2,983
Joined: 14-July 06
From: Korschenbroich, Germany
Member No.: 3


Germany


QUOTE(Nuno Brito @ Sep 3 2007, 03:22 PM) *
Yes, it's a complicated matter - if a more efficient can be proposed, I'm all eyes and ears to get it working.. (IMG:../forums/style_emoticons/default/smile.gif)
  • Folder sort:
    • folder.project level
    • folders w/o folder.project level follow alphabetically
  • Inside Folder:
    • Folder: Start above again (recursive)
    • Scripts / Links
      • by level, inside one level alphabetically
      • w/o level follow alphabetically
In practice, e.g. Driver scripts have the same level
'Finalize' scripts could be level-sorted by:
  • compressing
  • making ISO
  • test in VM
Peter
Go to the top of the page
 
+Quote Post
MedEvil
post Sep 3 2007, 02:10 PM
Post #6


Advanced Member
***

Group: .script developer
Posts: 1,257
Joined: 29-December 06
Member No.: 2,192



QUOTE(Nuno Brito @ Sep 3 2007, 03:22 PM) *
Yes, it's a complicated matter - if a more efficient can be proposed, I'm all eyes and ears to get it working.. (IMG:../forums/style_emoticons/default/smile.gif)

Just don't sort folders or scripts in the treeview acording to level.
Neglecting the level in the treeview, what can be simpler?
It's not a perfect - or even a good solution, but it beats the current one, where levels are mostly set to not mess up the folder structure.

Besides that, i second Peters idea.

(IMG:../forums/style_emoticons/default/cheers.gif)

edit:
Let the script levels only work inside a folder and sort folders simply by name, would work too and not require as much to change.
Go to the top of the page
 
+Quote Post
psc
post Sep 3 2007, 02:19 PM
Post #7


Guru
***

Group: .script developer
Posts: 2,983
Joined: 14-July 06
From: Korschenbroich, Germany
Member No.: 3


Germany


QUOTE(MedEvil @ Sep 3 2007, 04:10 PM) *
Let the script levels only work inside a folder and sort folders simply by name, would work too and not require as much to change.

I assume that execution follows the tree:
Following your suggestion the 'Apps' would make registry entries into the hives which are not yet made in 'Build'. (IMG:../forums/style_emoticons/default/thumbdown.gif)

And to invent new names or use the bad (I introduced that! (IMG:../forums/style_emoticons/default/sad.gif) ) way with 1 - ... etc. is not very nice!

Peter
Go to the top of the page
 
+Quote Post
MedEvil
post Sep 3 2007, 03:11 PM
Post #8


Advanced Member
***

Group: .script developer
Posts: 1,257
Joined: 29-December 06
Member No.: 2,192



QUOTE(psc @ Sep 3 2007, 04:19 PM) *
I assume that execution follows the tree

If that is true, that's pretty stupid coding. Sorry Nuno!
Why should the visual presentation have anything to do with the internal workings? It's not interactive!

But even that can be patched to a better way, easily. Just use two tree structures.
1 that will be shown and knows nothing about levels and a second one that is used during Run.

That reminds me, we had at the beginning of the year already once a discussion regarding the representation.
Back then the idea was, to have a switchable few. One for developers and one for users.
The developer one should have been the 'normal' one and the user one should have been one without levels.
The idea back then was too, to make the tree view simpler for users while giving developers easy access to see the execution order.

The only thing that came out of that discussion is the hidden level=0, as far as i know.

Still i like the latest idea which uses folder - and script levels the best solution.

(IMG:../forums/style_emoticons/default/cheers.gif)
Go to the top of the page
 
+Quote Post
MedEvil
post Sep 3 2007, 03:16 PM
Post #9


Advanced Member
***

Group: .script developer
Posts: 1,257
Joined: 29-December 06
Member No.: 2,192



QUOTE(psc @ Sep 3 2007, 04:19 PM) *
or use the bad (I introduced that! (IMG:../forums/style_emoticons/default/sad.gif) ) way with 1 - ... etc. is not very nice!

No it's not. But still a better solution than what we have right now, imo.
And Nuno asked for solutions without double level. (IMG:../forums/style_emoticons/default/wink.gif)

(IMG:../forums/style_emoticons/default/cheers.gif)

PS: The numbering thing is btw. not as bad as you make it seem. It gives people a clear order they can work with. And people love things that are clear ! (IMG:../forums/style_emoticons/default/wink.gif)
Go to the top of the page
 
+Quote Post
jaclaz
post Sep 3 2007, 03:24 PM
Post #10


Finder
***

Group: Advanced user
Posts: 1,117
Joined: 14-July 06
Member No.: 2


Italy


QUOTE(Medevil)
Why should the visual presentation have anything to do with the internal workings?

"general" thought on the matter (not necessarily on this particular topic of which I know nothing):
Because it is EASIER to follow, to troubleshoot, to explain to new users, it best suites Occam's Razor or the KISS approach. (IMG:../forums/style_emoticons/default/smile.gif)

jaclaz


Go to the top of the page
 
+Quote Post
« Next Oldest · Suggestions and Requests · Next Newest »
 

3 Pages V   1 2 3 >
Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Topic has attachmentsScript for Altiris SVS
22 Trax 667 6th October 2007 - 08:23 AM
Last post by: TheHive
No New Posts Script Template using GUI
7 allanf 505 23rd August 2007 - 06:32 PM
Last post by: allanf
No New Posts script's explorer cotextmenu problem
6 h7se 728 18th July 2007 - 06:41 AM
Last post by: h7se
No New Posts Scripting: "Printable" Documentation?
5 Alexei 934 6th July 2007 - 10:47 PM
Last post by: Nuno Brito
No New Posts script command help
point to all hard drives
2 carfan 366 5th July 2007 - 10:17 AM
Last post by: Nuno Brito


 

Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum

- Lo-Fi Version Time is now: 12th October 2007 - 03:47 AM

MKPortal ©2003-2006 mkportal.it