-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9109e46
commit 5406e00
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
def close(app_name) -> bool: | ||
""" | ||
:param app_name: str: | ||
""" | ||
try: | ||
from AppOpener import close | ||
close(app_name, throw_error=True) | ||
return True | ||
except: | ||
return False | ||
|
||
|
||
|
||
tool_name = "app.close" | ||
tool_obj = close | ||
tool_requirements = ["AppOpener==1.7"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
def open(app_name) -> bool: | ||
""" | ||
:param app_name: str: | ||
""" | ||
try: | ||
from AppOpener import open | ||
open(app_name, throw_error=True) | ||
return True | ||
except: | ||
return False | ||
|
||
|
||
|
||
tool_name = "app.open" | ||
tool_obj = open | ||
tool_requirements = ["AppOpener==1.7"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import webbrowser | ||
|
||
|
||
def open_url(url) -> bool: | ||
""" | ||
:param url: str: | ||
""" | ||
try: | ||
webbrowser.open(url) | ||
return True | ||
except: | ||
return False | ||
|
||
|
||
|
||
tool_name = "browser.open_url" | ||
tool_obj = open_url | ||
tool_requirements = [] |