Issue with assistive access not keeping permissions

Since a recent upgrade (likely from OS X 10.9.x to 10.10.2) I've had issues with Assistive Access blocking Automator and Applescript from interaction with dialogs.
If I run my script or my Automator workflow (which basically has the same script in it) I get the error:
System Events got an error: Automator is not allowed assistive access. (in the case of Automator).
If I open Automator, and then untick and retick the Automator entry in the Accessibility options within Security & Privacy (System Preferences), then workflow can run again. It continues to work until I Quit Automator. Then it's as if OS X no longer trusts Automator to be the same app I gave Accessibility permissions to.  And the situation repeats. It's much as if it were not code-signed. The exact same issue plays out with Apple Script.
I came across this info, which I hoped would solve the problem, but it made no difference: http://macscripter.net/viewtopic.php?id=43394 and http://bit.ly/1x3SRmc
In my Accessibility permissions I now have:
Script Editor
Automator
1Password 5 (which the script interacts with)
com.apple.security.agentStub.xpc (in case that's being called up and triggering the Accessibility issue)
osascript (in case that's handling the script and triggering the Accessibility issue)
SecurityAgent.xpc (in case that was triggering the Accessibility issue)
I added all these because the post at http://bit.ly/1x3SRmc     indicated that anything Apple Script is interacting with needs Accessibility access permissions.
My script is as follows:
set appName to "SecurityAgent"
set passApp to "1Password 5" (* set this to the name of your password manager *)
tell application "System Events"
  if not (exists window 1 of process appName) then -- test if SecurityAgent window exists
  set answer to display dialog "The password dialog was not found. Please check." buttons {"Ok"}
  return -- abort if SecurityAgent window does not exist
  end if
end tell
tell application "System Events"
  set position of window 1 of process appName to {10, 10}
-- move SecurityAgent window out of the way
end tell
activate application passApp
tell application "System Events"
  tell application "SystemUIServer"
  set answer to display dialog "Make sure correct 1Password item is actively selected (i.e. click it again if it was previously selected), then click “Continue” to proceed." buttons {"Continue"}
  end tell
  tell process passApp
  (* If you are not using 1Password, you may need to change the menu item clicks, below, to whatever is correct in your particular password manager *)
  click menu item "copy password" of menu "item" of menu bar 1
  delay 1
  set appData to the clipboard
  end tell
  tell application "System Events"
  tell process appName
  set value of text field 1 of window 1 to appData
  if exists (text field 2 of window 1) then
  set value of text field 2 of window 1 to appData
  if exists checkbox 1 of window 1 then
  if value of checkbox 1 of window 1 is 1 then
  click checkbox 1 of window 1
  end if
  end if
  set value of checkbox 1 of window 1 to 0
  delay 1 (* gives  a moment to see what's going on *)
  click button "OK" of window 1
  else
  if value of checkbox 1 of window 1 is 1 then
  click checkbox 1 of window 1
  end if
  delay 1 (* gives  a moment to see what's going on *)
  click button "OK" of window 1
  end if
  end tell
  end tell
end tell
In Automator it would appear the script is generating an error as soon as it reaches line 5, "if not (exists window 1 of process appName) then"
I would greatly appreciate some assistance in resolving this issue.

Starting with Mavericks, Apple changed the way that the accessibility works (see Using AppleScript with Accessibility and Security features in Mavericks) - each individual application needs to be given access, instead of a global option.  A regular AppleScript application saves properties and global variables with the script, which makes it a new application as far as the system security is concerned, so it needs to be re-added to the accessibility list.  To work with this new security feature, you need to code-sign your AppleScript application or make the script(s) in the bundle read-only so that they don't get changed (note that an AppleScript-based project in Xcode does not modify the application bundle by saving properties and globals).

Similar Messages

  • I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
    /Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
    Now launch InDesign and see if the problems are resolved.
    If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
    Let me know if any of these suggestions work for you
    I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait.

  • Has anyone had issues with their itunes not coming up?

    Has anyone had issues with their itunes not coming up?  I keep getting error message 13014.  I just bought a new classic ipod and am not sure if this is the problem.

    Hi
    Your new iPod has certain operating system requirements. Does your iMac meet those requirements?
    http://www.apple.com/ipodclassic/specs.html
    3rd Column on the right hand side, about a 3rd of the way down. To find out which version of iTunes you have, launch it and select "About iTunes" from the iTunes menu.
    HTH?
    Tony

  • Sync issues with playlists. Not syncing playlists, and now my playlist have disappeared from iTunes. I am Using iTunes 11.1.3 and iOS 7.0.4

    Sync issues with playlists. Not syncing playlists, and now my playlist have disappeared from iTunes. I am Using iTunes 11.1.3 and iOS 7.0.4

    Hello surig84,
    Thank you for providing the details of the issue you are experiencing when syncing your iPad.  I recommend reviewing the following article specifically the section titled "Authorize using the correct account name."
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I've been having an issue with assistive touch, every time I open an app. the AT disappears the from the screen and I have to turn it off and ON again. Is there a way to fix this?

    I've been having an issue with assistive touch, every time I open an app. the AT disappears the from the screen and I have to turn it off and ON again. Is there a way to fix this?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

  • Has anyone else had a problem with the audio not keeping up with the video when switching to full screen on YouTube?

    Hi. I have a OS X Yosemite Version 10.10.1 Mac Book Air, Processor 1.86 GHz Intel Core 2 Duo.
    Has anyone else had a problem with the audio not keeping up with the video when switching to full screen on YouTube?
    The video starts out fine, but if I click on the expand icon in the lower right corner of the screen the audio won't keep up.
    Refreshing the page don't help at all. In fact, nothing seems to help once it starts.
    I did not have this problem at all using Mavericks. The problem started after installing Yosemite.
    Any way to fix it?

    only $99, i thought it was closer to $175.

  • Issues with photos/videos not uploading in chronological order..

    I have been having issues with Adobe Bridge not uploading my photo/video files (from a CF card) in chronological order. When uploading I select to rename the files by shot date + 01.. etc. For photos the first image then becomes the last image after uploading, and for video files everything is out of order. Not sure why as the only other thing I have selected to add is copyright info. Also having issues with Bridge not converting raw files to DNG (which has led me to use Adobe DNG Converter - not terrible, but hopefully there is a reason?). I think it is a problem with Bridge, as photos uploaded to my website - something completely non-Adobe related are also then thrown out of order.. so it seems to be an issue with files that have come through Bridge at some point. Any advice is much appreciated.

    I just noticed that iTunes is now accepting 'some' videos. They are all the same file type (mp4), but iTunes is just randomly choosing which videos it wants add to the Library & not.
    I'm still not getting any results when it comes to the Photos.
    ... and one last thing ... only random songs are displaying the album art on the iPod. Yhey ALL appear in iTunes. If i restore my iPod & re-load everything, some of the songs that DID have artwork appearing on the screen now don't.
    This is really messed up! Wonder if the eventual Vista-compatible iTunes will fix this problem ...

  • Is anyone else having an issue with the iPad not charging if you use it while it's plugged into a power source?  Now that I'm on iOS 7, I either charge or use... Not both.

    Is anyone else having an issue with the iPad not charging if you use it while it's plugged into a power source?  Now that I'm on iOS 7, I either charge or use... Not both.

    No problems here.
    Edit...
    My IOS-7 is on an iPod Touch.

  • Exchange 2010 - Issues with Room Finder not showing available rooms.

    Hi,
    We are having issues with room finder not populating the room resources that are available inside a meeting request within outlook 2010. It also appears that there is a drop down box that is present in a lot of the other forums and pages that I have referenced
    for troubleshooting:
    Single Exchange 2010 server version 14.03.0224.002 running all roles. Migrated from previous Exchange 2003 environment and old 2003 server has been decommissioned.
    Room mailbox created and all configured resource policies are working correctly for creating meeting requests. A distribution group was created and the room mailboxes added to this DG as per instructions here: hxxp://exchangeserverpro.com/find-meeting-rooms/
    . We have recreated the OAB and confirmed that the Room mailboxes are part of this list.
    Does anyone have any ideas why the rooms are not showing up in the Room Finder box?
    If I have missed any information please feel free to ask for more info.
    Thanks, all help will be appreciated.

    Hi,
    According to your description, I understand that room finder cannot show available room in Outlook 2010.
    If I misunderstand you concern, please do not hesitate to let me know.
    I want to double confirm whether it works before, or it can’t work after decommission Exchange 2003? How about other Outlook version?
    The offline address book (OAB) is generated by Microsoft Exchange Server. In order for the Room Finder feature to work, the OAB must be generated by Exchange 2010 or a later version.
    Please run Get-OfflineAddressBook | FL Identity,Server to double check OAB generation server. Also, run Get-OabVirtualDirectory | FL to check URL for current OAB VD and force update OAB.
    Then open Test E-mail AutoConfiguration to double check whether Outlook get correct URL.
    After above complete, please try to switch to Send/Receive tab, click Send/Receive Groups, and then click Download Address Book.
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

  • We have been having some issues with Email notifications not going out and getting hung up in SOST.  Can anyone please tell me whether we can use Solution Manager to monitor outbound emails?

    We have been having some issues with Email Notifications not going out and getting hung up in SOST. Can anyone please tell me whether we can use SAP Solution Manager to monitor outbound email?

    What version of Solman are you using ?  Check in t-code Rz20 >ccms monitor template of satelliate system , there would be option to monitor your outbound mails .You can sutomise your monitorig metrics in solman 7.1  else in 7.01 you use auto reaction methods to monitor .
    Regards
    Jay

  • Anyone have an issue withe airplay button not being available?

    Anyone have an issue withe airplay button not being available?

    Since the last pair of updates, my game camera won't pan around in any adventure level, leaving many sub levels off screen.  This is happening in all community adventure levels as well as my own on my moon.  Also can't seem to decorate my adventure levels without experiencing major glitches, especially with changing the materials.  The updates fixed a lot of stuff, but it seems like they trashed some things too.

  • Issues with Blackberry Playbook not being recognised by Windows Explorer

    Hello, I'm new to the forums but am having the same problems as many others are, that being my Playbook not regonised by Windows Explorer. I have tried all of the solutions I have read like unistalling Desktop Manager, uninstalling then re-installing drives in Windows Device Manager. But one I recently stumbled across was uninstalling Blackberry Device Manager, how do I do this?
    Also the main problem appears to be that my Playbook will not sync anything with my computer. In Desktop Manager I can back-up my Playbook, but not sync anything. After re-installing a drive I now get the message of: 'Your Blackberry device is not compatible with this feature' whereas before I got the message of: 'You haven't configured any sync methods' but yet all of the sync options were greyed out. 
    How do I get Windows Explorer to recognise my Playbook as a drive and how can I sync in Desktop Manager? 
    Thanks in advance!
    Note: I'm using Windows 7 32-Bit

    Hello Tobster_,
    The following article should also help with detecting your BlackBerry® PlayBook™ tablet:
    Identifying and troubleshooting issues with the BlackBerry Desktop Software detecting a USB connected BlackBerry PlayBook - http://www.blackberry.com/btsc/KB27424
    We hope this helps.
    Thank you.
    -FB
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click "Accept as a Solution" for posts that have solved your issue(s)!

  • Unable to install IDM 11.1.1.6.0..Issue with  ASInstance ..not empty....

    Hello IDM experts, please help me. I have Oracle Linux 5.7 64 bit installed on Oracle Virtual box 4.1.10.
    I have valid IP address and Domain name and I am able to ping both.
    I have successfully installed database 11GR2 (11.2.0.1.0) for 64 bit linux. All issues with OS packages have been resolved. Nothing is ignored. All parameter setting has been followed as per the installation guide by Oracle.
    Installed JDK 1.7_03 version linux 64 bit ( I selected this as per the certification matrix ).
    Installed WLS 10.3.6 for 64 bit linux
    Ran RCU 11.1.1.6.0 and created all required schemas.
    Downloaded IDM 11.1.1.6.0 for linux 64 bit.
    While installing and configuring,
    I have looked into all other postings related to this error and I did not find anything missing in my configuration.
    Really appreciate your great help in resolving this issue. It is show stopper for me now.
    While runInstaller executing ASInstance step, I get in the log : "Error creating ASInstance asinst_1 "
    Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
    at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:86)
    ... 31 more
    Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted signer!
    at javax.crypto.JarVerifier.verifyPolicySigned(JarVerifier.java:289)
    Error creating ASInstance asinst_1.Cause:
    An internal operation has failed: java.lang.ExceptionInInitializerError
    Action:
    If I retry, I get error saying "Oracle instance not empty ... ...."
    Greatly appreciate your valuable suggestions.
    Edited by: 923360 on Mar 26, 2012 7:16 AM
    Edited by: 923360 on Nov 11, 2012 6:19 AM

    Hi Please find the steps to resolve this issue here. I resolved this completely.
    http://obieelive.wordpress.com/2012/05/25/obiee-11g-installation-failed-at-configuration-step-13-of-14/
    Regards,
    Sandep

  • Issue with field symbol not assigned in SMQ2

    We are facing an issue with an error in SMQ2.
    The error is "field symbol not assigned". There is also short dump in ST22.
    I have read the previous forum threads and it talks about going into the debugger mode.
    However, which is the program to be debugged ?
    How do I navigate from SMQ2 to the ABAP program.
    Kindly let me know.
    Regards,
    Sanjay

    Hi Sanjay,
    You need to debug program RSTRFCM3. This is the program which drives SMQ2.
    However just check if there are any support pack upgrades to the program recently since this is a standard program.
    Regards
    Abhii

  • Spry horizontal menu - IE6 issue with drop downs not displaying correctly

    Hello everyone,
    I have an IE6 display issue with a spry horizontal menu on a website I recently developed and hope someone can help me sort it out.
    You can see the live site here: www.callumstrust.org
    This is a site for a new charity so obviously I'm very keen to get it sorted out as soon as I can. The easiest way to view the problem is to either view it in IE6, or view it IE8, turn on the Developer Tools and change the Document Mode to 'Quirks mode'. you'll immediately see that the sub-menus on the header menu display permanently as a full width list, and not as a drop down menu as they should.
    I think the problem lies with the 'width' being set to 'auto' in the ul.MenuBarHorizontal li style. However, I can't seem to get the style right to display the menu on a single line with enough space for text of all the menu items.
    Can anyone advise on how to sort this out? I've not posted any code here: let me know if you need this and I'll happily post it.
    Many thanks,
    chris.

    Hello everyone,
    I have an IE6 display issue with a spry horizontal menu on a website I recently developed and hope someone can help me sort it out.
    You can see the live site here: www.callumstrust.org
    This is a site for a new charity so obviously I'm very keen to get it sorted out as soon as I can. The easiest way to view the problem is to either view it in IE6, or view it IE8, turn on the Developer Tools and change the Document Mode to 'Quirks mode'. you'll immediately see that the sub-menus on the header menu display permanently as a full width list, and not as a drop down menu as they should.
    I think the problem lies with the 'width' being set to 'auto' in the ul.MenuBarHorizontal li style. However, I can't seem to get the style right to display the menu on a single line with enough space for text of all the menu items.
    Can anyone advise on how to sort this out? I've not posted any code here: let me know if you need this and I'll happily post it.
    Many thanks,
    chris.

Maybe you are looking for

  • How to read a large file(size around 100 kbytes) into a byte array in JAVA

    aa

  • Configure Sign-In Unity 7.0(2)

    I am looking for a way to configure the Sign-In function.  I am having an issue where people are being directed there and if they don't respond properly (or at all) the calls are being forwarded to an unattended mailbox.  My question is where do I go

  • One static JComponent  (JLabel) in multiple place ?

    i have one static JComponent (eg: public static JLabel). i like to add this component in multiple place. And i want to see the component visible in multiple place at same time. how to do it ?

  • Transaction total

    Hi, I have to create report like the followi                           Tr.No     Item.No       Itemvalue    TotalTransactionValue                                 1               1              100            300                                 1     

  • Error opening PDF within Workbench

    Hello, We are on SAP MII 12.1.7 build 47 (SP07 patch 02) I created a simple transaction to create PDF and stored under default web folder. The transaction runs fine, the PDF gets saved but when I try to open it within workbench I get following error