Page 1 of 1

how to pass an argument to a command ID

Posted: 25 Nov 2012 01:30
by JimXYUser
In script, I would like to use a command ID #167 (copy here as) and pass in an argument "MyFileName1.txt" then let it execute. I can then put the script into a button.

e.g.

Code: Select all

#167 > "MyFileName1.txt" //not working

How do i pass an argument to #167?

Re: how to pass an argument to a command ID

Posted: 25 Nov 2012 02:39
by highend
How do i pass an argument to #167?
You can't.

Not sure if that's your source or destination file...

Code: Select all

copyas "MyFileName1.txt", , "<curitem>";
Would copy the current selected item to a new file named "MyFileName1.txt" in the same folder...

Re: how to pass an argument to a command ID

Posted: 25 Nov 2012 07:50
by JimXYUser
that is my destination file. btw is there a way to pass argument to any command ID (beside copy as) that need user input?

Re: how to pass an argument to a command ID

Posted: 25 Nov 2012 09:21
by highend
No.

Re: how to pass an argument to a command ID

Posted: 25 Nov 2012 10:01
by admin
Calling a command ID is identical to clicking a menu command or pressing a keyboard shortcut. You cannot pass an argument here neither.