# Get Bear script faster and open note in new window

**URL:** https://discourse.hookproductivity.com/t/get-bear-script-faster-and-open-note-in-new-window/5997
**Category:** Share Hookmark automation
**Created:** [December 12, 2022, 6:41pm UTC](https://discourse.hookproductivity.com/t/get-bear-script-faster-and-open-note-in-new-window/5997 "2022-12-12T18:41:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![weuu](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/weuu/32/1496_2.png) [@weuu](https://discourse.hookproductivity.com/u/weuu)
#### Post date: [December 12, 2022, 6:41pm UTC](https://discourse.hookproductivity.com/t/get-bear-script-faster-and-open-note-in-new-window/5997/1 "2022-12-12T18:41:11Z")

</div>

get name (copy API Token from menubar “Help” and pastes to XXXXXX)

```auto
open location "bear://x-callback-url/open-note?selected=yes&token=XXXXXX&x-success=hook://title-callback/title///"

```

.

get address (If the system is not in English, please replace the menu name.)

```auto
tell application "System Events"
	tell process "Bear"
		click menu item "Copy Link To Note" of menu "Note" of menu bar 1
	end tell
end tell

get the clipboard & "&new_window=yes"

```
