How to change homepage in Safari 9 using bash or API?

He there,


In previous versions of Safari (8,7,etc.) it was possible to change Safari's HomePage using bash or objective c or similar. E.g.

it was possible to chaage it using code like this:


defaults write ~/Library/Preferences/com.apple.Safari HomePage -string "https://myhomepage.com"


Now it does not work in Safari 9!!! So, how can this be changed outside Safari.


Thanks,

Davor

It seems that it does not work under Safari 9.1.2. In the older versions, e.g. 9.1 oder 9.0 it works !!!

Thanks,

Davor

I don't have exact code, but everything can be done using AppleScript.

How to change homepage in Safari 9 using bash or API?
 
 
Q