• 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: Help with system preferences...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with system preferences...


  • Subject: Re: Help with system preferences...
  • From: kai <email@hidden>
  • Date: Wed, 8 Mar 2006 21:31:45 +0000


On 8 Mar 2006, at 20:39, Bernardo Höhl wrote:

Kai,

I got this:

System Events got an error: NSReceiverEvaluationScriptError: 4

Bernardo

================
On 8 Mar 2006, at 4:04 PM, kai wrote:

tell application "System Preferences" to reveal anchor ¬
    "fax" of pane "com.apple.preference.printfax"
tell application "System Events" to tell checkbox ¬
    "Receive faxes on this computer" of tab group 1 of window 1 ¬
    of process "System Preferences" to if value is 1 then click
quit application "System Preferences"

Bernado - in your original message (8 Mar 2006, at 13:57), you wrote:

Open system preferences and untick the box under > print and fax > faxing > "Receive faxes on this computer"...

That suggested to me that your default language setting is English. Or perhaps it's Portuguese? If so, you probably need to modify the script accordingly - to something like:


----------------

tell application "System Preferences" to reveal anchor ¬
	"fax" of pane "com.apple.preference.printfax"
tell application "System Events" to tell checkbox ¬
	"Receber faxes neste computador" of tab group 1 of window 1 ¬
	of process "System Preferences" to if value is 1 then click
quit application "System Preferences"

----------------

Or you might try something more independent of localization issues:

----------------

tell application "System Preferences" to reveal anchor ¬
	"fax" of pane "com.apple.preference.printfax"
tell application "System Events" to tell checkbox ¬
	1 of tab group 1 of window 1 ¬
	of process "System Preferences" to if value is 1 then click
quit application "System Preferences"

----------------

As long as any system/localization variations are considered, all versions work here (Mac OS: 10.4.5, AS version: 1.10.3).

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Help with system preferences...
      • From: Bernardo Höhl <email@hidden>
References: 
 >Help with system preferences... (From: Bernardo Höhl <email@hidden>)
 >Re: Help with system preferences... (From: kai <email@hidden>)
 >Re: Help with system preferences... (From: Bernardo Höhl <email@hidden>)

  • Prev by Date: Re: Help with system preferences...
  • Next by Date: Re: Help with system preferences...
  • Previous by thread: Re: Help with system preferences...
  • Next by thread: Re: Help with system preferences...
  • Index(es):
    • Date
    • Thread