The full code (and previous version) is available on GitHub. I’m going to continue playing around with different ways to launch the alarm but for now this works in much the same way as my old script did. Simply copy and paste this alarm entry (or make it recurring) in order to set it to whatever times you want. Finally, save this and you’ll find a new entry has appeared in your calendar it will launch immediately thus starting off the iTunes alarm process. Find the Launch Application action and set that up to point to your newly exported alarm app. With the alarm exported, we now need to open up Automator and create a new Calendar Alarm. If you haven’t disabled the GateKeeper restrictions on your Mac, you will need to either Code Sign this app or grant an exception within the Security & Privacy settings after you have first tried to open it. You can do this by opening it within Script Editor and then choosing File > Export. Firstly, we need to save our AppleScript as an application (after you’ve made any adjustments to your Airplay device name, playlist name, and the volume you want). In order to get this working as an alarm, we have to jump through a number of hoops on OS X El Capitan. It should work in all versions of iTunes 11 and iTunes 12. The script is significantly smaller thanks to some new AirPlay APIs within iTunes and I’ve updated it to allow for simple changing of volume. After a bit of hacking around, I’ve managed to get the script fully updated for iTunes 12: set AirplayDeviceName to "Kitchen" set PlaylistName to "Morning" set AirplayVolume to 100 activate application "iTunes" tell application "System Events" tell application "iTunes" set visible of front browser window to true set the view of the front browser window to playlist PlaylistName end tell end tell tell application "System Events" tell process "iTunes" to if exists then click menu item "Songs" of menu "Shuffle" of menu item "Shuffle" of menu "Controls" of menu bar 1 click menu item "On" of menu "Shuffle" of menu item "Shuffle" of menu "Controls" of menu bar 1 end if end tell tell application "iTunes" set AirplayNames to ( get name of AirPlay devices ) set AirplayDevices to ( get AirPlay devices ) set AirplayToPlay to repeat with i from 1 to length of AirplayNames if item i of AirplayNames as string = AirplayDeviceName then set end of AirplayToPlay to item i of AirplayDevices end repeat set current AirPlay devices to AirplayToPlay end tell tell application "iTunes" play playlist PlaylistName set the sound volume to AirplayVolume end tell Unfortunately, it stopped working when iTunes 11 was released due to a number of changes to AppleScript support there were also changes to OS X which prevented AppleScripts from launching via Calendar alerts.įast forward to today and I found myself needing this script again for a new project 1. It worked by waking up iTunes, selecting a playlist, shuffling it, and then playing it via AirPlay. Scroll down and tap “Clock”, then toggle on the “Push alerts from iPhone” switch.A few years ago, I wrote a convoluted AppleScript that allowed me to use my Apple TV as an alarm clock.Open the Watch app for iPhone, then go to the My Watch tab.Set an alarm (or multiple alarms) on your iPhone using the Clock app. Download and install it on your PC and follow some instructions to set alarm.You can snooze and dismiss iPhone alarms right from your Apple Watch, but you won’t see Apple Watch alarms on your iPhone.How to Address iPhone Alarms on Your Apple Watch Scroll to the bottom of the menu with the Digital Crown or by swiping up on the screen (more on basic Apple Watch gestures here).Open the Alarms application on your watch.You will not see a snooze button if you have disabled this option in the alarm settings. Stop or snooze the alarm by tapping the corresponding button.You will feel a vibration from your Apple Watch and a sound if your Apple Watch is not muted.Here you can change the alarm time set the alarm to repeat every day, weekdays, weekends, or on specific days of the week change the name of the alarm activate or deactivate the repeat function and clear the alarm. ![]() To adjust additional alarm settings, touch the alarm time.When an alarm is off, both the switch and the alarm numbers will be gray. ![]() When an alarm is activated, the switch will be green and the alarm numbers will be white. Alarm Clock Pro: In addition to the regular features, this app offers some very unique ones such as been able to take a screenshot, open a website, compose an email, open an app and 27 more with the ability to combine one or more all together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |