English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 31 December 2019, 10:06   #1
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 111
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, 12:14   #2
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
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, 15:59   #3
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
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, 17:20   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
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, 21:13   #5
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 111
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, 21:33   #6
Ami
Registered User
 
Ami's Avatar
 
Join Date: Sep 2014
Location: Poland
Posts: 175
If you wont find such a tool on Aminet, try to write script using Workbench Arexx port.
Ami is offline  
Old 01 January 2020, 10:54   #7
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 111
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, 12:27   #8
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
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, 08:42   #9
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 111
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, 18:28   #10
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
Raw style. GETATTR would be a cleaner solution but if it works for you then fine.
daxb is offline  
Old 17 January 2020, 15:53   #11
Solskogen
Registered User
 
Join Date: Nov 2016
Location: Skien / Norway
Posts: 111
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, 17:28   #12
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
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 22:43
New snapshot of Feelin Paul News 8 08 February 2005 23:00
Snapshot function Eny- support.Apps 4 16 July 2004 08:52
How can I snapshot WB on Uae? ElectroBlaster support.WinUAE 23 22 July 2002 15:35
new snapshot available Worfje support.WinFellow 14 28 November 2001 00: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 20:35.

Top

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