Re: How to prevent Classic from starting?
Re: How to prevent Classic from starting?
- Subject: Re: How to prevent Classic from starting?
- From: Jeffrey Mattox <email@hidden>
- Date: Thu, 18 Dec 2003 03:46:05 -0600
At 8:53 PM -0800 12/17/03, Walter Ian Kaye wrote:
At 07:59p -0800 12/17/2003, Paul Berkowitz didst inscribe upon an
electronic papyrus:
On 12/17/03 7:34 PM, "Jeffrey Mattox" <email@hidden> wrote:
> Sometimes my script attempts to start Classic. I've narrowed it down to:
>
> tell application "Keychain Scripting"
>
> How do I force this to remain in OS X?
>
> I've tried tell application "Keychain Scripting.app" -- want OS X
> but the compiler changes it back to "Keychain Scripting".
>
> I suppose I could delete all of my OS 9 files, but my users might not
> want to do that. :-)
Use the full path to the OS X Keychain Scripting application file in the
'tell' command.
Or just launch the right app beforehand:
tell app "Finder"
open application file id "com.apple.keychainscripting"
end tell
tell app "Keychain Scripting"
count keychains
end tell
-boo
That works sometimes, but not always. If I put a delay 4 in between
the two tell blocks, it seems to help, but the uncertainty is
unsettling. And without the delay I've seen this error "Keychain
Scripting got an error: Application isn't running."
Jeff
_______________________________________________
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.