Welcome, Guest. Please login or register.

Author Topic: AmigaGuide - any experts on the SYSTEM link node?  (Read 3396 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline doctorqTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show all replies
AmigaGuide - any experts on the SYSTEM link node?
« on: February 11, 2025, 04:50:50 PM »
I'm making an AmigaGuide format where I need to execute a command with a parameter with a space in it.

In the AmigaGuide 101 found here https://wiki.amigaos.net/wiki/AmigaGuide_101 the example is

@{"Picture of a Workbench Screen" SYSTEM sys:utilities/Display sys:Workbench.pic}

What to do if my filename is This is my workbench.pic?
 

Offline doctorqTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show all replies
Re: AmigaGuide - any experts on the SYSTEM link node?
« Reply #1 on: February 11, 2025, 10:15:21 PM »
Thanks for the suggestion, but unfortunately no dice  :(
 

Offline doctorqTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show all replies
Re: AmigaGuide - any experts on the SYSTEM link node?
« Reply #2 on: February 11, 2025, 10:18:53 PM »
For those interested, I seem to have found the solution myself...

Code: [Select]
@{"Picture of a Workbench Screen" SYSTEM "sys:utilities/Display \"sys:This is my Workbench.pic\""}
seems to do the trick for me.
« Last Edit: February 12, 2025, 02:07:21 PM by doctorq »
 

Offline doctorqTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show all replies
Re: AmigaGuide - any experts on the SYSTEM link node?
« Reply #3 on: February 11, 2025, 11:11:58 PM »
I will try and test tomorrow, but in my test file I actually set the double quotation marks after SYSTEM right away, so I don't know for sure. I'm guessing an error in the docs though.
 

Offline doctorqTopic starter

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show all replies
Re: AmigaGuide - any experts on the SYSTEM link node?
« Reply #4 on: February 12, 2025, 07:50:22 AM »
I have tested today, and if you write the line as it is in the docs, it will only launch the Display utility and not parse the image filename to the utility. Putting double quotes around the whole command will execute the command properly, thus parsing the image filename to the utility. When using spaces in the filename, you will have to do as I posted earlier, so

Code: [Select]
@{"Picture of a Workbench Screen" SYSTEM "sys:utilities/Display \"sys:This is my Workbench.pic\""}
Testing was done on real hardware with OS3.9. Multiview version 45.9 (2002/01/18)
« Last Edit: February 12, 2025, 02:08:58 PM by doctorq »