19 March 2017, 14:35 | #1 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Assign Management Utility
A few years ago I started writing a small utility for managing assigns, but never finished it. I finally got around to getting it to a more or less finished state and have released it into the wild. I don't know if it's something many other people would find useful; I use it occasionally, but if anyone else might find it useful, it's available on my website and very shortly on Aminet. It's 68k/OS3 code using MUI, but works fine on OS4 and MorphOS too, and most likely on AROS 68k too though it's untested.
Screenshot here to give you an idea of what it does |
19 March 2017, 14:37 | #2 |
Registered User
Join Date: Jun 2012
Location: Worksop/UK
Age: 59
Posts: 1,328
|
Cool stuff. I will find this handy.
|
19 March 2017, 15:34 | #3 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
What is the meaning of "Permanent", "Active" and "Enabled"?
|
19 March 2017, 15:49 | #4 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Permanent means it's part of the Startup-sequence, User-startup or Kickstart (ENV:, DEVS:, L: etc.), and so is present every boot. If it's not permanent, it may have been added manually (e.g. using Assign in a Shell yourself), by another script that the program doesn't scan (e.g. the SDK setup script), or dynamically by some software (e.g. AmiBlitz 3).
Active means it's actually present in the DOS assigns list in memory, so is available for access by software. If it's not active, it won't show up in file requesters or with the Assign Shell command. This can be toggled by double-clicking it. Enabled means it's in either the Startup-Sequence or User-Startup and is not commented out. If you comment out an assign in the User-Startup for example, it will show up as disabled. You can toggle this state too by double-clicking on the entry. |
19 March 2017, 15:52 | #5 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
|
Hey! Looks useful. Will try thanks!
|
19 March 2017, 18:33 | #6 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 800
|
Nice one Daedalus, thanks!
|
19 March 2017, 19:25 | #7 |
Registered User
Join Date: Dec 2008
Location: Norwich, UK
Posts: 668
|
Great job @Daedalus, as always!!
|
19 March 2017, 19:31 | #8 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Tested it works well on Aros 68k and AFA OS !
You can add tab dismount volumes? (Assign Dimount) For systems that do not have the MUI installed MyAssigns works anyway just copy NList.mcc the only library in the required path. Last edited by AMIGASYSTEM; 31 May 2017 at 12:25. |
19 March 2017, 22:00 | #9 | ||
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Good to know, thanks for the report!
Quote:
Quote:
|
||
19 March 2017, 22:51 | #10 | ||
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
Quote:
Mount CD0: (when I need it) Assign Dismount CD0: (when I want to remove) Quote:
Test Just Workbench Floppy done (There are all MUI features but works): - Floppy Workbench 3.1 - Floppy Fonts - Muimaster.library - Libs NList Last edited by AMIGASYSTEM; 31 May 2017 at 12:25. |
||
19 March 2017, 22:55 | #11 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 470
|
Well, MUImaster.library is the toolkit engine. So: Yes, it requires MUI.
|
19 March 2017, 23:01 | #12 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
|
|
19 March 2017, 23:18 | #13 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Ah, I see. Well, they're not assigns (and the assigns listed by MyAssigns are not volumes), so it's a little beyond the scope of what I was looking to write.
|
20 March 2017, 00:50 | #14 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
I launched it on my A1200 3.1 and noticed some parsing? errors in target string. I.e. comments ";" are included and ">" for APIPE assign. Further a Prepend assign (RAM: dismount from S-S) with target ";".
|
20 March 2017, 01:41 | #15 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Hmmm, could you post or PM me your startup-sequence, or the lines where it's not parsing correctly? Admittedly the parsing is far from foolproof, but it manages to catch everything I have on my various setups. I'll be able to improve it if I get any problem lines to look at. Thanks
|
20 March 2017, 12:55 | #16 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
Send you a PM with the information. Here the screenshots how it looks:
|
20 March 2017, 13:04 | #17 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Just reading your message now, they're quite interesting scripts you have there Far more complicated than my own which is why it's having so much trouble interpreting them. I'll use them as examples / test cases and will hopefully have more robust parsing in an updated version soon.
Thanks for the feedback! |
20 March 2017, 15:15 | #18 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
Does the code tag work in PM? It only looks complicated because of the amount of comments and difference to original S-S and U-S. Hey, 20 years of changing/optimize. If you remove all the comments and deactivated stuff it becomes really short (S-S = 38 lines, U-S = 8 lines without the version stuff). Complicated might be the fact that assigns are placed in S-S, U-S and MCP.
When I read that myassign scans S-S and U-S my first thought was how do you parse all the different possibilities (you might cannot know) that can appear because there isn`t a defined structure to follow. I don`t know but maybe the S-S/U-S that come with different OS install packets like amikit, classicwb, ... are worth to parse? |
20 March 2017, 15:39 | #19 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,335
|
Yep, the tags worked fine, it's just quite the setup - as you say, 20 years of adjustment will do that. I've plenty of extra stuff in my scripts too, but for whatever reason they all worked fine.
The parsing routine is relatively simple - it checks each line for an Assign command. When it finds it, it checks if it's commented or not, and then looks at and stores each argument in turn so it can reconstruct them again later with changed parameters. In this way it shouldn't really matter what the structure of the script is, however I have a feeling the extra comments might be confusing it - I don't know how it reacts to having the word "assign" twice in a line for example, which I think may be why you have some assigns show up as a ; instead. Dismount also seems to be incorrectly spotted when it's commented out... But I'll have a look properly later on when I have the code in front of me. I'm particularly puzzled by the "prepend" tag, no idea how it managed to find that! |
26 March 2017, 08:21 | #20 |
Registered User
Join Date: Dec 2016
Location: USA
Posts: 101
|
This looks cool, I love seeing new utilities for OS3. I'll give it a try with my A2000!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CD32 NVRAM management | Amiga1992 | support.Hardware | 9 | 20 February 2012 13:27 |
Better (perhaps) config files management | NewDeli | request.UAE Wishlist | 7 | 24 June 2008 15:43 |
Assign command | fc.studio | support.Apps | 2 | 28 December 2005 18:36 |
Multi-Assign | Shoonay | support.Apps | 17 | 12 April 2005 15:16 |
Icon Management | Makkinen | support.WinUAE | 3 | 16 October 2004 00:30 |
|
|