English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 31 December 2019, 11:06   #1
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 36
Sort by name and snapshot all from CLI

I would like to sort all my whdl drawers and snapshot them. Is there a way to do that with CLI or do I have to do the clickety-click with the mouse manually on every drawer?
Solskogen is offline  
Old 31 December 2019, 13:14   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,466
Which OS version do you use? Maybe on of these will work: http://aminet.net/search?query=sort+icon
daxb is offline  
Old 31 December 2019, 16:59   #3
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 4,439
If they all have actual icon files (.info files) and those files aren't write protected, snapshotting the icons after you select all should work.
Daedalus is offline  
Old 31 December 2019, 18:20   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,466
I thought he meant all sub directories shall be sort/snapshot at once. If not then what Daedalus wrote.
daxb is offline  
Old 31 December 2019, 22:13   #5
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 36
I run Amiga OS 3.1.4.1. All of the drawers do have .info files, but when I enter the drawer (unless I do a sort) they are all messed up next time (unless I "snapshot all"), and that's "fine" - but I want to sort all of the drawers under each character (A to Z) in a more efficient way than doing it manually.

I'll take a look at the aminet link, daxb.
Solskogen is offline  
Old 31 December 2019, 22:33   #6
Ami
Registered User

 
Join Date: Sep 2014
Location: Poland
Posts: 96
If you wont find such a tool on Aminet, try to write script using Workbench Arexx port.
Ami is offline  
Old 01 January 2020, 11:54   #7
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 36
Well, I could probably write the script, but I need the commands to do so. Are there are workbench cli commands to sort drawers?
Solskogen is offline  
Old 01 January 2020, 13:27   #8
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,466
With https://wiki.amigaos.net/wiki/AmigaO...Rexx_Interface you should be able to write the script you need if you are familiar with ARexx.
daxb is offline  
Old 16 January 2020, 09:42   #9
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 36
This is what I came up with
/* resize and snapshot */

ADDRESS WORKBENCH
ICON WINDOW root WHDLoad Open
ICON NAMES "Demos" Open
DO i=65 TO 90 BY 1
ICON NAMES D2C(i) Open
SIZEWINDOW ACTIVE 320 200
MENU WINDOW.CLEANUPBY.TYPE
MENU WINDOW.CLEANUPBY.NAME
MENU WINDOW.SNAPSHOT.ALL
WINDOW ACTIVE CLOSE
END
Solskogen is offline  
Old 16 January 2020, 19:28   #10
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,466
Raw style. GETATTR would be a cleaner solution but if it works for you then fine.
daxb is offline  
Old 17 January 2020, 16:53   #11
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 36
I have no clue what GETATTR is, but yes this works.
And I have to do the clean up twice, because without it the snapshot part wouldn't work.
Solskogen is offline  
Old 17 January 2020, 18:28   #12
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 2,466
GetAttr is explained in the link above. I only mentioned it because it would be the smarter way handling such stuff.
daxb is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
New e-uae snapshot mtb support.OtherUAE 12 16 November 2008 23:43
New snapshot of Feelin Paul News 8 09 February 2005 00:00
Snapshot function Eny- support.Apps 4 16 July 2004 09:52
How can I snapshot WB on Uae? ElectroBlaster support.WinUAE 23 22 July 2002 16:35
new snapshot available Worfje support.WinFellow 14 28 November 2001 01:49

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:01.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.07522 seconds with 15 queries