Context menu - Safari bookmarks

Hallo @Andreas_Hegenberg

I have create a context menu with all my Safari bookmarks, looks fine, like this:

an Apple script creates first a json file with the title, url, folder structure etc which is then used by "Show Custom Context Menu (NEW)":

Somehow a click on an URL does not open it in Safari.
May be there is something wrong in the JSON, could you give me a hint ?

Example

[{
	"title": "BookmarksBar",
	"icon": "sfsymbol::folder",
	"subitems": [{
		"title": "iCloud",
		"icon": "sfsymbol::bookmark",
		"bttMenuItemActionType": 3,
		"bttOpenUrlAction": "https://www.icloud.com/"
	}, {
		"title": "Gemini",
		"icon": "sfsymbol::bookmark",
		"bttMenuItemActionType": 3,
		"bttOpenUrlAction": "https://gemini.google.com/app"
	}, 
	
etc. etc etc



what is bttMenuItemActionType bttOpenUrlAction do you somehow convert that to an action?

Here is an example for using the predefined action "open url":

{
  "title": "Gemini",
  "icon": "sfsymbol::bookmark",
  "action": {
    "btt": "trigger_action",
    "args": {
      "json": {
          BTTPredefinedActionType: 59,
          BTTOpenURL: 'https://gemini.google.com/app',
          BTTOpenURLBrowser: 'Default',
      }
    }
  }
}
1 Like

ah, thanks!
I used ChatGPT - I guess it needs some more training :thinking: