FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Aurora (free iTunes sleep program) script

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
blankmind
Newbie


Joined: 01 Nov 2006
Posts: 2

PostPosted: Wed Nov 01, 2006 10:19 pm    Post subject: Aurora (free iTunes sleep program) script Reply with quote

Hello,

Just started using Salling Clicker. Two quick scripts I wrote to control the "Fall asleep" function of the program Aurora (a bit like iTunesleep but free)

------- Sleep.scpt -----------

property list_of_times : {"5 minutes", "15 minutes", "30 minutes", "1 hour"}
property list_of_seconds : {60 * 5, 60 * 15, 60 * 30, 60 * 60}

try
tell application "SEC Helper"
enter option list mode title "Sleep in..." items list_of_times item selected "time_selected_response"
end tell
on error
beep
end try

on time_selected_response(itemn)
try
tell application "Aurora"
set fall asleep action to sleep
set fall asleep mode to 0
set fall asleep seconds to item itemn of list_of_seconds
start fall asleep
end tell
on error
beep
end try
end time_selected_response

-------- Cancel sleep.scpt --------------

try
tell application "Aurora"
cancel fall asleep
end tell
tell application "SEC Helper"
enter messagebox mode title "Sleep control" text "Sleep control cancelled"
end tell
on error
beep
end try
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group