Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Applescript-implementors Digest, Vol 2, Issue 135
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript-implementors Digest, Vol 2, Issue 135



I believe this problem is due to System Events trying to get the name of your own process (in addition to all other processes) while it (your process) is busy waiting for the script execution to finish. System Events times out after about 6 seconds. I filed this as a bug in Tiger a couple of months ago.

I don't know of any workarounds. If you have access to OS X seeds, you may want to check release notes for 10.4.3 to see if a fix is forthcoming.

Best.
--
Jonas Salling 

On Aug 9, 2005, at 9:00 PM, email@hidden wrote:

Unfortunately, OSAScript does work same as NSAppleScript, i.e. takes 6 

seconds.


$ osascript -e "tell application \"System Events\" to get process 


\"TextEdit\" exists"


This script get result immediately on Panther PBG4, even if  TextEdit 

is not launched.

But, on Tiger iMac G5, this script takes 7 secs to get result, when 

T.E. is not launched.


I guess this is not a bug of System Events, but of NSAppleScript or 

OSAScript.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.