Hey Everyone!
I am a recent Mac-Switcher (a week old...) and so far i am really enjoying the switch, slowly getting my head around the different shortcuts and methodology for OSX.
I have recently started playing around with Proximity and JackSMS to work with my iPhone and all in all it works great...except one little flaw.
The "away" script works great, and the return one does to, however when i return it executes everything but JackSMS doesnt "unlock" the screen even though its prompted to in the script. I am new to scripting and no doubt i missed something...below is a copy of each:
And here is the return script:
I am no AppleScript expert so hope someone out there can either tell me if the script is at fault of JackSMS, it runs everything (including the welcome back voice prompt) however the screen stays locked...
Any help would be most appreciated!!
JackSMS Version: 1.0B6 (090)
OS X Version: SnowLeopard
Thanks!
Maxus
I am a recent Mac-Switcher (a week old...) and so far i am really enjoying the switch, slowly getting my head around the different shortcuts and methodology for OSX.
I have recently started playing around with Proximity and JackSMS to work with my iPhone and all in all it works great...except one little flaw.
The "away" script works great, and the return one does to, however when i return it executes everything but JackSMS doesnt "unlock" the screen even though its prompted to in the script. I am new to scripting and no doubt i missed something...below is a copy of each:
tell application "System Events"
set itunes_running to (exists process "iTunes")
end tell
if itunes_running is true then
tell application "iTunes"
pause
end tell
end if
-- Set JackSMS status to on, which also lock the computer
tell application "JackSMS" to set jack status to "on"
delay 1
-- Set Adium status to away
tell application "System Events"
set adium_running to (exists process "Adium")
end tell
if adium_running then
tell application "Adium" to go away with message "I am away from my computer"
end if
And here is the return script:
-- Set JackSMS status to off, which also lock the computer
tell application "JackSMS" to set lock screen to false
delay 1
-- Pause iTunes (might add in fancy fade later)
tell application "System Events"
set itunes_running to (exists process "iTunes")
end tell
if itunes_running is true then
tell application "iTunes"
play
end tell
end if
-- Set Adium status to back
tell application "System Events"
set adium_running to (exists process "Adium")
end tell
if adium_running then
tell application "Adium" to go available
end if
do shell script "defaults -currentHost write com.apple.screensaver askForPassword -int 0"
tell application "ScreenSaverEngine" to quit
say "Welcome back Master" using "Vicki"
delay 1
say "the current time is" using "Vicki"
say (time string of (current date)) using "Vicki"
end
I am no AppleScript expert so hope someone out there can either tell me if the script is at fault of JackSMS, it runs everything (including the welcome back voice prompt) however the screen stays locked...
Any help would be most appreciated!!
JackSMS Version: 1.0B6 (090)
OS X Version: SnowLeopard
Thanks!
Maxus