Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > How do I hack Safari to have a keyboard shortcut for a preference checkbox?

How do I hack Safari to have a keyboard shortcut for a preference checkbox?
Thread Tools
Mac Elite
Join Date: Aug 2000
Location: Vancouver B.C.
Status: Offline
Reply With Quote
Oct 19, 2004, 04:51 PM
 
I want to be able to enable/disable "Universal Access" on the fly for min font size on a page. right now I need to go into preferences and then check/uncheck "Universal Access." Having a simple command key would be a massive help as I have to change this countless times each day.

Thanks all
Get busy living or get busy dying
--Stephen King
     
Professional Poster
Join Date: Jul 2001
Location: New York, NY
Status: Offline
Reply With Quote
Oct 19, 2004, 05:15 PM
 
not sure if this works or not, but have you tried just using a shortcut key, and/or assigning a shortcut key for this? (Command-+ perhaps? - I'm not at home to check)

edit:

ps - if you use OmniWeb, it will store font size preferences on a per-site basis, so once you've changed it, you wont have to change it again.
cpac
     
Mac Elite
Join Date: Aug 2000
Location: Vancouver B.C.
Status: Offline
Reply With Quote
Oct 19, 2004, 09:10 PM
 
I don't want it on a per site basis, and I will only use Safari.
Get busy living or get busy dying
--Stephen King
     
Professional Poster
Join Date: Jul 2001
Location: New York, NY
Status: Offline
Reply With Quote
Oct 19, 2004, 10:10 PM
 
Originally posted by Mac Write:
I don't want it on a per site basis, and I will only use Safari.
ok bitter man. What about my first few suggestions?

I've checked and you can hit command-+ (command-= works) to make text larger, and command-minus to make text smaller...
cpac
     
Mac Elite
Join Date: Aug 2000
Location: Vancouver B.C.
Status: Offline
Reply With Quote
Oct 20, 2004, 12:28 AM
 
Originally posted by cpac:
ok bitter man. What about my first few suggestions?

I've checked and you can hit command-+ (command-= works) to make text larger, and command-minus to make text smaller...
First off short cut keys only work for menu items, second cammand +/- is SLOWER then my current method. and I am not bitter you are. Help people with their current app instead of telling them to use a different app. Geesh
Get busy living or get busy dying
--Stephen King
     
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Oct 20, 2004, 01:32 AM
 
Originally posted by Mac Write:
I am not bitter you are. Help people with their current app instead of telling them to use a different app. Geesh
He didn't tell you to use a different app, he merely suggested that if you did use OmniWeb, you could do it with per-site preferences. That's like you asking how to make a hammer screw screws, and being annoyed when he answers with "If you use a screwdriver you could simply turn it"
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Oct 20, 2004, 02:06 AM
 
You could probably use a macro program like iKey combined with GUI AppleScripting to open the preferences window and click the button...

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Professional Poster
Join Date: Jul 2001
Location: New York, NY
Status: Offline
Reply With Quote
Oct 20, 2004, 06:54 AM
 
Originally posted by Mac Write:
First off short cut keys only work for menu items, second cammand +/- is SLOWER then my current method. and I am not bitter you are. Help people with their current app instead of telling them to use a different app. Geesh
no kidding they only work with menu items. They work with the menu items for "make text larger" and "make text smaller" in Safari, which, I thought, was what you wanted to do - but if you're dead set on doing it with Universal Access, then I don't think it can be done short of some scripting/hotkey application combination.

sorry for trying to help...
cpac
     
Mac Elite
Join Date: Aug 2000
Location: Vancouver B.C.
Status: Offline
Reply With Quote
Oct 20, 2004, 01:58 PM
 
Originally posted by cpac:
no kidding they only work with menu items. They work with the menu items for "make text larger" and "make text smaller" in Safari, which, I thought, was what you wanted to do - but if you're dead set on doing it with Universal Access, then I don't think it can be done short of some scripting/hotkey application combination.

sorry for trying to help...
Normal font size is 16, Universal access font size is 24. Having to change that back and forth can get messy. Hopefully Tiger will allow for shortcuts in preferences, or Univseral Access in Safari will become a menu item.
Get busy living or get busy dying
--Stephen King
     
Professional Poster
Join Date: Jul 2001
Location: New York, NY
Status: Offline
Reply With Quote
Oct 20, 2004, 05:41 PM
 
Originally posted by Mac Write:
Normal font size is 16, Universal access font size is 24. Having to change that back and forth can get messy. Hopefully Tiger will allow for shortcuts in preferences, or Univseral Access in Safari will become a menu item.
you can hope/dream -but I sincerely doubt it will happen.

Maybe if you explained the exact process you're going through, and your reasons for going through it, we'd be able to offer alternative suggestions.

Hell, maybe there's a way to hack Safari's preferences so there's a larger increment on the make-text-bigger/small commands so that 16-24 will only be one click...
cpac
     
Mac Elite
Join Date: Aug 2000
Location: Vancouver B.C.
Status: Offline
Reply With Quote
Oct 20, 2004, 11:42 PM
 
I just switched to browsing in full screen at 1152x870 from having a 800x600 window since 1995! I set Universal Access to 24 so I can read the text since I am visually impaired. Since I work on websites, I need to switch off Universal Access so I can see how the site looks. I also turn UA off to check out how difference sites look etc. As of a week ago (no more going Safari>Preferences) I have it down to a science of Cammand+, check/uncheck (since it's the preference pane that is always selected) then Cammand+. to close Preferences. This takes 3 steps and at least 2-4 seconds. Allot of the time I only need to view the page in reqular font for a few seconds. This means to view it for 3 seconds takes 4-8 seconds of setting preferences.

I just thought Fast User Switching would work, but it would be slower.
Get busy living or get busy dying
--Stephen King
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Oct 21, 2004, 12:05 AM
 
Originally posted by Mac Write:
I just switched to browsing in full screen at 1152x870 from having a 800x600 window since 1995! I set Universal Access to 24 so I can read the text since I am visually impaired. Since I work on websites, I need to switch off Universal Access so I can see how the site looks. I also turn UA off to check out how difference sites look etc. As of a week ago (no more going Safari>Preferences) I have it down to a science of Cammand+, check/uncheck (since it's the preference pane that is always selected) then Cammand+. to close Preferences. This takes 3 steps and at least 2-4 seconds. Allot of the time I only need to view the page in reqular font for a few seconds. This means to view it for 3 seconds takes 4-8 seconds of setting preferences.

I just thought Fast User Switching would work, but it would be slower.
Well, in that case, you could assign a key shortcut for the check box by editing the nib file in Interface Builder. You'd still have to use command-, to open the Preferences window, but it'd be just another keystroke to toggle the check box.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Mac Elite
Join Date: Aug 2000
Location: Vancouver B.C.
Status: Offline
Reply With Quote
Oct 21, 2004, 05:23 AM
 
Originally posted by CharlesS:
Well, in that case, you could assign a key shortcut for the check box by editing the nib file in Interface Builder. You'd still have to use command-, to open the Preferences window, but it'd be just another keystroke to toggle the check box.
hmm there's a good idea. Now sure how to mode the nib do add a shortcut (not a programer, not done tweaking in Interface builder either). should make the turnaround time 1-2 seconds - still three keystrokes, but no mouse.

Can you step me through adding the keyboard shortcut in Interface builder? I have an idea but since I have never done more then do up looks in Interface builder. I assume you add select the checkbox then in it's properties you add the shortcut there. But of course I don't know how to do that (or which Nib to edit).

Thanks
Get busy living or get busy dying
--Stephen King
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Oct 21, 2004, 02:22 PM
 
Originally posted by Mac Write:
hmm there's a good idea. Now sure how to mode the nib do add a shortcut (not a programer, not done tweaking in Interface builder either). should make the turnaround time 1-2 seconds - still three keystrokes, but no mouse.

Can you step me through adding the keyboard shortcut in Interface builder? I have an idea but since I have never done more then do up looks in Interface builder. I assume you add select the checkbox then in it's properties you add the shortcut there. But of course I don't know how to do that (or which Nib to edit).

Thanks
It's really easy - just click the check box, choose Show Info (command-shift-I), and add a shortcut key. The nib file you want is AdvancedPreferences.nib, I think, but you can find out by opening nib files until you see the one with the stuff you want to edit in it.

The only thing really to tell you is to make a backup of the nib file before making any changes.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:06 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2