Solved

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

Posted on 2016-08-04
5
440 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of new and distinct gadgets are making their appearance every other day. The latest gadget that has wooed the attention of all gadget lovers and non gadget lovers alike is the Smartwatch. This tiny gadget is capable of offering live access to …
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.

713 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