I want to refresh the script [Fetch New data] when I Shift + Click
on the JavaScript menubar item
Is that possible/Can it be added?
I want to refresh the script [Fetch New data] when I Shift + Click
on the JavaScript menubar item
you can add a if condition to the standard left click action sequence and check the currently_pressed_keyboard_keys variable
Got it, it's working, thanks
Oh, and is there an action to refresh the output of the script on Shift + Left Click
?
You can use the update_menubar_item apple script function to update the item. However there is currently no function to explicitly retrigger the script, so you'd need to create a separate script that updates the item.
tell application "BetterTouchTool" to update_menubar_item "E2F16C7E-C2E4-4898-BB8C-21D3C653B843" text "new text"
It would be very helpful to have it as an action to just retrigger the script.
For now I'm using this AppleScript with my original script embeded for the ''text" value.
Thanks for the support!