English Amiga Board


Go Back   English Amiga Board > Requests > request.Other

 
 
Thread Tools
Old 09 October 2010, 23:19   #21
TCD
HOL/FTP busy bee

 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
I think you mean '.key name' then use '<name>' to access it. 'name' is obviously just a placeholder Use the comma to have more than one param.
Oh and place that in the first line of your script.
TCD is online now  
Old 09 October 2010, 23:20   #22
MethodGit
Junior Member
 
MethodGit's Avatar
 
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
Actually, if it helps explain things easier, I want the "list" command to be able to create a script that goes something like this:

Code:
WWARP T:Temp.wwp C Import="(game name).ipf" Force
WWARP T:Temp.wwp G * "(game name).adf"
delete T:Temp.wwp
This exact series of commands, added as per every IPF found in the current folder. I think it has a problem with the * in the second line though as it doesn't show up in the finished script.


EDIT: Eh? What you referring to exactly, CD?
MethodGit is offline  
Old 09 October 2010, 23:22   #23
TCD
HOL/FTP busy bee

 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
Your question about the equivalent of the %1 parameter in AmigaOS
TCD is online now  
Old 09 October 2010, 23:33   #24
MethodGit
Junior Member
 
MethodGit's Avatar
 
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
Ah okay. You might have to give me an example of how it works since Google is still being crap with coming up with good answers.
MethodGit is offline  
Old 09 October 2010, 23:36   #25
TCD
HOL/FTP busy bee

 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
Code:
.key Name

echo <Name>
So, enough spoonfeeding now
TCD is online now  
Old 10 October 2010, 00:02   #26
MethodGit
Junior Member
 
MethodGit's Avatar
 
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
Thanks. But looking at it I still don't see how this will solve my situation. I take it the Execute command won't recognise anything entered after the name of the script? Or can anything referenced in .key be carried over to as many recursive scripts as possible?
MethodGit is offline  
Old 10 October 2010, 00:16   #27
TCD
HOL/FTP busy bee

 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
