Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /location/of/my.scpt: execution error: System Events got an error: osascript does not have access to assistive devices. (-25211)
- $ sudo sqlite3 /Library/Application Support/com.apple.TCC/TCC.db "SELECT * FROM access"
- Password:
- kTCCServiceAccessibility|com.logitech.gaming|0|1|0|??
- kTCCServiceAccessibility|com.valvesoftware.steam|0|1|0|??
- kTCCServiceAccessibility|com.blizzard.starcraft2|0|0|1|
- kTCCServiceAccessibility|com.apple.AccessibilityInspector|0|1|0|??
- kTCCServiceAccessibility|com.apple.ScriptEditor2|0|1|0|??
- kTCCServiceAccessibility|com.apple.Terminal|0|1|0|??
- kTCCServiceAccessibility|/usr/bin/osascript|1|1|1|
- kTCCServiceAccessibility|com.my.label|0|1|1|
- kTCCServiceAccessibility|/osascript|1|0|1|
- #!/usr/bin/osascript
- say "hello"
- tell application "Safari" to activate
- tell application "System Events"
- delay 2
- keystroke "p" using command down
- tell application process "Safari"
- tell application "System Events"
- tell process "Safari"
- click menu button "PDF" of sheet 1 of window 1
- delay 1
- click menu item "Save PDF to Web Receipts Folder" of menu of menu button "PDF" of sheet 1 of window 1
- end tell
- end tell
- end tell
- end tell
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
- <plist version="1.0">
- <dict>
- <key>Label</key>
- <string>com.mylabel.some-awesome-utility</string>
- <key>Program</key>
- <string>/Users/username/absolute/path/to/shellscript.sh</string>
- <key>StandardErrorPath</key>
- <string>/tmp/com.mylabel.some-awesome-utility.err</string>
- <key>StandardOutPath</key>
- <string>/tmp/com.mylabel.some-awesome-utility.out</string>
- <key>StartCalendarInterval</key>
- <array>
- <dict>
- <key>Hour</key>
- <integer>06</integer>
- <key>Minute</key>
- <integer>05</integer>
- </dict>
- <dict>
- <key>Hour</key>
- <integer>20</integer>
- <key>Minute</key>
- <integer>05</integer>
- </dict>
- </array>
- </dict>
- </plist>
- #!/bin/sh
- osascript /Users/mnmt/Documents/InCuffs/Orders/PrepareShipping/print-shipping-labels.scpt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement