SystemOpen from ScheduledTask
Clash Royale CLAN TAG#URR8PPP
up vote
7
down vote
favorite
I could bet it used to work, now the following code fails 95% of times:
RunScheduledTask[Echo @ SystemOpen @ "https://www.wolfram.com", 1]
Can you reproduce the problem? Is there a workaround?
Reproduced on V11.3, Win10 and OSX Mojave
A support case with the identification [CASE:4177940] was created.
bugs interoperability scheduling
 |Â
show 2 more comments
up vote
7
down vote
favorite
I could bet it used to work, now the following code fails 95% of times:
RunScheduledTask[Echo @ SystemOpen @ "https://www.wolfram.com", 1]
Can you reproduce the problem? Is there a workaround?
Reproduced on V11.3, Win10 and OSX Mojave
A support case with the identification [CASE:4177940] was created.
bugs interoperability scheduling
1
Wild guess: doesn's SystemOpen require an FE? Update: Yes it does, maybe the problem is related to that. I can confirm the problem BTW/
â Szabolcs
4 hours ago
@Szabolcs Yes it does butUsingFrontEnd
does not help. It is not really needed, you can doFrontEndExecute @ FrontEnd`SystemOpen@...
and you will see it gets there (it returnsFalse
though). Weirdly, I think it was working well even in 11.3 because it was part of an app I created and no one complained so far. So maybe a recent paclet update?
â Kubaâ¦
4 hours ago
1
It does not work in 11.1 on macOS High Sierra.
â Szabolcs
4 hours ago
2
There is currently no workaround.
â ihojnicki
3 hours ago
2
@Kuba the FrontEnd has an audit system. It is used by Dynamic, the old web browser plugin, etc... When you call something in the FE that interacts with the system, it wants to know where it came from.ScheduledTask
s breaks that link. Your suggested workaround works but it assumes you have the rights to a.) create the dialog box and b.) have rights to run dynamics in that dialog box. So it would be satisfactory for a lot of use cases, just not all of them.
â ihojnicki
2 hours ago
 |Â
show 2 more comments
up vote
7
down vote
favorite
up vote
7
down vote
favorite
I could bet it used to work, now the following code fails 95% of times:
RunScheduledTask[Echo @ SystemOpen @ "https://www.wolfram.com", 1]
Can you reproduce the problem? Is there a workaround?
Reproduced on V11.3, Win10 and OSX Mojave
A support case with the identification [CASE:4177940] was created.
bugs interoperability scheduling
I could bet it used to work, now the following code fails 95% of times:
RunScheduledTask[Echo @ SystemOpen @ "https://www.wolfram.com", 1]
Can you reproduce the problem? Is there a workaround?
Reproduced on V11.3, Win10 and OSX Mojave
A support case with the identification [CASE:4177940] was created.
bugs interoperability scheduling
bugs interoperability scheduling
edited 3 hours ago
asked 4 hours ago
Kubaâ¦
101k11195496
101k11195496
1
Wild guess: doesn's SystemOpen require an FE? Update: Yes it does, maybe the problem is related to that. I can confirm the problem BTW/
â Szabolcs
4 hours ago
@Szabolcs Yes it does butUsingFrontEnd
does not help. It is not really needed, you can doFrontEndExecute @ FrontEnd`SystemOpen@...
and you will see it gets there (it returnsFalse
though). Weirdly, I think it was working well even in 11.3 because it was part of an app I created and no one complained so far. So maybe a recent paclet update?
â Kubaâ¦
4 hours ago
1
It does not work in 11.1 on macOS High Sierra.
â Szabolcs
4 hours ago
2
There is currently no workaround.
â ihojnicki
3 hours ago
2
@Kuba the FrontEnd has an audit system. It is used by Dynamic, the old web browser plugin, etc... When you call something in the FE that interacts with the system, it wants to know where it came from.ScheduledTask
s breaks that link. Your suggested workaround works but it assumes you have the rights to a.) create the dialog box and b.) have rights to run dynamics in that dialog box. So it would be satisfactory for a lot of use cases, just not all of them.
â ihojnicki
2 hours ago
 |Â
