IDM_OPENSELECTED

18 views
Skip to first unread message

chris.d...@gmail.com

unread,
Apr 7, 2022, 3:15:48 AMApr 7
to scite-interest
Hi,

I would like to open pictures (jpg, png, ..)  with the system editor if I use command IDM_OPENSELECTED. For an URL this works, but not for pictures. 

Is this possible, or are there other options?

Thanks

Neil Hodgson

unread,
Apr 7, 2022, 6:45:17 AMApr 7
to scite-interest
chris.d:

> I would like to open pictures (jpg, png, ..) with the system editor if I use command IDM_OPENSELECTED. For an URL this works, but not for pictures.

That code is looking for a ’scheme’ at the start like ‘https:’ to run a command. Otherwise it wants to open as a file and that opens into SciTE as text.

> Is this possible, or are there other options?

Define a tool command that runs the command line you want (depends on OS) over $(CurrentSelection) or $(CurrentWord). This works on macOS:

command.2.*=open $(CurrentWord)
command.name.2.*=Open File

Neil

Chris De Boeck

unread,
Apr 7, 2022, 8:21:32 AMApr 7
to scite-i...@googlegroups.com
Thx, 'Start' works for windows.

--
You received this message because you are subscribed to a topic in the Google Groups "scite-interest" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scite-interest/8qBuYRgbCX0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scite-interes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/00E10EA2-069F-44BB-AF29-FCAC65D5C1FB%40me.com.
Reply all
Reply to author
Forward
0 new messages