• 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
System Events Wierdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

System Events Wierdness


  • Subject: System Events Wierdness
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 28 Oct 2005 08:08:25 -0500

Title: System Events Wierdness
I'm working on a script that displays the contents of a .plist file.
It contains the following:

on open dropList
...
.  tell application "System Events"
.  .  POSIX path of pFile -- required
.  .  set pContents to (contents of property list file the result)
.  .  set listCount to (count property list items of pContents)
.  .  repeat with i from 1 to listCount
.  .  .  "" & i & " - " & (name of property list item i of pContents) & " ...
.  .  .  display dialog the result
.  .  end repeat
.  end tell
end open ------------------------------------
The script above works properly, but while stepping thru the repeat,
I get an error from another script. The other script is a stay-open
application that monitors my UPS. The error is -1728, Can't get
<<class uien>> of application "System Events". The source of the error
is:

on getUIEnabled()
        repeat
                tell application "System Events" to UI elements enabled
                if the result then return true
Does anyone have any ideas why or how one script
would interfere with another via System Events?
 _______________________________________________
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

  • Prev by Date: Re: Change filename
  • Next by Date: Re: Problem with repeat command
  • Previous by thread: Re: Change filename
  • Next by thread: Re: Applescript-users Digest, Vol 2, Issue 720
  • Index(es):
    • Date
    • Thread