반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 파이썬
- Redshift
- Kotlin
- list
- SQL
- c#
- math
- Apache
- string
- PySpark
- Java
- dataframe
- Python
- PostgreSQL
- Github
- django
- array
- google apps script
- hive
- gas
- GIT
- PANDAS
- Google Spreadsheet
- Google Excel
- numpy
- Excel
- Mac
- Tkinter
- matplotlib
Archives
- Today
- Total
목록file.setName (1)
달나라 노트
Google Apps Script : file.setName (파일 이름 바꾸기, 파일 이름 변경)
Google Apps Script에서 setName() method는 보통 어떤 객체의 이름을 바꾸는 기능을 합니다. 이번에는 setName() method를 이용해서 파일의 이름을 바꿔봅시다. (본 예시에선 spreadsheet 파일의 이름을 바꿀 예정이지만 이는 다른 파일에도 적용할 수 있습니다.) Syntax file.setName(name) 사용법은 간단합니다. file 객체를 얻어온 후, file 객체에 setName() method를 적용시킵니다. 그러면 setName() method는 해당 파일의 이름을 parameter로 주어진 name으로 변경시킵니다. 위 이미지를 보면 my_test라는 spreadsheet 파일이 있습니다. 위 파일의 ID는 abcde12345라고 가정합니다. (파일 ..
Google Apps Script
2022. 11. 21. 22:16