C cleanair macrumors regular Original poster Aug 13, 2015 165 0 Jan 14, 2016 #1 If you want to play music on iTunes while you fall asleep, but don't want it playing all night, how can you make it automatically stop after certain amount of time?
If you want to play music on iTunes while you fall asleep, but don't want it playing all night, how can you make it automatically stop after certain amount of time?
A Alrescha macrumors 68020 Jan 1, 2008 2,156 317 Jan 14, 2016 #2 I'm sure someone can come up with a more user-friendly answer, but in Terminal: sleep 3600 && osascript -e 'tell application "iTunes" to pause' ...will tell iTunes to stop playing after one hour. A.
I'm sure someone can come up with a more user-friendly answer, but in Terminal: sleep 3600 && osascript -e 'tell application "iTunes" to pause' ...will tell iTunes to stop playing after one hour. A.
C cleanair macrumors regular Original poster Aug 13, 2015 165 0 Jan 14, 2016 #3 what if you want it to stop playing in 30 minutes?
A Alrescha macrumors 68020 Jan 1, 2008 2,156 317 Jan 14, 2016 #4 cleanair said: what if you want it to stop playing in 30 minutes? Click to expand... The sleep number is seconds, so 60 seconds is one minute, 600 seconds is ten minutes, 1800 seconds is a half-hour. A.
cleanair said: what if you want it to stop playing in 30 minutes? Click to expand... The sleep number is seconds, so 60 seconds is one minute, 600 seconds is ten minutes, 1800 seconds is a half-hour. A.