Page 1 of 1
open command failing on multiple files
Posted: 09 Nov 2012 03:48
by neutrox
Code: Select all
$list = get(selecteditemspathnames);
foreach ($tk, $list, <crlf>) { open "$tk"; }
any reason for it refusing to launch current token, picking up the last selected, focused instead?
Re: open command failing on multiple files
Posted: 21 Nov 2012 19:06
by admin
Works fine here. Maybe you opening app does not support multiple instances.
Re: open command failing on multiple files
Posted: 28 Nov 2012 04:56
by neutrox
get simple text files and launch them using xyplorer: on two files selected only one of them will be opened twice while the other wont be touched.
select those guys again under WE and press enter: the two files will be opened as expected.
Re: open command failing on multiple files
Posted: 28 Nov 2012 10:23
by admin
Well, you cannot expect that XY's "open" command from scripting works necessarily identical to WE's shell command. There are many factors. As i said: it works here.
Re: open command failing on multiple files
Posted: 28 Nov 2012 11:53
by PeterH
neutrox wrote:get simple text files and launch them using xyplorer
Did that, dflt Editor is PSPad.
Selected 2 .txt files, clicked Scripting/Run Script..., pasted above 2 script lines, and executed.
PSPad started, showed 2 windows with the correct 2 files opened.
Tried with 3 files: also OK!
Can't find a problem here
