26 December 2017, 21:18 | #21 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,378
|
Quote:
I don't know the ProcessIcon command so i can't tell if it has an option to avoid processing icons that don't exist. Doing it by script might involve calling an intermediate script, which uses if exists / endif pairs. Seems still doable. |
|
26 December 2017, 21:30 | #22 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,378
|
More precisely, it would look this way :
Code:
list dirs lformat "script2 *"%s*"" >script1 execute script1 Code:
.key dir/a .bra { .ket } if exists "{dir}.info" echo {dir} endif There is perhaps a simpler way, but it works at least for listing them |
26 December 2017, 21:53 | #23 |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,010
|
|
27 December 2017, 10:50 | #24 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,378
|
I guessed it was probably possible, I just didn't know we could issue a newline with *N
|
19 March 2018, 10:13 | #25 |
Banned
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
|
Just want point out to people who may not know about it, this little gem by ThoR:
http://aminet.net/package/util/cli/SED _very_ handy for editing and formatting text output from commands and whatnot. It's not unix sed, but fills the same purpose, only using more Amiga like syntax and pattern matching. |
19 March 2018, 10:48 | #26 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,374
|
Oh yes, I used that quite a lot before. Much better than Unix SED.
|
19 March 2018, 14:51 | #27 |
Registered User
Join Date: Jan 2005
Location: UmeƄ
Age: 44
Posts: 962
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UAE Scripting Layer | FrodeSolheim | support.FS-UAE | 15 | 26 January 2014 15:56 |
C= 64 BASIC as a Scripting Language | Charlie | Retrogaming General Discussion | 2 | 17 November 2008 14:23 |
AmigaDOS 1.3 Scripting Language | redblade | Coders. General | 10 | 16 August 2008 12:58 |
Resources?? | DDNI | project.WHDLoad | 5 | 25 April 2007 20:42 |
|
|