I’m using a Modbook (an Apple approved conversion of a Macbook into a tablet), and so I use Apple’s Ink services a lot and often want to conveniently and quickly turn Ink’s WriteAnywhere service on and off. The only means I’ve found so far is a cumbersome GUI script.
I have found a way to Show and Hide the Inkpad:
try
tell application "InkServer" to quit
end try
set inkWinState to (do shell script "/usr/bin/defaults read com.apple.ink.framework inkWindowVisible")
if inkWinState is equal to "0" then
do shell script "/usr/bin/defaults write com.apple.ink.framework inkWindowVisible -boolean Yes"
else if inkWinState is equal to "1" then
do shell script "/usr/bin/defaults write com.apple.ink.framework inkWindowVisible -boolean No"
end if
try
tell application "InkServer" to activate
end try
I have found that the com.apple.ink.framework plist key for WriteAnywhere is “recognitionEnabled”, but the above sort of approach does not work. Does anybody have any suggestions?
Model: Modbook
AppleScript: Version 2.3 (118)
Browser: Safari 531.21.10
Operating System: Mac OS X (10.6)