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.