اسکریپت های مستقل
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک اسکریپت مستقل هر اسکریپتی است که به یک فایل برگههای Google، اسناد، اسلایدها یا فرمها محدود نشده باشد. این اسکریپت ها در میان فایل های شما در Google Drive ظاهر می شوند.
ایجاد یک اسکریپت مستقل
ساده ترین راه برای ایجاد یک اسکریپت مستقل این است که از script.google.com
بازدید کنید و در بالا سمت چپ، روی add پروژه جدید کلیک کنید.
شما همچنین می توانید اسکریپت های مستقل از Google Drive ایجاد کنید. به Google Drive بروید و روی New > More > Google Apps Script کلیک کنید.
اجرای یک اسکریپت مستقل
برای اجرای یک تابع از ویرایشگر اسکریپت، در بالا، نام تابعی را که میخواهید اجرا کنید انتخاب کنید و روی Run کلیک کنید.
استفاده از یک اسکریپت مستقل
بسیاری از اسکریپتهای مستقل، اسکریپتهای کاربردی هستند - به عنوان مثال، برای جستجوی Google Drive خود برای فایلهای قدیمی که نام آنها حاوی "بدون عنوان" است تا بتوانید آنها را حذف کنید.
یک اسکریپت مستقل همچنین می تواند به عنوان یک برنامه وب مستقر شود یا تنظیم شود تا به طور خودکار از یک تریگر قابل نصب اجرا شود.
اسکریپت های مستقل Apps Script برای توسعه افزودنی های سبک وزن برای خود، تیم یا سازمان شما مناسب هستند. برای پروژههای بزرگتر، ایجاد یک افزونه Google Workspace را در یک محیط زمان اجرا متفاوت در نظر بگیرید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eStandalone Google Apps Scripts are independent scripts not tied to any specific Google file like Sheets, Docs, or Slides, and they reside in your Google Drive.\u003c/p\u003e\n"],["\u003cp\u003eYou can effortlessly create a standalone script by visiting script.google.com or through Google Drive by navigating to New > More > Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eStandalone scripts are often utilized as utilities to automate tasks, such as searching and deleting files, or deployed as web apps or triggered automatically.\u003c/p\u003e\n"],["\u003cp\u003eThey can be run directly from the script editor by selecting the desired function and clicking Run.\u003c/p\u003e\n"],["\u003cp\u003eAdditionally, add-ons for Google Workspace can now be published using standalone scripts.\u003c/p\u003e\n"]]],[],null,["# Standalone Scripts\n\nA standalone script is any script that is not\n[bound to a Google Sheets, Docs, Slides, or\nForms file](/apps-script/guides/bound). These scripts appear\namong your files\nin Google Drive.\n\nCreating a standalone script\n----------------------------\n\nThe easiest way to create a standalone script is to visit\n[`script.google.com`](https://script.google.com)\nand at the top left, click add**New project**.\n\nYou can also create standalone scripts from Google Drive. Go to [Google Drive](https://drive.google.com)\nand click **New \\\u003e More \\\u003e Google Apps Script**.\n\nRunning a standalone script\n---------------------------\n\nTo run a function from the script editor, at the top, select the name\nof the function you want to execute and click **Run**.\n\nUsing a standalone script\n-------------------------\n\nMany standalone scripts are utility scripts --- for example, to\n[search your Google Drive for old files whose name contains \"untitled\"](/apps-script/reference/drive/drive-app#searchFiles(String))\nso that you can delete them.\n\nA standalone script can also be deployed as a [web app](/apps-script/guides/web)\nor set up to run automatically from an\n[installable trigger](/apps-script/guides/triggers/installable).\n\nApps Script standalone scripts are suitable for lightweight\nadd-on development for yourself, your team, or your\norganization. For larger projects, consider building a Google Workspace\nadd-on on a [different runtime](/workspace/add-ons/guides/alternate-runtimes)\nenvironment."]]