Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
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 …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

813 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

16 Experts available now in Live!

Get 1:1 Help Now