Edit with Atom

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Rhywun
Posts: 37
Joined: 25 Oct 2006 16:40
Location: Brooklyn

Edit with Atom

Post 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.

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Edit with Atom

Post 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; 
One of my scripts helped you out? Please donate via Paypal

Rhywun
Posts: 37
Joined: 25 Oct 2006 16:40
Location: Brooklyn

Re: Edit with Atom

Post 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; 

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Edit with Atom

Post 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
One of my scripts helped you out? Please donate via Paypal

Post Reply