Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 17, 2009, 04:24 AM   #1
michaelk242
macrumors newbie
 
Join Date: Nov 2009
Applescript alarm for iCal

Hey all, Im creating a script thatll integrate with ical, and as youll see itll be a pretty nice alarm. My problem that Im hoping I can get help fixing is that, although the command to hide pandora is their, it doesnt work when run from ical. I also need to bring the dialog to the front, since for some reason ical also neglects to do that as well. I will greatly appreciate your help.

Note, volume is set low for testing purposes. And redundant code is their because Im a noob.

set volume output volume 20
tell application "PandoraMan" to activate
delay 3
tell application "Finder" to set visible of process "PandoraMan" to false
delay 10
set question to display dialog "Good Morning, Snooze set to 30 min.!" buttons {"Snooze!!", "I'm Awake!!"} default button 2
set answer to button returned of question
tell application "PandoraMan" to activate
if answer is equal to "Snooze!!" then
tell application "PandoraMan" to quit
delay 1800
tell application "PandoraMan" to activate
tell application "Finder" to set visible of process "PandoraMan" to false
end if

if answer is equal to "I'm Awake!!" then
tell application "PandoraMan" to quit
end if
michaelk242 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Applescript to copy highlighted folder name to iCal ToDo List inaka Mac Programming 0 Sep 15, 2011 07:38 PM
Set up alarm for To-Do tasks chogall iPhone Tips, Help and Troubleshooting 2 Nov 18, 2010 09:38 AM
Alarms for iCal Subscriptions faraz.yashar Mac Applications and Mac App Store 0 Jun 7, 2010 04:29 AM
No Alarm on iCal on iMac, why does alarm go to iPhone? ncc1701d iPhone Tips, Help and Troubleshooting 2 Nov 18, 2008 05:59 PM
setting alarms for birthdays in iCal? sir42 Mac Applications and Mac App Store 3 May 14, 2007 10:32 AM


All times are GMT -5. The time now is 10:28 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC