Applescript, Chrome: Make new tab at specified index -


i have simple applescript, reopens active tab in new tab

tell application "google chrome"     tell first window         set theurl url of active tab         set mytab make new tab @ end of tabs         set url of mytab theurl     end tell end tell 

so can open tab at end of tabs or at beginning of tabs, how can open new tab @ specified index of tabs. i'd open next tab after active tab.

you can use term at after tab (number); this

tell application "google chrome"     tell first window         set n active tab index         set theurl url of active tab         set mytab make new tab @ after tab n properties {url:theurl}     end tell end tell 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -