Open Selected Items in New Background Tabs
Posted: 11 Jun 2021 23:40
I want to write a script to open the selected items in new background tabs. I want to use this script in custom event actions.
Here is my goal:
Several items are selected. Selected items could be files or folders.
The script should check all selected items and do the following job:
- If the selected item is a "File" → The folder containing the selected file should open in a new background tab.
- If the selected item is a "Folder" → The selected folder should open in a new background tab.
My attempt failed at the very beginning step. I have selected 5 folders and I use the "tab" command as follows:
It only opens the first selected folder in the background and other items are ignored. Even the first opened background tab does not work correctly and shows the content correctly after a refresh.
Adding separators does not resolve the issue.
Any comments of how to solve the problem?
Here is my goal:
Several items are selected. Selected items could be files or folders.
The script should check all selected items and do the following job:
- If the selected item is a "File" → The folder containing the selected file should open in a new background tab.
- If the selected item is a "Folder" → The selected folder should open in a new background tab.
My attempt failed at the very beginning step. I have selected 5 folders and I use the "tab" command as follows:
Code: Select all
$ItemsAddress = get("SelectedItemsPathNames");
tab("newb", "$ItemsAddress");Adding separators does not resolve the issue.
Code: Select all
tab("newb", "$ItemsAddress","Separator= <crlf>");