Quote:
Originally Posted by MethodGit View Post
But looking at it I still don't see how this will solve my situation. I take it the Execute command won't recognise anything entered after the name of the script?
Er... of course it will recognise the parameter. Otherwise it would be pretty pointless. Looking at the thread, I think that thomas gave you pretty much what you need here (you'll have to adapt it of course).
Btw : Not sure if AmigaOS supports recursive scripts.
TCD is online now  
Old 10 October 2010, 00:18   #28
MethodGit
Junior Member
 
MethodGit's Avatar
 
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
Actually, Google finally helped me with something!

Turns out to make List/LFormat output a script with more than one command you need to use "*n" to refer to a line feed.

But alas, I am still stuck because it is unable to understand the * in the second WWarp command, and that symbol is required by the program. So it looks as if I may have to implement the long-winded two-script way after all. Unless of course there is a way around the * confusion?

Still, I'd like to know how exactly the ".key" can be called at a command prompt in the same manner as a %1 if I'm to make references inside the script.
MethodGit is offline  
Old 10 October 2010, 00:22   #29
TCD
HOL/FTP busy bee

 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
Meh.

Make a script with contents of my example 5 posts above. Name it 'test'. Call it with 'execute test MethodGit'. See what it does.
TCD is online now  
Old 10 October 2010, 00:44   #30
cosmicfrog
The 1 who ribbits
 
cosmicfrog's Avatar
 
Join Date: Apr 2006
Location: leek, Staffs, UK
Age: 56
Posts: 3,557
Send a message via MSN to cosmicfrog
time to get a book on amiga dos hehehehehhe
cosmicfrog is offline  
Old 10 October 2010, 01:12   #31
rare_j
Zone Friend
 
rare_j's Avatar
 
Join Date: Apr 2005
Location: London
Posts: 1,176
Try amigados for beginners on aminet (adosbegin.lha) it explains everything you ask and more very well.
rare_j is offline  
Old 10 October 2010, 01:17   #32
MethodGit
Junior Member
 
MethodGit's Avatar
 
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
Quote:
Originally Posted by TheCyberDruid View Post
Meh.

Make a script with contents of my example 5 posts above. Name it 'test'. Call it with 'execute test MethodGit'. See what it does.
Impressive.
MethodGit is offline  
Old 10 October 2010, 01:24   #33
MethodGit
Junior Member
 
MethodGit's Avatar
 
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
Quote:
Originally Posted by TheCyberDruid View Post
Btw : Not sure if AmigaOS supports recursive scripts.
Gash....... think you may be right on that one.

Here's my current script:
Code:
list >tempscript files p=#?.ipf lformat="execute IPF2ADF *"%n*""
This creates a tempscript in the same directory, and that tempscript will read something like this:
Code:
execute IPF2ADF "Secret of Monkey Island, The (Europe) (v1.2) (Disk 1).ipf"
execute IPF2ADF "Pushover (Europe) (En,Fr,De,Es) (Disk 2).ipf"
execute IPF2ADF "Pushover (Europe) (En,Fr,De,Es) (Disk 1).ipf"
execute IPF2ADF "Pushover (Europe) (En,Fr,De,Es ) (Alt) (Disk 2).ipf"
execute IPF2ADF "Pushover (Europe) (En,Fr,De,Es ) (Alt) (Disk 1).ipf"
(For some reason "list" doesn't output the names in alphabetical order but oh well)

That IPF2ADF script in turn executes this:
Code:
.key <name>

WWarp T:Temp.wwp C Import="<name>" Force
WWarp T:Temp.wwp G * "<name>.adf"
Delete T:Temp.wwp
However, what I'm getting in return is this:
Code:
creating new wwarp file "T:Temp.wwp" from file "" using trackwarp.library
cannot open file: object is not of required type
T:Temp.wwp: object not found (dos.library/open file to read)
disk image '.adf' has been written, size=0
No file to delete
AmigaDOS, why hast thou forsaken me?!
MethodGit is offline  
Old 10 October 2010, 01:24   #34
TCD
HOL/FTP busy bee

 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
Fingers crossed you got the idea now
Edit : Not '.key <name>', just '.key name'...
TCD is online now  
Old 10 October 2010, 01:27   #35
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by MethodGit View Post
(For some reason "list" doesn't output the names in alphabetical order but oh well)

AmigaDOS, why hast thou forsaken me?!
FYI, List outputs the names in the order in which the file header/user directory blocks appear on the disk.
prowler is offline  
Old 10 October 2010, 01:32   #36
MethodGit
Junior Member
 
MethodGit's Avatar
 
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
Quote:
Originally Posted by prowler View Post
FYI, List outputs the names in the order in which the file header/user directory blocks appear on the disk.
Even though I'm using a PC directory here? How weird.

I'm starting to worry that this .key thingy will only acknowledge output referred to in the initial execute command, and not any inside scripts. Amirite? >.<
MethodGit is offline  
Old 10 October 2010, 01:34   #37
TCD
HOL/FTP busy bee

 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,774
Quote:
Originally Posted by TheCyberDruid View Post
Edit : Not '.key <name>', just '.key name'...
Clear enough now?

Quote:
creating new wwarp file "T:Temp.wwp" from file "" using trackwarp.library
You see the "" in the message? That means it has no file to create 'Temp.wwp' from. That's why the second wwarp command in that script fails.

Last edited by TCD; 10 October 2010 at 01:41.
TCD is online now  
Old 10 October 2010, 01:39   #38
cosmicfrog
The 1 who ribbits
 
cosmicfrog's Avatar
 
Join Date: Apr 2006
Location: leek, Staffs, UK
Age: 56
Posts: 3,557
Send a message via MSN to cosmicfrog
thats why there is a sort cmd, guess wot it sorts a txt file

http://www.bombjack.org/commodore/amiga-books.htm

Compute's AmigaDOS Reference Guide 4th Edition

had this for years
cosmicfrog is offline  
Old 10 October 2010, 01:43   #39
prowler
Global Moderator
 
prowler's Avatar
 
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
Quote:
Originally Posted by MethodGit View Post
Quote:
Originally Posted by prowler View Post
FYI, List outputs the names in the order in which the file header/user directory blocks appear on the disk.
Even though I'm using a PC directory here? How weird.
If you're using a PC directory, then the names are (I would guess) listed in the order in which they appear in the PC directory TOC.
prowler is offline  
Old 10 October 2010, 01:51   #40
MethodGit
Junior Member
 
MethodGit's Avatar
 
Join Date: Dec 2002
Location: The Streets
Age: 40
Posts: 2,731
Quote:
Originally Posted by TheCyberDruid View Post
Clear enough now?
I saw it the first time!

Quote:
You see the "" in the message? That means it has no file to create 'Temp.wwp' from. That's why the second wwarp command in that script fails.
No shit! I know it can't seem to find the file, which was what led me to ponder whether .key expects me to reference it in my initial execute command. Which would defeat the whole purpose of doing a multi-convert batch file.
MethodGit 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
Final Command runamuck2 support.Games 7 13 September 2019 16:17
What is the WB command that..... MethodGit request.Other 4 08 October 2010 04:21
Install command mai support.Other 9 09 December 2009 15:33
New Carrier Command -=ARA=- Retrogaming General Discussion 12 18 September 2009 10:37
help with delete command silkworm New to Emulation or Amiga scene 2 09 December 2004 19:14

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 06:54.

Top

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