johnkary / gotosleep Goto Github PK
View Code? Open in Web Editor NEWA command-line tool for invoking sleep after n seconds on Mac OS X
License: MIT License
A command-line tool for invoking sleep after n seconds on Mac OS X
License: MIT License
Receive the following error message when computer is put to sleep using this utility:
arch: posix_spawnp: osascript: Bad CPU type in executable
Running Mac OS X Mountain Lion 10.8 64-bit.
osascript[3883:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
OSX 10.6.3
Adobe CS4 installed
May be caused by osascript running in 64-bit (x64) architecture, while Adobe Unit Types Scripting Addition (CS4) was not compiled with that architecture.
file /usr/bin/osascript
/usr/bin/osascript: Mach-O universal binary with 3 architectures
/usr/bin/osascript (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/osascript (for architecture i386): Mach-O executable i386
/usr/bin/osascript (for architecture ppc7400): Mach-O executable ppc
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: Mach-O universal binary with 2 architectures
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types (for architecture ppc): Mach-O bundle ppc
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types (for architecture i386): Mach-O bundle i386
http://forums.adobe.com/thread/486208 - Thread about executing with explicit architecture
http://kb2.adobe.com/cps/516/cpsid_51615.html - Adobe article on solutions
If you set a sleep timer and the battery depletes before the timer reaches 0, the timer will resume when power is restored, and go to sleep when it reaches 0.
This is in error, as the intended sleep time was 8:30am, but due to power loss, sleep state was at 10:20am.
Could fix by storing current UNIX time at instantiation and comparing for accuracy when time to invoke sleep. If invoke sleep time > actual sleep time, do not execute.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.