Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

oli294

macrumors newbie
Original poster
Apr 25, 2020
6
2
Hi !

For an unknot reason, each time I restart my MBP, the volume icons in the task bar disappear. I need to go in the setting to activate the option again and again.

1587820990891.png


I try to fin a workaround using Automator. I want to create a shell command that I will add in the the login items. I've tried this command but it doesn't work :
sudo open '/System/Library/CoreServices/Menu Extras/Volume.menu'

do you have any idea ?

Thanks !
 
tried this command but it doesn't work :
sudo open '/System/Library/CoreServices/Menu Extras/Volume.menu'
You don't need sudo, you can make an app in Script Editor with this code
Code:
do shell script "open /System/Library/CoreServices/Menu\\ Extras/Volume.menu"
and add it to the Login items.
I would try to solve the problem in another way first, try to delete ~/Library/Preferences/com.apple.systemuiserver.plist and see if the setting is correctly saved in the new plist.
 
You don't need sudo, you can make an app in Script Editor with this code
Code:
do shell script "open /System/Library/CoreServices/Menu\\ Extras/Volume.menu"
and add it to the Login items.
I would try to solve the problem in another way first, try to delete ~/Library/Preferences/com.apple.systemuiserver.plist and see if the setting is correctly saved in the new plist.
Even easier, just drag the Volume menu extra into login items. There’s no need for a script here.
I do agree that the proper fix is to sort out why it’s not working as expected, however.
 
You don't need sudo, you can make an app in Script Editor with this code
Code:
do shell script "open /System/Library/CoreServices/Menu\\ Extras/Volume.menu"
and add it to the Login items.
I would try to solve the problem in another way first, try to delete ~/Library/Preferences/com.apple.systemuiserver.plist and see if the setting is correctly saved in the new plist.

I've tried but it doesn't work.
[automerge]1587843623[/automerge]
You don't need sudo, you can make an app in Script Editor with this code
Code:
do shell script "open /System/Library/CoreServices/Menu\\ Extras/Volume.menu"
and add it to the Login items.
I would try to solve the problem in another way first, try to delete ~/Library/Preferences/com.apple.systemuiserver.plist and see if the setting is correctly saved in the new plist.

Thanks. I tried to delete the mentioned file. But it's not there. My MacBook is controlled using JAMF to connect to my business. Maybe it control me prefs....

Thanks again if you have any ideas !
 

Attachments

  • 1587843401650.png
    1587843401650.png
    1.2 MB · Views: 144
so any workaround to get the volume when system start like open /System/Library/CoreServices/Menu\\ Extras/Volume.menu"
 
OK finale I did what you suggest
"Even easier, just drag the Volume menu extra into login items. There’s no need for a script here.
I do agree that the proper fix is to sort out why it’s not working as expected, however." and it's working as a workaround.

So bad that jams reste all my settings at each restarts. Thanks for your taught on that !
 
OK finale I did what you suggest
"Even easier, just drag the Volume menu extra into login items. There’s no need for a script here.
I do agree that the proper fix is to sort out why it’s not working as expected, however." and it's working as a workaround.

So bad that jams reste all my settings at each restarts. Thanks for your taught on that !
Jamf doesn’t have to have that behavior- it’s the decision of the administrators of the computer you’re using.
 
Last edited:
Even easier, just drag the Volume menu extra into login items. There’s no need for a script here.

I was curious about this and I am not sure how to accomplish this. Could you clarify this more as I have tried to drag the volume indication from the menu bar but it won’t allow me to do this.
 
I was curious about this and I am not sure how to accomplish this. Could you clarify this more as I have tried to drag the volume indication from the menu bar but it won’t allow me to do this.
You need to drag the actual Menu Extra file from /System/Library/CoreServices/Menu Extras.
 
Glad it worked without the script. For clarity, you've tried with the wrong app :) That's Automator, the script was meant for Script Editor (Éditeur de script https://support.apple.com/fr-fr/guide/script-editor/welcome/mac )
This kind of app is usefull when trying to run multiple commands/apps at login.
I’ve used Automator to make an app that starts up my daily work apps- again, no script required for that either. The same app would open the Volume Menu Extra, or any other file, just as easily.
 
I’ve used Automator to make an app that starts up my daily work apps- again, no script required for that either. The same app would open the Volume Menu Extra, or any other file, just as easily.
I was thinking of some of the commands I use (networksetup -setnetworkserviceenabled Ethernet on) and about the fact that it’s easier, for me at least, to add or comment out a line in the main.scpt from an app created with Script Editor. But it’s a good thing that we have options, to each his/her own :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.