• 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: Bernardo Höhl <email@hidden>
  • Date: Wed, 8 Mar 2006 18:52:31 -0300

My default language is english.

I guess the problem is at "window 1 of process "System Preferences".... I broke down the script, and that is as far as I can go.

Bernardo

==================

On 8 Mar 2006, at 6:31 PM, kai wrote:


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 (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40correiofacil.com


This email sent to email@hidden


_______________________________________________ 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
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>)
 >Re: Help with system preferences... (From: kai <email@hidden>)

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