Reload all chrome tabs of a certain page with AppleScriptApplescript - Google Chrome activate a certain windowi need an applescript to open safari in full screen an to hide the toolbar on mavericksApplescript “Expected end of line but found property.” error when using google chromeFilling form in Chrome using Applescript and JavascriptApplescript command encountering error after closing chrome windowApplescript: Unable to set miniaturized property of the window when application is a variableApplescript/Bashscript to activate incognito google chrome running in backgroundJavascript within AppleScript 'cannot make script into type specifier' (for clicking button in Chrome)Mapping shortcut to publish WP page, open tab and reloadPerform actions on a certain window of the application with AppleScript
How can a class have multiple methods without breaking the single responsibility principle
What is the reason behind water not falling from a bucket at the top of loop?
Feedback diagram
Gold Battle KoTH
Matrix condition number and reordering
Protect a 6 inch air hose from physical damage
δόλος = deceit in John 1:47
What do the screens say after you are set free?
Word to describe someone doing something even though told not to
Backpacking with incontinence
HackerRank Implement Queue using two stacks Solution
Is there a general term for the items in a directory?
Why are prop blades not shaped like household fan blades?
Export economy of Mars
What's the proper way of indicating that a car has reached its destination during a dialogue?
Can Otiluke's Freezing Spheres be stockpiled?
How to avoid a lengthy conversation with someone from the neighborhood I don't share interests with
Applying for mortgage when living together but only one will be on the mortgage
How to power down external drive safely
Can an alphabet for a Turing machine contain subsets of other alphabets?
Why do player start with fighting for the corners in go?
Being told my "network" isn't PCI compliant. I don't even have a server! Do I have to comply?
How to trick a fairly simplistic kill-counter?
How to structure presentation to avoid getting questions that will be answered later in the presentation?
Reload all chrome tabs of a certain page with AppleScript
Applescript - Google Chrome activate a certain windowi need an applescript to open safari in full screen an to hide the toolbar on mavericksApplescript “Expected end of line but found property.” error when using google chromeFilling form in Chrome using Applescript and JavascriptApplescript command encountering error after closing chrome windowApplescript: Unable to set miniaturized property of the window when application is a variableApplescript/Bashscript to activate incognito google chrome running in backgroundJavascript within AppleScript 'cannot make script into type specifier' (for clicking button in Chrome)Mapping shortcut to publish WP page, open tab and reloadPerform actions on a certain window of the application with AppleScript
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to reload all tabs of Chrome (i could have many windows open) of a certain page. This is what I did:
tell application "Google Chrome"
set ids to every window
repeat with id in ids
reload (tabs of window id whose URL contains "mypage.com")
end repeat
end tell
But I get Google Chrome got an error: Can’t make item 1 of window id 1 into type integer.
How do I do this?
applescript
add a comment |
I'm trying to reload all tabs of Chrome (i could have many windows open) of a certain page. This is what I did:
tell application "Google Chrome"
set ids to every window
repeat with id in ids
reload (tabs of window id whose URL contains "mypage.com")
end repeat
end tell
But I get Google Chrome got an error: Can’t make item 1 of window id 1 into type integer.
How do I do this?
applescript
add a comment |
I'm trying to reload all tabs of Chrome (i could have many windows open) of a certain page. This is what I did:
tell application "Google Chrome"
set ids to every window
repeat with id in ids
reload (tabs of window id whose URL contains "mypage.com")
end repeat
end tell
But I get Google Chrome got an error: Can’t make item 1 of window id 1 into type integer.
How do I do this?
applescript
I'm trying to reload all tabs of Chrome (i could have many windows open) of a certain page. This is what I did:
tell application "Google Chrome"
set ids to every window
repeat with id in ids
reload (tabs of window id whose URL contains "mypage.com")
end repeat
end tell
But I get Google Chrome got an error: Can’t make item 1 of window id 1 into type integer.
How do I do this?
applescript
applescript
asked Mar 27 at 0:32
KoushaKousha
8,33417 gold badges83 silver badges173 bronze badges
8,33417 gold badges83 silver badges173 bronze badges
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
This works for me using the latest version of macOS Mojave and Chrome.
tell application "Google Chrome" to set allTabs to a reference to (tabs of windows whose URL contains "mypage.com")
tell application "Google Chrome" to reload allTabs
Or justtell application "Google Chrome" to reload (tabs of windows whose URL contains "mypage.com")
– CJK
Mar 28 at 2:03
add a comment |
The answer submitted by @wch1zpink won't work if there are any Chrome windows open that don't contain at least one tab with a mypage.com
URL. Unfortunately, you need to iterate through the windows:
tell application "Google Chrome" to repeat with W in windows
reload (every tab in W whose URL contains "mypage.com")
end repeat
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368117%2freload-all-chrome-tabs-of-a-certain-page-with-applescript%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This works for me using the latest version of macOS Mojave and Chrome.
tell application "Google Chrome" to set allTabs to a reference to (tabs of windows whose URL contains "mypage.com")
tell application "Google Chrome" to reload allTabs
Or justtell application "Google Chrome" to reload (tabs of windows whose URL contains "mypage.com")
– CJK
Mar 28 at 2:03
add a comment |
This works for me using the latest version of macOS Mojave and Chrome.
tell application "Google Chrome" to set allTabs to a reference to (tabs of windows whose URL contains "mypage.com")
tell application "Google Chrome" to reload allTabs
Or justtell application "Google Chrome" to reload (tabs of windows whose URL contains "mypage.com")
– CJK
Mar 28 at 2:03
add a comment |
This works for me using the latest version of macOS Mojave and Chrome.
tell application "Google Chrome" to set allTabs to a reference to (tabs of windows whose URL contains "mypage.com")
tell application "Google Chrome" to reload allTabs
This works for me using the latest version of macOS Mojave and Chrome.
tell application "Google Chrome" to set allTabs to a reference to (tabs of windows whose URL contains "mypage.com")
tell application "Google Chrome" to reload allTabs
answered Mar 27 at 3:08
wch1zpinkwch1zpink
1,5781 gold badge4 silver badges15 bronze badges
1,5781 gold badge4 silver badges15 bronze badges
Or justtell application "Google Chrome" to reload (tabs of windows whose URL contains "mypage.com")
– CJK
Mar 28 at 2:03
add a comment |
Or justtell application "Google Chrome" to reload (tabs of windows whose URL contains "mypage.com")
– CJK
Mar 28 at 2:03
Or just
tell application "Google Chrome" to reload (tabs of windows whose URL contains "mypage.com")
– CJK
Mar 28 at 2:03
Or just
tell application "Google Chrome" to reload (tabs of windows whose URL contains "mypage.com")
– CJK
Mar 28 at 2:03
add a comment |
The answer submitted by @wch1zpink won't work if there are any Chrome windows open that don't contain at least one tab with a mypage.com
URL. Unfortunately, you need to iterate through the windows:
tell application "Google Chrome" to repeat with W in windows
reload (every tab in W whose URL contains "mypage.com")
end repeat
add a comment |
The answer submitted by @wch1zpink won't work if there are any Chrome windows open that don't contain at least one tab with a mypage.com
URL. Unfortunately, you need to iterate through the windows:
tell application "Google Chrome" to repeat with W in windows
reload (every tab in W whose URL contains "mypage.com")
end repeat
add a comment |
The answer submitted by @wch1zpink won't work if there are any Chrome windows open that don't contain at least one tab with a mypage.com
URL. Unfortunately, you need to iterate through the windows:
tell application "Google Chrome" to repeat with W in windows
reload (every tab in W whose URL contains "mypage.com")
end repeat
The answer submitted by @wch1zpink won't work if there are any Chrome windows open that don't contain at least one tab with a mypage.com
URL. Unfortunately, you need to iterate through the windows:
tell application "Google Chrome" to repeat with W in windows
reload (every tab in W whose URL contains "mypage.com")
end repeat
answered Mar 28 at 2:07
CJKCJK
3,1261 gold badge2 silver badges17 bronze badges
3,1261 gold badge2 silver badges17 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368117%2freload-all-chrome-tabs-of-a-certain-page-with-applescript%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown