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 > Developer Center > Wrap script around a Carbon app?

Wrap script around a Carbon app?
Thread Tools
Mac Enthusiast
Join Date: Mar 2002
Status: Offline
Reply With Quote
Aug 27, 2002, 07:17 PM
 
I just upgraded to Jaguar. The only thing I don't like is the appearance of anti-aliased text at small sizes. Unfortunately, it seems that when I raise the threshold for anti-aliasing, in certain applications the font spacing gets all screwed up. Quicken 2002 Deluxe is the worst offender. Basically I've decided I'd rather have the text anti-aliased in Quicken rather than being poorly spaced. All other apps are acceptable without anti-aliasing. So what I want to do is temporarily lower the threshold for anti-aliasing when I run Quicken.

Now it turns out that the following Unix shell command in Jaguar:

defaults write NSGlobalDomain AppleAntiAliasingThreshold 8

does the same thing as setting this threshold in the General Preferences panel. So it would seem that I ought to be able to do the following:

defaults write NSGlobalDomain AppleAntiAliasingThreshold 8
<run Quicken>
defaults write NSGlobalDomain AppleAntiAliasingThreshold 14

Now, how do I do this?? I can't figure out any way to run Quicken from the command line. What's the easiest way to write a script (AppleScript or Unix script) that does the equivalent of the above?

Thanks!
     
Mac Enthusiast
Join Date: Nov 2001
Status: Offline
Reply With Quote
Aug 28, 2002, 01:32 AM
 
open /Applications/Quicken.app

You might try setting the threshold just for Quicken's domain, though it might not respect it. That is:
defaults com.whatever.Quicken AppleAntiAliasingThreshold 14

...replacing the correct identifier above.
     
Boochie  (op)
Mac Enthusiast
Join Date: Mar 2002
Status: Offline
Reply With Quote
Aug 28, 2002, 07:44 AM
 
Originally posted by Ibson:
open /Applications/Quicken.app

You might try setting the threshold just for Quicken's domain, though it might not respect it. That is:
defaults com.whatever.Quicken AppleAntiAliasingThreshold 14

...replacing the correct identifier above.
Thanks! I'll give both of these a try.
     
   
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 06:13 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