Comments (7)
From [email protected] on July 21, 2010 13:39:27
I'll look and see if there is a Cocoa framework that does this. Do you have an example of another app that does this sort of thing?
Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low
from munki.
From [email protected] on July 21, 2010 13:49:39
Umm, you mean by using Cocoa or some other methods?
Not that I know at this moment, that applescript-hackish-thingy has worked for me.
I am not sure what that old iHook could do, it probably does not hurt to look at it's source: http://ihook.cvs.sourceforge.net/viewvc/ihook/ihook/
from munki.
From [email protected] on July 21, 2010 13:58:44
No, any commerical or Apple-supplied app that does this. I'm wondering if this is Apple-sanctioned behavior... If not, there's not likely to be a "native" way to do it.
Again this could be handled in a preflight script...
-Greg
from munki.
From [email protected] on August 22, 2010 03:08:20
This can be achieved by inserting plain-old-applescript in /usr/local/munki/updatecheckhelper between sleep and managedsoftwareupdate --auto -commands:
sleep $seconds
send empty keystroke which wakes up the screen and disables screensaver running over loginwindow
/usr/bin/osascript -e 'tell application "System Events"' -e 'key code "" using control down' -e 'end tell'
/usr/local/munki/managedsoftwareupdate --auto
(This could also be inserted in managedsoftwareupdate to be run on every check and install cycle but that is another story...and it could be managed by a separate key in ManagedInstalls.plist...yet another to-do-later...)
from munki.
From [email protected] on February 02, 2011 01:25:36
To do this in Carbon, code:
#include <Carbon/Carbon.h>
main() {
while (1==1) {
UpdateSystemActivity(OverallAct);
sleep(30);
}
}
I think the code speaks for itself, so unless the machine goes to deep sleep before 30 seconds has passed this will do the trick I think.
Compile as UB:
cc -arch ppc -o keypressppc keypress.c -framework Carbon
cc -arch i386 -o keypressi386 keypress.c -framework Carbon
lipo keypresspcc keypressi386 -create -o keypress
from munki.
From [email protected] on February 03, 2011 04:46:07
Thank you very much [email protected].
This works, it keeps sends screen lit when it is running.
As this "application" keeps running until it is terminated (while loop is true forever) it needs to be killed after munki has run.
Otherwise it will keep system awake as it sends activity message to system every 30 seconds.
-MiqViq
from munki.
From [email protected] on February 09, 2011 01:46:52
Yes, I needs to be killed... You could remove the loop and loop it from the munki script too.
from munki.
Related Issues (20)
- DeprecationWarning in repoclean with Munki 6.3.1 HOT 5
- distutils.version deprecated in Python 3.10 HOT 1
- PyObjC - possibly needs updating to 9.1.1? HOT 3
- munkiimport and makepkginfo crash with distribution-style packages containing a payload-free package HOT 1
- New Optional Key: Pre-warm .apps on macOS Sonoma HOT 6
- Build numbering changed, or digit missing in latest release? HOT 7
- app_usage_monitor fails trying to call superclass's init HOT 4
- [Feature Request] JSON Logging Format HOT 1
- Logic error when processing requires items that fail to download HOT 2
- Minor MSC UI issue - Removing app progress HOT 4
- Option to check for items to install only, 'dry run' HOT 1
- MSC 6.2.1.4599 crashes on macOS 10.13 HOT 18
- munkiimport and munkilib/pkgutils.py crash with packages containing .dist file HOT 13
- Preinstall_alerts not being shown for updated software HOT 3
- Placment of the back button in Managed Software Centre HOT 9
- [Feature Request] - Add a Pkginfo Key to skip update check HOT 2
- security issue: Writing sensitive information into log file HOT 3
- Option to ignore unmanaged preferences HOT 4
- Question: Does munki have a client CLI tool for software installation and update HOT 1
- installable_condition crashes client HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from munki.