• 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: System Events problem with Mojave (10.14)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events problem with Mojave (10.14)


  • Subject: Re: System Events problem with Mojave (10.14)
  • From: Takaaki Naganoya <email@hidden>
  • Date: Sat, 20 Apr 2019 19:10:02 +0900

Hi,

I encountered such a trouble when I made some duplicated script.

Accessibility control in System Preferences on macOS 10.14.x does not work as
former version of macOS.

I think you made some copy of the script.
First one may work well. But copied script does not allowed to use
accessibility function on macOS 10.14.

To recover the circumstances, you may have to remove  or archive duplicated or
older version of scripts.


Takaaki Naganoya


> 2019/04/20 11:19、David Crowe <email@hidden>のメール:
>
> I use FastScripts a lot just to associate a hot key with an AppleScript, and
> one of my scripts uses System Events to paste from the clipboard. A simple
> example (that strips formatting from the clipboard text):
>
> set x to the clipboard
> if x = "" then return
>
>
> set the clipboard to (x as string)
> tell application "System Events"
>       try
>               keystroke "v" using {command down}
>       on error errmsg number errnum
>               display dialog "Cannot paste. " & errmsg & " (" & errnum & ")"
>       end try
> end tell
>
>
>
> I get three different results:
> 1. It works (only sometimes)
> 2. Script Editor is not allowed to send keystrokes. (code 1002)
> 3. I get a dialog box telling me that FastScripts is not allowed to modify
> keystrokes (can’t remember the exact message) and I must go to System
> Preferences.
>
>
> In System Preferences I have FastScripts (and Script Editor) included, with
> the checkbox checked, under Accessibility. If I run the script from Script
> Editor (or Smile) I get the same error.
>
> In my last testing I got error 3 once, then error 2 about half a dozen times,
> then it started working, then it went back to error 2.
>
> - David Crowe
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden

--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >System Events problem with Mojave (10.14) (From: David Crowe <email@hidden>)

  • Prev by Date: System Events problem with Mojave (10.14)
  • Next by Date: SwiftAutomation and
  • Previous by thread: System Events problem with Mojave (10.14)
  • Next by thread: Re: System Events problem with Mojave (10.14)
  • Index(es):
    • Date
    • Thread