Page 1 of 1

Edit with Atom

Posted: 05 Aug 2016 16:55
by Rhywun
Anyone using Atom, have you found a decent way to launch it in a user script? Right now I'm using

Code: Select all

C:\Users\-----\AppData\Local\atom\bin\atom.cmd
but it pops up a command window which is not elegant.

Atom's installation is so unbelievably convoluted - there is no simple atom.exe to point to - well, one that doesn't become obsolete with every update.

Re: Edit with Atom

Posted: 05 Aug 2016 17:21
by highend
Use e.g.:

Code: Select all

run """C:\Users\%USERNAME%\AppData\Local\atom\bin\atom.cmd"" ""<variable for the file you want to open>""", , , 0; 

Re: Edit with Atom

Posted: 10 Aug 2016 17:44
by Rhywun
Thanks - I got this to work but is there any way to activate the Atom window? Currently the Atom icon flashes in the taskbar and I have to select it manually to bring it to the front.

UPDATE: I had to remove the quotes from <selitems> to get it to work with multiple files, like so:

Code: Select all

run """C:\Users\%USERNAME%\AppData\Local\atom\bin\atom.cmd"" <selitems>", , , 0; 

Re: Edit with Atom

Posted: 10 Aug 2016 19:06
by highend
I had to remove the quotes from <selitems>
Sure, this variable already puts all of it's items in quotes.
Currently the Atom icon flashes in the taskbar and I have to select it manually to bring it to the front.
Doesn't happen here... Sorry, can't help