• 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
Re: How to prevent Classic from starting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: How to prevent Classic from starting? (From: Paul Berkowitz <email@hidden>)
 >Re: How to prevent Classic from starting? (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Strange iDisk name (e.g., name-1)
  • Next by Date: Re: Filter reference form question
  • Previous by thread: Re: How to prevent Classic from starting?
  • Next by thread: Re: How to prevent Classic from starting?
  • Index(es):
    • Date
    • Thread