Path object default value

According to the help for scripting objects "You can also refer to an object's default value using the special def_value property name."

DOpus.output("path = " + d.func.sourcetab.path.def_value);

returns...

path = undefined

You can use it like this:

DOpus.Output("Selected items in " + clickData.func.sourcetab.path + ":");

For string operations it needs to be converted first with String().

Yes thanks @lxp, I know how to get the result I am after but my reading of the path object description combined with the def_value description suggests to me that my example should return a path string.

image

def_value was only supported on the collection objects. In the next update, it should be supported on all other objects that have default values.

1 Like