Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if enabledGUISCripting(true) then
- -- GUI Scripting statements go here
- display dialog "GUI Scripting is enabled"
- else
- --non-GUI scripting statements go here
- display dialog "GUI Scripting is disabled"
- end if
- on enabledGUISCripting(switch)
- tell application "System Events"
- activate
- if not (UI elements enabled) then set (UI elements enabled) to true
- return (UI elements enabled)
- end tell
- end enabledGUISCripting
Advertisement
Add Comment
Please, Sign In to add comment