Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Need some AppleScript help for Salling Clicker

Need some AppleScript help for Salling Clicker
Thread Tools
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Sep 4, 2003, 05:29 AM
 
I'm trying to modify the AddressBook "Re-connect Bluetooth" action in Salling Clicker so that it will hide the app after it has finished. I know no AppleScript, but I thought just having:

tell application "Address Book" to hide

would work... obviously it doesn't (otherwise I wouldn't be posting here), as "hide" is not a recognised variable according to Script Editor.

Can someone give me some pointers. The whole (original) script is this:

--- "Proximity action" to re-connect Address Book's
--- Bluetooth connection.
--- Requires BSD Sub-System. (do shell script...)
--- Author: Collaborative effort by people on the
--- Yahoo-group; Jakob Peterhänsle wrapped it up.

tell application "System Events"
if (exists process "Address Book") then
tell application "Address Book" to quit
end if
end tell
delay 1
try
do shell script "defaults write com.apple.AddressBook ABCheckForPhoneNextTime -boolean true"
tell application "Address Book" to activate
end try
return

Very big TIA.
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 09:32 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2