Google App Script를 발견했습니다. 그 잠재력에 매우 매료되었습니다.Google 문서에 맞춤 메뉴 추가
맞춤 메뉴를 추가하여 Google 문서를 개선하고 싶습니다. 스프레드 시트에서이 방법을 사용하는 방법을 많이 찾았지만 문서에는 사용할 수 없습니다.
나는 아무것도 못 찾았나요?
Google App Script를 발견했습니다. 그 잠재력에 매우 매료되었습니다.Google 문서에 맞춤 메뉴 추가
맞춤 메뉴를 추가하여 Google 문서를 개선하고 싶습니다. 스프레드 시트에서이 방법을 사용하는 방법을 많이 찾았지만 문서에는 사용할 수 없습니다.
나는 아무것도 못 찾았나요?
에서 : https://developers.google.com/apps-script/reference/document/document-app#getActiveDocument()
// Add a custom menu to the active document, including a separator and a sub-menu.
function onOpen() {
DocumentApp.getUi()
.createMenu('My Menu')
.addItem('My Menu Item', 'myFunction')
.addSeparator()
.addSubMenu(DocumentApp.getUi().createMenu('My Submenu')
.addItem('One Submenu Item', 'mySecondFunction')
.addItem('Another Submenu Item', 'myThirdFunction'))
.addToUi();
}
문서를 스크립트 용 컨테이너로 사용할 수 없으므로 메뉴 항목을 문서에 추가 할 수 없습니다.
당신이 구독 할 수있는 open issue on the issue tracker가 있습니다.
나는 트위터에 직접 선택한 컨텐츠를 보낼 수 있도록하고 싶습니다. 이것을 관리 할 생각이 있습니까? 도움 주셔서 감사합니다. –
@ user1506051 :이 [article] (https://developers.google.com/apps-script/articles/twitter_tutorial)은 GAS에서 Twitter로 작업을 시작하는 데 도움이 될 것입니다. – megabyte1024
이 답변은 사용되지 않습니다. –