Solved

How do I permanently Safari's Develop User Agent Default option to IE?

Posted on 2016-08-04
5
81 Views
Last Modified: 2016-08-09
Hi Guys,
I need my Mac users to be able to run Safari in IE mode all the time.
This is a requirement for a new system of mandatory use, so please let's not get into the discussion of the why do I need to do this, and let's get down to business on the how do I do it.

I was reading that I need to change the following configuration file
~/Library/Preferences/com.apple.safari.plist

Problem is that this file isn't there.
I go to the folder above and I see a whole bunch of "com.apple.*" files but none of them is the safari file.

Where can I find this file?
How do I permanently Safari's Develop User Agent Default option to IE?

Thanking you in advance,
Cargex
0
Comment
Question by:cargex
  • 3
5 Comments
 
LVL 53

Expert Comment

by:strung
ID: 41742910
Are you sure you are looking in  

~/Library/Preferences/

and not

/Library/Preferences/

?

The Tilde (~) signifies the users home folder.  i.e.

~  means /users/username
0
 
LVL 28

Expert Comment

by:serialband
ID: 41743007
If the user hasn't started Safari, the file won't exist yet.  Placing the file in ~/Library/Preferences/ sets it for the local user.  If you're logging in as yourself, then ~ expands to your home folder, not the user account folder that you want to place the setting in.

You can create a setting in your own account, then copy the file to other user accounts and change the ownership and permissions.  To specify the user's folder, you use ~username for their home forlder.  (eg.   ~username/Library/Preferences/, ~cargex/Library/Preferences/,  ~serialband/Library/Preferences/ )


You can also place the file in /Library/Preferences/ to make it a systemwide default setting for any user that logs in.  Just create the setting you want, copy it to /Library/Preferences/com.apple.safari.plist, then make sure the file has the read permissions for all users.
0
 

Author Comment

by:cargex
ID: 41743201
Guys,
Where can I find this file.
I have looked here
/Users/cargex/Library/Preferences

I think Serialband is right if I can find one of these files I can copy the file and make it work for all the users system wide.
The question is:
Where is this file???
0
 

Accepted Solution

by:
cargex earned 0 total points
ID: 41743306
To whom it may concern:
I found this command does the trick:

defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (Windows NT 6.3; Win64, x64; Trident/7.0; rv:11.0) like Gecko\""
0
 

Author Closing Comment

by:cargex
ID: 41748479
Unfortunately none of the comments where conclusive.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Anyone able to visit udemy.com? 3 32
Mac neophyte...printer issue... 13 85
WordPress Header Issue 9 37
ms/access hyperlink/ftp 7 35
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now