• 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: NSInternalScriptError
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSInternalScriptError


  • Subject: Re: NSInternalScriptError
  • From: Jim Brandt <email@hidden>
  • Date: Wed, 7 Sep 2005 17:43:06 -0500

I don't think there's anything missing. Yes there's more to the script but not anything that would make it break.

After Michelle replied, I tried this and it still doesn't work:

tell application "System Events"
    get system attribute "sysv"
    if result is greater than or equal to 4144 then -- Mac OS X 10.3.0
        if UI elements enabled then
            display dialog "enabled"
        end if
    end if
end tell

Same error. All of this worked before the weekend.
The only thing I've done is install a new version of "Tex-Edit Plus" and repair permissions
after the error showed up.


On Sep 7, 2005, at 11:20 AM, Matt Neuburg wrote:

On Tue, 6 Sep 2005 18:12:36 -0500, Jim Brandt <email@hidden>
said:

Can someone tell me why these lines:

tell application "System Events"
    get system attribute "sysv"
    if result is greater than or equal to 4144 then -- Mac OS X 10.3.0
        if UI elements enabled then
            ... rest of script

is giving this error in the event log:


tell application "System Events"
    system attribute "sysv"
        4162
    get UI elements enabled
        "System Events got an error: NSInternalScriptError"


I've no idea. In fact, my first impulse is to suggest this simply isn't
happening. :) I get this in the event log:

tell application "System Events"
    system attribute "sysv"
    -->    4162
    get UI elements enabled
    -->    true

Are you sure there isn't something else going that you're not telling us?
Are those lines embedded in, or interleaved with, some other lines that
might have a bearing on the matter? m.

-- 
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>





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

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSInternalScriptError
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: NSInternalScriptError (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Creating a folder on the desktop
  • Next by Date: Re: Missing values and Script Editor request
  • Previous by thread: Re: NSInternalScriptError
  • Next by thread: Re: NSInternalScriptError
  • Index(es):
    • Date
    • Thread