Re: Trouble with appearance preferences of System Events
Re: Trouble with appearance preferences of System Events
- Subject: Re: Trouble with appearance preferences of System Events
- From: Brian Christmas <email@hidden>
- Date: Thu, 29 Oct 2009 21:08:24 +1100
On 29/10/2009, at 7:43 PM, Steven Audette wrote: Hello,
I'm total confused by the error message generated by this simple code:
Error: "Can't set automatic of appearance preferences to automatic of appearance preferences"
tell application "System Events" tell appearance preferences set font smoothing style to automatic end tell end tell
If I "get font smoothing style" and look at it, it's a constant "automatic", so I'm not sure why it doesn't work to set it to the constant automatic.
Any ideas?
Regards, Steve
G'day again Steve
You're using a variable I think, in the word 'automatic'. Enclose it in quotes to make it a constant.
tell application "System Events" set font smoothing style of appearance preferences to "automatic" end tell
Regards
Santa |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden