-
-
Save anonymous/784de37358b27f5c7071 to your computer and use it in GitHub Desktop.
Spotify Alarm | |
Utilizing [IFTT recipe](https://ifttt.com/recipes/283707-spotify-alarm-clock) | |
In your mail client: | |
Create a rule in your mail client with the following properties | |
- Message content contains #wakeup | |
- Actions: Delete Message, Run AppleScript | |
Create an AppleScript with the following statements. | |
``` | |
tell application "Spotify" to activate | |
tell application "Spotify" to playpause | |
``` | |
Voila! | |
I am having a problem with the AppleScript. Spotify opens and the playpause action is being done by the script before the entire Spotify application loads therefore the song doesn't play. How do i get the Applescript to wait a couple seconds before toggling the play/pause button? [edit: nvm found the delay function and set it to 1 between the activate and play functions, fixed]
how do i create the apple script part?
@justiceg use Script Editor and paste the following:
tell application "Spotify" to activate
delay 5
tell application "Spotify" to playpause
Hi all
Thanks a lot for the awesome app.
I want to set this up using iPhone. Do you know if I can setup using iPhone rather than Mac?
Hi all,
Same question as Michelle; but also, how do you set the time? You send an email to yourself containing #wakeup and add a time or..?
Hello!! Any luck with this in iPhone?
Is it possible to set this up on iPhone using the mail app?