Welcome, Guest. Please login or register.

Author Topic: Solved: Passing filename to script through AmiDock?  (Read 1288 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline robo-antTopic starter

  • Jr. Member
  • **
  • Join Date: Apr 2007
  • Posts: 87
    • Show all replies
Solved: Passing filename to script through AmiDock?
« on: January 31, 2009, 05:17:01 AM »
Hi,

I want to be able to drag files onto an AmiDock icon and have an AmigaDOS script executed with the dragged file's filename as an argument.

Can it be done?

I have tried making the icon type "Tool", and I have tried making it a "Project" icon and using iconx.  Both of these run the script but it doesn't get the filename.

I'm running AmigaOS 3.9.

Thanks.
 

Offline robo-antTopic starter

  • Jr. Member
  • **
  • Join Date: Apr 2007
  • Posts: 87
    • Show all replies
Re: Passing filename to script through AmiDock?
« Reply #1 on: January 31, 2009, 11:39:21 PM »
Quote

Does your script work if you run it from the shell and pass the parameters manually?


Yes, it does.  It also works if I click on the file, and then double-click on the script's icon on Workbench.

I would rather not have this icon on Workbench, but on AmiDock, where I could just drop files onto it.

Maybe SnoopDOS will be my friend.
 

Offline robo-antTopic starter

  • Jr. Member
  • **
  • Join Date: Apr 2007
  • Posts: 87
    • Show all replies
Solved!
« Reply #2 on: February 01, 2009, 05:07:02 AM »
OK, I have it working now.

What fixed it was changing the "Start from:" setting in the icon from "Shell" to "Workbench".

I don't know what the difference actually is, but it has solved the problem.