본문 바로가기

카테고리 없음

EventScripts



EventScripts v0.3.0 has been released and exposes new extended event variables for some events. (See the EventScripts topic in this forum for more information.) Below are some examples that take advantage of these. All events listed below provide the 'userid' and/or 'attacker' values which are necessary for the extended event variables I use below. Rent a server Disclaimer. You are licensed to use this software for free, provided that you understand that you do so at your own risk.I tried to make this code stable and friendly, but I make no guarantee that this software won't cause problems for you. EventScripts - huge script database (searchable) 3rd Party Information for Steam Publishing Description. EventScripts is a free game scripting plugin for the Source engine. Aimed at first-time scripters, EventScripts is one of the most popular Source scripting engines, running on thousands of dedicated game servers worldwide.

AppleScript to unlock your Mac's screen. (Use EventScripts to automatically trigger script when a Bluetooth device (e.g., your iPhone) enters your Mac's range: http://www.mousedown.net/mouseware/EventScripts.html)
entering_range.scpt
-- You need to create a Keychain item whose name matches what you use in place
-- of '[keychain_item_name]' on line #7 (and whose password is identical to your
-- user account's password).
tellapplication'System Events'
if ((getnameofevery process) contains'ScreenSaverEngine') then
setpwto (do shell script'security find-generic-password -l '[keychain_item_name]' -w')
tellapplication'ScreenSaverEngine'to quit
delay0.5
keystroke pw
keystrokereturn
-- set require password to wake of security preferences to false
end if
end tell

commented Apr 16, 2014

Cf. leaving_range.scpt: https://gist.github.com/hiilppp/10922752

commented Dec 3, 2014

I've attempted to use this in Yosemite to no avail. You don't have an updated version of this do you?

EDIT: Never mind! This actually works perfectly. Thank you for the awesome script.

commented Jul 12, 2016

If i am using apple script for this script it is not working. Any suggestions.

commented Oct 19, 2016

Tested this on macOS Sierra(10.12).

Reference:

Eventscripts

EventScripts

Eventscripts Download

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment