• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trouble with appearance preferences of System Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Trouble with appearance preferences of System Events
      • From: "email@hidden" <email@hidden>
References: 
 >Trouble with appearance preferences of System Events (From: Steven Audette <email@hidden>)

  • Prev by Date: Re: Trouble with dock preferences of System Events
  • Next by Date: Re: Trouble with appearance preferences of System Events
  • Previous by thread: Trouble with appearance preferences of System Events
  • Next by thread: Re: Trouble with appearance preferences of System Events
  • Index(es):
    • Date
    • Thread