• 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
Telling Address Book to quit -> Connection is invalid.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Open fonts with suitcase in OSX
  • Next by Date: (no subject)
  • Previous by thread: Re: Open fonts with suitcase in OSX
  • Next by thread: AppleWorks 6 'unexpected error' #-24668 with AppleScript
  • Index(es):
    • Date
    • Thread