Solved

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

Posted on 2016-08-04
5
472 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 29

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
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.
Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

732 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