New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Applescript Snow Leopard to Lion

Post Reply New Thread Subscribe

Thread Tools

Member Since: Feb 09, 2012
Posts: 1
mtmanner is on a distinguished road

mtmanner is offline
I have a script that was working fine in Snow Leopard. Can't figure out why it isn't functioning in Lion.


Here's the script -- designed to toggle the "tap to click" box on the trackpad (using an MBA2011: 10.7.2)

-- want it on or off?
display dialog "Turn trackpad-clicking on or off?" buttons {"Cancel", "Turn Off", "Turn On"} default button 3 with icon note
if (button returned of result) is "Turn On" then
set theValue to 1
set theValue to 0
end if

-- open the preference pane
tell application "System Preferences"
reveal (pane id "")
end tell

tell application "System Events"
tell process "System Preferences"
-- check the current value of the checkbox and change it if needed
tell checkbox "Clicking" of group 1 of window 1
repeat until exists (* wait until the object is accessible *)
delay 0.2
end repeat
if value is not theValue then click
end tell

-- leave the trackpad preference pane
click button "Show All" of group 1 of group 2 of tool bar 1 of window 1

-- hide system preferences
set visible to false
end tell
end tell
QUOTE Thanks

Post Reply New Thread Subscribe

« Changing Mac Character Code (Glyphs) | Applescript - Duplex printing from Pages »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
switching from Lion to Snow leopard derekleech OS X - Operating System 15 02-20-2012 05:34 PM
Upgrading my OS to run Aperture 3 - Snow Leopard or Lion? MJHanson7490 OS X - Operating System 4 01-03-2012 01:38 AM
Installing Snow Leopard over Lion? ismo OS X - Operating System 20 11-02-2011 12:05 PM
difference between snow leopard and lion (icloud) maximillian93 OS X - Operating System 1 10-15-2011 07:56 PM
Snow Leopard vs Lion connection issues? cynicalandbored Internet, Networking, and Wireless 1 08-12-2011 05:38 AM

All times are GMT -4. The time now is 10:55 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?