• 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
Remote Apple Events and disappearing keychain passwords
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remote Apple Events and disappearing keychain passwords


  • Subject: Remote Apple Events and disappearing keychain passwords
  • From: Hamish Sanderson <email@hidden>
  • Date: Tue, 28 Apr 2009 13:51:37 +0100

Hi,

Question for the AppleScript engineers: under what circumstances can a remote Apple event cause a previously stored password to disappear from the keychain?


I am trying to troubleshoot a rather bizarre problem affecting one of my machines. I run the following code [1] once, enter a username and password and check the 'add to keychain' option when prompted:


#!/usr/bin/python
import aem
print aem.Application(url="eppc://127.0.0.1/TextEdit").event("coregetd",
		{"----": aem.app.elements("docu").property("ctxt")}).send()

A password is added to the keychain and the script runs as expected. The next time I run it, the password disappears from the keychain and an error -927 (unable to authenticate user at destination) occurs.

(Note that appscript does no authentication itself: it simply passes an AEAddressDesc of typeApplicationURL to AESendMessage, so whatever's happening to my keychain, it's the system that's doing it.)

At the moment, I am unable to reproduce the problem on my other Mac (both MBPs running 10.5.6), and cannot reproduce it in AppleScript either. Nor does it appear to occur when AEDebug options are enabled (heisenbug?), making troubleshooting extra difficult.

Bug? Corrupted keychain? Security feature?

Thanks,

Hamish

[1] That's 'tell application "eppc://127.0.0.1/TextEdit" to get text of every document' using raw AE codes and Python.
--


Hamish Sanderson
Production Workflow Developer
Sun Branding Solutions Ltd
Tel: +44(0)1274 200 700
www.s-brandingsolutions.com





_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: Mount Volume on Remote Machine
  • Next by Date: Re: Confounded by Folder Action Script (10.5.6) - SOLVED
  • Previous by thread: Re: list files with different locations in finder
  • Next by thread: Photomerge again...
  • Index(es):
    • Date
    • Thread