Solved

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

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Steve Jobs once said that Blu-ray is "a bag of hurt". As Macs users well known, things haven’t settled down (at least not from Apple’s perspective). Several years after that comment, Mac OS X still doesn’t support Blu-ray playback, nor has any Mac s…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
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.

760 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

18 Experts available now in Live!

Get 1:1 Help Now