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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -