GP SoftwareTwitter
Opus FAQsManualCommandsObjects

File Type Group Scripting Question


#1

I am using the File Type Group Music Files > Left Double Click event manager and I would like to use a script function to execute.
How do you refer to the item that was double clicked. I need the full path of the item.

Thank you


#2

This will output the double-clicked item's path to the script log:

@script jscript
function OnClick(clickData)
{
	DOpus.Output( clickData.func.sourcetab.selected(0).realpath );
}


#3

Thank you Leo, but I would like to use VBS. What is the function header for VBS. I have tried the same header but it returns an error.
I found it Thanks


#4

vbscript instead of jscript on the first line. The rest you can get by copying what a script button gives you when you make a new one on a toolbar. Writing and testing the script via a toolbar button will be easier, too. Once it's finished you can copy the code into the event and add the @script line to the top.


#5

Thank you. I got it.

Regards


#6

Please don't! o)