The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
I've got a macro that creates a text file, then I want it to open the text file in Notepad at the end.
I tried the edit command (noted in the documentation for 7.1, but apparently supported on versions 7.0 F000 and later - I'm using 7.0 M050):
edit "c:\WINDOWS\notepad.exe" gl_write_file_name
(gl_write_file_name is my variable for the file to be opened.)
I get an error message when it gets to the edit command:
"Illegal value has been used"
I've also tried it with a specific filename (rather than using a variable for the filename):
edit "c:\WINDOWS\notepad.exe" "X:\Illustrators Info\illustrators files\Tim Sharp\2011-07-15 drawings.txt"
but it still gives the same error.
Strangely, if I use the command without specifying a filename:
edit "c:\WINDOWS\notepad.exe" ""
it does not give the error. What it does is pop up the "Run Macro" box (the one accessed from "more macros..." when you select "Macros" from the menu) but still it does not open Notepad.
Am I doing something wrong or could there be a bug in the command that has been corrected by a later release of Isodraw than the 7.0 M050 that I am using?
Solved! Go to Solution.
Pure speculation, but I believe Edit is used to basically edit macros, not to open other files. The help section says you can specify the macro name, not a path.
Instead of "edit" use "launch". Should do what you want.
Pure speculation, but I believe Edit is used to basically edit macros, not to open other files. The help section says you can specify the macro name, not a path.
Instead of "edit" use "launch". Should do what you want.
Thanks Trevor.
I didn't see the launch command, just thought the edit command would work, because macro files are just files like any other, but the launch command does work so it must make the distinction.
Problem solved, thanks again.