system.vision.openURL
This function replaces system.net.openURL. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility.
This function is used in Python Scripting.
Descriptionβ
Opens the given URL or URI scheme outside of the currently running Client in the application the host operating system deems appropriate. For example, the URL "http://www.google.com" will open in the default web browser, whereas "file://C:\\Report.pdf" will open in Adobe Acrobat. The Windows network-share style path like "\\\\Fileserver\\resources\\machine_manual.pdf" will work in Windows as well.
Be careful not to use this function in a full-screen client, as launching an external program will break your full-screen exclusive mode.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.vision.openURL(url)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | url | The URL to open in a web browser or other appropriate application. |
Returnsβ
Nothing
Scopeβ
Vision Client
Code Examplesβ
# This code will open a web page
system.vision.openURL("http://www.google.com")
# This code will open a PDF document located at C: on the client computer
# Note the double backslashes are needed because backslash is the escape character
# for Python
system.vision.openURL("file://C:\\myPDF.pdf")
# This code would open a PDF document from a Windows-based file server
# Note the double backslashes are needed because backslash is the escape character
# for Python
system.vision.openURL("\\\\MyServer\\MyDocs\\document.pdf")