I've got my script to add files to AmiDock by using the following code:
Code: Select all
SendRexxCommand("AMIDOCK", "ADDSUBDOCK 'Music'")
SendRexxCommand("AMIDOCK", "ADDOBJECT '\"" .. target$ .. "\"' 'NAME=\"" .. name$ .. "\"' 'DOCKNAME=Music'")
In this target$ is the file to be added and name$ is what it will be called in AmiDock. The problem comes when the target file name contains a quote mark, e.g. It's cold on Pluto. If I were to drag and drop the same file onto AmiDock from Workbench it is added fine, so AmiDock can clearly handle quote marks in names.
Anyone know would I need to add to my code to get files containing quote marks onto AmiDock?
Thanks!