I downloaded the preset of app switcher and asked chatgpt to modify the script according to my needs .....but then I have this problem .....the circles turned to this squares ....
what chatgpt gave me is this :-
async function retrieveJSON() {
let menuItems = [];
// Define music services and their actions (no titles at all)
let musicApps = [
{
action: 'js::(async () => {runShellScript({script: "open -a Music"})})()',
icon: 'path::/Users/mayankkaushik/Documents/Image-Line/FL Studio/Projects/Templates/my templates/icons/apple-music.png::width@@40'
},
{
action: 'js::(async () => {runShellScript({script: "open -a Spotify"})})()',
icon: 'path::/Users/mayankkaushik/Documents/Image-Line/FL Studio/Projects/Templates/my templates/icons/spotify.png::width@@40'
},
{
action: 'js::(async () => {runShellScript({script: "open \\"https://soundcloud.com/recipesofromiyo\\" "})})()',
icon: 'path::/Users/mayankkaushik/Documents/Image-Line/FL Studio/Projects/Templates/my templates/icons/soundcloud.png::width@@40'
}
];
// Define FL Studio templates (no titles at all)
let templates = [
{
action: 'js::(async () => {runShellScript({script: "open \\"/Users/mayankkaushik/Documents/Image-Line/FL Studio/Projects/Templates/my templates/Main_template.flp\\" "})})()',
icon: 'path::/Users/mayankkaushik/Documents/Image-Line/FL Studio/Projects/Templates/my templates/icons/Main_template.png::width@@40'
},
{
action: 'js::(async () => {runShellScript({script: "open \\"/Users/mayankkaushik/Documents/Image-Line/FL Studio/Projects/Templates/my templates/Empty.flp\\" "})})()',
icon: 'path::/Users/mayankkaushik/Documents/Image-Line/FL Studio/Projects/Templates/my templates/icons/Empty.png::width@@40'
}
];
// Combine both lists
menuItems = [...musicApps, ...templates];
// Return the JSON output for BTT
return JSON.stringify(menuItems);
}