Sunday, April 21, 2019

#1 2019-02-19 10:17:21 am

Registered: 2019-02-15
Posts: 2

Applescript to change homepage

I ran the write command to change the safari homepage and then I ran the read command and it showed the new homepage. When I open safari, it didn't change.

defaults write ~/Library/Preferences/ HomePage http://mysite
defaults read~/Library/Preferences/ HomePage



#2 2019-02-20 05:41:28 am

Nigel Garvey
From:: Warwickshire, England
Registered: 2002-11-20
Posts: 4850

Re: Applescript to change homepage


Where did you get those commands? There's no "" domain on my Mojave system. There is one on my El Capitan machine, but it contains neither a "HomePage" key nor any mention of my Safari home page. On my Mojave system, it's possible to read the home page setting from "", but setting it that way doesn't seem to be entirely effective — which is good. It would be an obvious security issue if a script were able to change a brower's default home page!




Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)