1vp_spec( 2 :menuTitle => "R New Page With Current Date", 3 :shortcutKey => 'j', 4 :shortcutMask => [:command, :control] ) 5 6vp_action do |windowController| 7 8 pageName = Time.now.strftime("%Y.%m.%d") 9 windowController.document.createNewPageWithName(pageName) 10 windowController.textView.insertText(pageName) 11 12end 13