ScriptSpot

Forum topic · General Scripting

open xref object

By titane357 · 2013-11-04

Description

Hello, I would like to open selected xref object with a script,
this one works :
(
a = $.srcFileName
ShellLaunch a ""
)
but if I want to specify the .exe I want I got error :
(
a = $.srcFileName
ShellLaunch "3dsmax.exe" @a
)
Any help ? Thanks.

Comments (2)

titane357 · 2013-11-05

Thanks a lot Miauu !!! It works. :-)

.

miauu · 2013-11-04

Not works for me too, but if you specified the full path to the 3dsmax.exe it works


(
	
	ShellLaunch "C:\Program Files\Autodesk\3ds Max 2014\3dsmax.exe" (mapPaths.getFullFilePath $.srcFileName)

-- 	ShellLaunch "C:\Program Files\Autodesk\3ds Max 2014\3dsmax.exe" $.srcFileName

)