• 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: Watch Me Do cannot select System Preferences form Apple Menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Watch Me Do cannot select System Preferences form Apple Menu


  • Subject: Re: Watch Me Do cannot select System Preferences form Apple Menu
  • From: "J. Stewart" <email@hidden>
  • Date: Wed, 31 Oct 2012 17:18:46 -0400

On 10/31/12 at 11:52 AM, Leo J. Muraro ||| <email@hidden> spake thusly:

I'm just getting started with Automator and was trying to create a script that would add a VPN connection to System Preferences.
I'm using Mountain Lion.

Automator can run an applescript so you can either take what you need from this one OR use this one as written as a stand alone application.


----- Begin script -----
(*
Name: DoSystemPreferences
Version: 1.0
Compile Date: Wednesday, October 31, 2012
Compile Time: 5:12:05 PM
Copyright ©  2012 - 2013 John B. Stewart
Applications Used:  System Preferences.app
Scripting Additions used:  StandardAdditions.osax
*)

tell application "System Preferences"
	set foo to name of every pane --reveal pane "Software Update"
	set bar to my getChoice(foo) as text
	activate
	reveal pane bar
end tell

on getChoice(foo)
tell current application to choose from list foo with title "Preferences" with prompt "Choose:" without multiple selections allowed
	set foo to result
	if foo is false then
		tell application "System Preferences" to quit
		error number -128
	else
		return result
	end if
end getChoice
----- End script -----

If you've never used Applescript you can feel free to contact me off the list and I can walk you through it.

JBS
--
Never try to outstubborn a cat.  -Lazarus Long (Robert Heinlein)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Watch Me Do cannot select System Preferences form Apple Menu (From: "Leo J. Muraro |||" <email@hidden>)

  • Prev by Date: Re: Watch Me Do cannot select System Preferences form Apple Menu
  • Previous by thread: Re: Watch Me Do cannot select System Preferences form Apple Menu
  • Index(es):
    • Date
    • Thread