show 2 more comments
1
Wild guess: doesn's SystemOpen require an FE? Update: Yes it does, maybe the problem is related to that. I can confirm the problem BTW/
â Szabolcs
4 hours ago
@Szabolcs Yes it does butUsingFrontEnd
does not help. It is not really needed, you can doFrontEndExecute @ FrontEnd`SystemOpen@...
and you will see it gets there (it returnsFalse
though). Weirdly, I think it was working well even in 11.3 because it was part of an app I created and no one complained so far. So maybe a recent paclet update?
â Kubaâ¦
4 hours ago
1
It does not work in 11.1 on macOS High Sierra.
â Szabolcs
4 hours ago
2
There is currently no workaround.
â ihojnicki
3 hours ago
2
@Kuba the FrontEnd has an audit system. It is used by Dynamic, the old web browser plugin, etc... When you call something in the FE that interacts with the system, it wants to know where it came from.ScheduledTask
s breaks that link. Your suggested workaround works but it assumes you have the rights to a.) create the dialog box and b.) have rights to run dynamics in that dialog box. So it would be satisfactory for a lot of use cases, just not all of them.
â ihojnicki
2 hours ago
1
1
Wild guess: doesn's SystemOpen require an FE? Update: Yes it does, maybe the problem is related to that. I can confirm the problem BTW/
â Szabolcs
4 hours ago
Wild guess: doesn's SystemOpen require an FE? Update: Yes it does, maybe the problem is related to that. I can confirm the problem BTW/
â Szabolcs
4 hours ago
@Szabolcs Yes it does but
UsingFrontEnd
does not help. It is not really needed, you can do FrontEndExecute @ FrontEnd`SystemOpen@...
and you will see it gets there (it returns False
though). Weirdly, I think it was working well even in 11.3 because it was part of an app I created and no one complained so far. So maybe a recent paclet update?â Kubaâ¦
4 hours ago
@Szabolcs Yes it does but
UsingFrontEnd
does not help. It is not really needed, you can do FrontEndExecute @ FrontEnd`SystemOpen@...
and you will see it gets there (it returns False
though). Weirdly, I think it was working well even in 11.3 because it was part of an app I created and no one complained so far. So maybe a recent paclet update?â Kubaâ¦
4 hours ago
1
1
It does not work in 11.1 on macOS High Sierra.
â Szabolcs
4 hours ago
It does not work in 11.1 on macOS High Sierra.
â Szabolcs
4 hours ago
2
2
There is currently no workaround.
â ihojnicki
3 hours ago
There is currently no workaround.
â ihojnicki
3 hours ago
2
2
@Kuba the FrontEnd has an audit system. It is used by Dynamic, the old web browser plugin, etc... When you call something in the FE that interacts with the system, it wants to know where it came from.
ScheduledTask
s breaks that link. Your suggested workaround works but it assumes you have the rights to a.) create the dialog box and b.) have rights to run dynamics in that dialog box. So it would be satisfactory for a lot of use cases, just not all of them.â ihojnicki
2 hours ago
@Kuba the FrontEnd has an audit system. It is used by Dynamic, the old web browser plugin, etc... When you call something in the FE that interacts with the system, it wants to know where it came from.
ScheduledTask
s breaks that link. Your suggested workaround works but it assumes you have the rights to a.) create the dialog box and b.) have rights to run dynamics in that dialog box. So it would be satisfactory for a lot of use cases, just not all of them.â ihojnicki
2 hours ago
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
4
down vote
Here is a temporary fix:
RunScheduledTask[
CreateDialog[
Dynamic[SystemOpen @ "https://www.wolfram.com"; NotebookClose]
]
, 1
]
CreateDialog
seems to work so we launch it and as soon as it appears Dynamic
runs SystemOpen
and closes parent dialog. On faster machines you may not even notice the dialog and otherwise the browser popup will be distracting anyway.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
Here is a temporary fix:
RunScheduledTask[
CreateDialog[
Dynamic[SystemOpen @ "https://www.wolfram.com"; NotebookClose]
]
, 1
]
CreateDialog
seems to work so we launch it and as soon as it appears Dynamic
runs SystemOpen
and closes parent dialog. On faster machines you may not even notice the dialog and otherwise the browser popup will be distracting anyway.
add a comment |Â
up vote
4
down vote
Here is a temporary fix:
RunScheduledTask[
CreateDialog[
Dynamic[SystemOpen @ "https://www.wolfram.com"; NotebookClose]
]
, 1
]
CreateDialog
seems to work so we launch it and as soon as it appears Dynamic
runs SystemOpen
and closes parent dialog. On faster machines you may not even notice the dialog and otherwise the browser popup will be distracting anyway.
add a comment |Â
up vote
4
down vote
up vote
4
down vote
Here is a temporary fix:
RunScheduledTask[
CreateDialog[
Dynamic[SystemOpen @ "https://www.wolfram.com"; NotebookClose]
]
, 1
]
CreateDialog
seems to work so we launch it and as soon as it appears Dynamic
runs SystemOpen
and closes parent dialog. On faster machines you may not even notice the dialog and otherwise the browser popup will be distracting anyway.
Here is a temporary fix:
RunScheduledTask[
CreateDialog[
Dynamic[SystemOpen @ "https://www.wolfram.com"; NotebookClose]
]
, 1
]
CreateDialog
seems to work so we launch it and as soon as it appears Dynamic
runs SystemOpen
and closes parent dialog. On faster machines you may not even notice the dialog and otherwise the browser popup will be distracting anyway.
answered 3 hours ago
Kubaâ¦
101k11195496
101k11195496
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f184692%2fsystemopen-from-scheduledtask%23new-answer', 'question_page');
);
Post as a guest
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
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
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
1
Wild guess: doesn's SystemOpen require an FE? Update: Yes it does, maybe the problem is related to that. I can confirm the problem BTW/
â Szabolcs
4 hours ago
@Szabolcs Yes it does but
UsingFrontEnd
does not help. It is not really needed, you can doFrontEndExecute @ FrontEnd`SystemOpen@...
and you will see it gets there (it returnsFalse
though). Weirdly, I think it was working well even in 11.3 because it was part of an app I created and no one complained so far. So maybe a recent paclet update?â Kubaâ¦
4 hours ago
1
It does not work in 11.1 on macOS High Sierra.
â Szabolcs
4 hours ago
2
There is currently no workaround.
â ihojnicki
3 hours ago
2
@Kuba the FrontEnd has an audit system. It is used by Dynamic, the old web browser plugin, etc... When you call something in the FE that interacts with the system, it wants to know where it came from.
ScheduledTask
s breaks that link. Your suggested workaround works but it assumes you have the rights to a.) create the dialog box and b.) have rights to run dynamics in that dialog box. So it would be satisfactory for a lot of use cases, just not all of them.â ihojnicki
2 hours ago