Extendscript how to get path of script when a .jsx file is double-clicked to run - filenames

Simple code:
#target indesign
#targetengine indesign
alert($.fileName);
Output when started from extendscript toolkit
Output when a .jsx file is double-clicked to run
How to get path to the script if script is double-clicked to run?

Related

How to run bat file with shell function in VB.NET without showing command

I need to run exe file on command prompt to pass some parameters and in the code of exe file i have run a bat file using VB.NET built-in shell method, but when run exe file on command prompt the shell method seems printed the entire code of the bat file out into cmd, this is not allowed.
Example:
Shell("any code and path to file", AppWinStyle.Hide)
Note: I have to run this bat file with shell method of VB.NET

how to install my customs' cuix,vlx and mnr files to autocad supported files programmatically

I would like to know how I can load my own custom autocad files to the autocad working supported files without options inside Autocad software, but programmatically.
I have these following files that I want to load to supported files of autocad programatically ,
.cuix file
.vlx file
.mnl file
.mnr file
.fas file.
I tried with inno setup.
Honestly, I don't know how to do.
Please guide me or teach me how to do.
As per my understanding, you can achieve this stuff by Autoloading those File, while the AutoCAD is started, there is plenty amount of solution available on internet you may check this link1 Link2
Or you can refer below step(Before following this step read above link)
1.Write a function to load the required file as you mention in Question
(defun Load_File()
;To load CUIX file "<..MyPath.../MYMENU.CUIX>" replace this with you CUIX file path
(command "_MENULOAD" "<..MyPath.../MYMENU.CUIX>" "")
;To load VLX file "<..MyPath.../MY.VLX>" replace this with you VLX file e path
(command "_appload" "<..MyPath.../MY.VLX>")
;Loading a MNU file overwites the corresponding .MNR, .MNS and .MNC files. Keep in mind that if you make any custom toolbars ;and/or buttons using the graphical on-screen method - they will be wiped when you load the MNU
;(I am not sure about MNL/MNR file loading you may try this )
;To load MNLfile "<..MyPath.../MY.MNL>" replace this with you MNL file e path
(command "_appload" "<..MyPath.../MY.MNL>")
;To load Fas file
(load "<your .Fas file path/my.fas>"
)
(load_File)
2.save this file with name as Load_file.Lsp on trusted path (ie "c:/trusted path/...../Load_File.lsp")
(if lisp file is save in trusted path of AutoCAD so AutoCAD not show pop-up while lisp file is load )
3.make new lisp file so it can Autoload as AutoCAD is started with name "acad.lsp" put below code inside file (this code say that load our first "Load_File.lsp" file)
(load "c:/trusted path/...../Load_File.lsp")
this lisp file must be save in install directory of autocad (Ex. "C:\Program Files\Autodesk\AutoCAD 2018") this step is for automatically load "acad.lsp"
As soon as acad.lsp is loaded all your files are load in Autocad.
InnoSetup is a very good choice for You. I use it for few years and it let me do anything I need.
If You have InnoSetup installed, just click File->New and InnoSetup Script Wizard will guide you through the process of creation script. One of the steps is Application Files, where just select Your files mnu, cuix, fas whatever You like
After that compile ( just one click ) and You have Your setup.exe
Using Innosetup You may install files, but also manipulate OS registry - which may be helpful for Your application, but also set Acad supported files paths.
here
You can find more details about how to load Your application to Acad after is installed.

Open the output pdf after building using pdflatex in TexnicCenter

I am using the pdflatex compiler in TeXnicCenter, I wanted to be able to change the output file name, without changing the .tex file name, so I used this line at the start of my file:
%&pfdlatex -job-name=newfile
This method works well, but the compiler doesn't open the pdf automatically anymore, Is there any Command I could use in Viewer instead of the default DDE command to do the job? this is the current command:
[DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]

how to use command line to execute exe file in vb vs2010

i have a exe file , which must be opened with a command line
start a.exe /stext d:/alpha.txt
to save a file in d drive. I tried creating a batch file and calling it in vb but the batch dosent executes the exe file, so is there any direct method to add command line in vb to run the exe file to generate the alpha text.
Use this:
System.Diagnostics.Process.Start(Process Name)

when i run DropPlot.xcodeproj, the file has been successfully compiled. however, nothing shows up

when i run DropPlot.xcodeproj, the file has been successfully compiled.
however, nothing shows up.
am i supposed to get a plot where the data is loaded from a csv file??
The DropPlot example includes a sample CSV file in the folder named "SampleCSVFiles". The app doesn't open any windows until you open a file. Run the app and open the CSV file using the File menu. You should then see a simple line plot.