revGoURL

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
revGoURL <URL>
Summary

Used to open a URL in a web browser.

Introduced1.0
Changes

The revGoURL command was deprecated in version 2.9 and should not be used in new code. To open a url from within a stack, use the launch url command instead.

Deprecated2.9
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
URL

An expression that evaluates to a URL.

Example
revGoURL "http://www.example.org/info.html"
revGoURL "http://me:secret@www.example.com/secret-plan/"
revGoURL it
revGoURL "mailto:guido@sales.example.com"
revGoURL "file:///Folder/file.html"
RelatedMessage: startup, openBackground, preOpenStack, openStack
Library: Common library, library
Keyword: URL, file
Glossary: application, AppleScript, main stack, handler, message, group, Mac OS, standalone application, Apple Event, command, browser
Function: URLEncode
Command: revMail, launch url
Object: stack
Description

The revGoURL command was previously used to open a web page in the user's browser application from within a stack.

On Windows and Linux systems, the URL is opened by the default system application for the url type. For "http" URLs, this will be the system default web browser, for "file" URLs it will be the default application associated with that file.

On Mac OS and OS X systems, the URL is opened in the application the user has set for that URL protocol in the Internet control panel (or, for older system versions, Internet Config). For example, "mailto:" URLs are opened in the email program, "http:" URLs are opened in the web browser, and so on.

Important: On Mac OS systems, the revGoURL command requires that AppleScript be installed and that the GURL AppleEvent be supported. GURL support is included in Mac OS 8.5 or later, and is available for Mac OS 8.0 and 8.1 if the "Internet Scripting" file is installed in the "Scripting Additions" folder inside the Extensions folder. (This file is installed by the Internet Access installer on the 8.0 installation CD.) The revGoURL command is not supported for Mac OS versions before 8.0.

Important: If the URL contains quotes, it is necessary either to URLEncode it or to replace the quotes with "%22", or unexpected behavior may be experienced.

Note: When included in a standalone application, the Commonlibrary is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the revGoURL command is not yet available. This may affect attempts to use this command in startup, preOpenStack, openStack, or preOpenCardhandlers(message) in the main stack. Once the application has finished starting up, the library is available and the revGoURL command can be used in any handler.

Tagsnetworking