Uniemożliwia dostęp do skryptu jako aplikacji internetowej.
Szczegółowa dokumentacja
getUrl()
Zwraca adres URL aplikacji internetowej, jeśli została ona wdrożona, w przeciwnym razie zwraca wartość null. Jeśli aplikacja internetowa jest uruchomiona w trybie programistycznym, zwracany jest URL tego trybu.
// Mail the URL of the published web app.MailApp.sendMail('myself@example.com','My Snazzy App',`My new app is now available at ${ScriptApp.getService().getUrl()}`,);
Powrót
String – adres URL aplikacji internetowej
isEnabled()
Zwraca wartość true, jeśli skrypt jest dostępny jako aplikacja internetowa.
Powrót
Boolean – true, jeśli skrypt jest opublikowany jako aplikacja internetowa; false, jeśli nie
Wycofane metody
disable()
Wycofany. Ta funkcja została wycofana i nie należy jej używać w nowych skryptach.
Ta metoda jest równoważna z otwarciem okna „Opublikuj > Wdróż jako aplikację internetową” i kliknięciem „Wyłącz aplikację internetową”.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eScriptApp\u003c/code\u003e service allows you to control and interact with the deployment of your script as a web application.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the web app's URL using \u003ccode\u003egetUrl()\u003c/code\u003e, check its accessibility status with \u003ccode\u003eisEnabled()\u003c/code\u003e, and previously, disable it using the now deprecated \u003ccode\u003edisable()\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edisable()\u003c/code\u003e method has been deprecated and should no longer be used in new scripts, replaced by the "Publish > Deploy as web app" dialog for disabling.\u003c/p\u003e\n"],["\u003cp\u003eWhen deploying your script as a web app, you can use provided methods to obtain its URL and determine if it's enabled for access.\u003c/p\u003e\n"]]],[],null,[]]