Telling Address Book to quit -> Connection is invalid.
Telling Address Book to quit -> Connection is invalid.
- Subject: Telling Address Book to quit -> Connection is invalid.
- From: Jakob Peterhänsel <email@hidden>
- Date: Thu, 10 Apr 2003 14:57:45 +0200
Hi All.
When I run the script below from Script Editor 2, I get a "Connection
is invalid." error if AB is running. If run from Sony Ericsson Clicker,
it works as expected. How come?
Script:
tell application "System Events"
if (exists process "Address Book") then
tell application "Address Book" to quit
end if
end tell
delay 2
try
do shell script "defaults write com.apple.AddressBook
ABCheckForPhoneNextTime -boolean true"
tell application "Address Book"
activate
set miniaturized of window 1 to true
end tell
end try
--- Event record:
tell application "System Events"
exists process "Address Book"
true
end tell
tell application "Address Book"
quit current application
current application
"Address Book got an error: Connection is invalid."
PS: Why can't we have styled text allowed on this list, so all the code
send would be easier to read?
Jakob Peterhdnsel
Kfrlighed?
Det er noget man giver...
Email: email@hidden
AIM: Marook
Phone: +45 40163806
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.