青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

逛奔的蝸牛

我不聰明,但我會很努力

   ::  :: 新隨筆 ::  ::  :: 管理 ::

From: http://dougscripts.com/itunes/itinfo/icalscripts.php

Version 1.5.1 of iCal gives you the ability to set an alarm that fires an application, a document, or...an AppleScript. Now that you can finally use your iCal as an alarm clock...uhm...how exactly can you use iCal as an iTunes alarm clock?

Step 1: Set up iCal

You can make any iCal Event send an alarm when it's come due. Click on "Alarm" in the Event's Info Window and select "Open File". Then, select "Other...". Navigate to a compiled AppleScript or AppleScript application (yes, compiled scripts work!) and select it. Then set the time you want the alarm to go off relative to the start time of the Event (minutes, hours, days before or after the Event is scheduled to start). I set this to "0 minutes before".

This Event will fire "My Script1" at the "from" time of the Event

Step 2: Control iTunes

We'll build a little app here. The simplest thing you can do is to tell iTunes to play. Even better, to tell iTunes to play a particular playlist or radio stream. To play any playlist, use the following script substituting "Recently Played" with the name of the playlist you want to play:

tell application "iTunes"
	play playlist "Recently Played"
end tell

[upm] click to open in Script Editor

To make sure that when you wake up you see the actual playlist, add the second line, which selects the playlist in the Source column:

tell application "iTunes"
	play playlist "Recently Played"
	set view to current playlist
end tell

[upm] click to open in Script Editor

Purely optional. Now, save that in Script Editor as an either "compiled" or as "application" and assign it as an alarm to an Event in iCal (read more about the differences between "compiled" and "application" AppleScripts).

Almost forgot! If you want a really good shuffle:

tell application "iTunes"
	repeat 5 times
		set shuffle to false
		set shuffle to true
	end repeat
	play playlist "Recently Played"
end tell

[upm] click to open in Script Editor

To play streams, copy your favorite streams into their own playlist (avoid storing streams in the main library where they get in the way; this script helps with that). Mine are in "Radio Faves". To play a particular stream, just call it by name:

tell application "iTunes"
	play track "Adult Pirate Radio" of playlist "Radio Faves"
end tell

[upm] click to open in Script Editor

Step 3: Volume Up and Down

Great. You can select something to play before you wake up in the morning. Now how about creating a dandy fade-up routine. First, you should know that AppleScript can set iTunes main volume from 0 to 100, off to loudest. What I do is set iTunes volume where I want it tomorrow morning. When this script is fired by iCal, it will kill the volume, start a playlist playing, and then gradually raise the volume to where I set it.

property tick : 5 -- raise volume level by this many each loop
property thismany : 0 -- seconds to wait before making next increment to volume
tell application "iTunes"
	set snd to sound volume
	set sound volume to 0
	play playlist "Recently Played" -- your playlist here
	repeat
		if (get sound volume) is greater than or equal to (snd - tick) then
			set sound volume to snd
			exit repeat
		end if
		set sound volume to (sound volume + tick)
		delay thismany
	end repeat
end tell

[upm] click to open in Script Editor

At the end of the day, when you want iTunes to fade out and stop, schedule this:

property tick : 5 -- change volume level by this many each loop
property thismany : 1 -- seconds to wait before making next change to volume
tell application "iTunes"
	repeat
		set snd to sound volume
		if snd is less than or equal to tick then
			set sound volume to 0
			exit repeat
		end if
		set sound volume to (snd - tick)
		delay thismany
	end repeat
	stop
end tell

[upm] click to open in Script Editor

By changing the thismany and tick values, you can change the duration and dynamic of the fade. A smaller tick number will raise/lower volume in smaller increments; changing thismany changes the delay between the next change in volume. Play around with it for best results.

There are probably better ways of doing the slow fade; it's just a matter of figuring the mathematical dynamics.

These are just some simple ideas to get you started. Have fun! Don't over sleep!

posted on 2009-04-07 17:20 逛奔的蝸牛 閱讀(223) 評論(0)  編輯 收藏 引用 所屬分類: Mac
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            国产综合网站| 激情成人中文字幕| 国产精品视频999| 亚洲视频专区在线| 亚洲精品免费一二三区| 亚洲一区二区三区免费在线观看| 欧美精品午夜| 亚洲午夜久久久久久久久电影院 | 蜜臀va亚洲va欧美va天堂| 国产日韩一区二区| 欧美一级片在线播放| 亚洲欧美另类在线观看| 1024国产精品| 亚洲一区二区精品在线| 怡红院精品视频| 99天天综合性| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲国产日韩一级| 国产精品入口66mio| 老司机精品福利视频| 免费成人高清在线视频| 亚洲淫性视频| 亚洲一区二区不卡免费| 国语自产精品视频在线看一大j8| 欧美.www| 国产精品自拍在线| 亚洲激情在线激情| 国产一区二区激情| 99精品久久久| 亚洲精品之草原avav久久| 欧美亚洲视频一区二区| 一区二区三区精密机械公司 | 午夜亚洲激情| 欧美色区777第一页| 亚洲激情欧美| 亚洲国产一区在线| 久久中文字幕一区| 蜜桃久久av| 狠狠色狠狠色综合日日小说| 亚洲图片在线| 欧美制服丝袜| 国产一区二区三区丝袜| 欧美伊人久久大香线蕉综合69| 亚洲女人天堂成人av在线| 国产精品久久久久三级| 午夜精品一区二区三区在线播放| 亚洲欧美精品中文字幕在线| 欧美视频不卡| 久久久久国产精品www| 欧美成人午夜免费视在线看片 | 另类激情亚洲| 亚洲国产裸拍裸体视频在线观看乱了 | 一本大道久久a久久精品综合| 亚洲人成网站777色婷婷| 欧美成人日本| 午夜一区在线| 亚洲二区免费| 国产一区二区丝袜高跟鞋图片| 噜噜噜躁狠狠躁狠狠精品视频 | 国产日本欧美视频| 猫咪成人在线观看| av成人天堂| 欧美成人免费小视频| 亚洲欧美一区二区视频| 最新高清无码专区| 国产综合婷婷| 国产欧美一区二区视频| 欧美日韩成人在线播放| 久久久不卡网国产精品一区| 亚洲日本在线视频观看| 六月丁香综合| 久久米奇亚洲| 久久久久青草大香线综合精品| 在线亚洲精品福利网址导航| 亚洲黄色在线看| 精品成人免费| 韩日精品在线| 国产亚洲欧美日韩一区二区| 欧美日韩中文字幕精品| 欧美日韩国产一区二区| 欧美激情综合网| 欧美国产专区| 欧美日韩不卡在线| 欧美精品在线网站| 欧美日本国产| 国产欧美精品久久| 欧美精品成人91久久久久久久| 欧美成人免费va影院高清| 欧美大片va欧美在线播放| 欧美电影在线播放| 欧美日韩免费在线视频| 久久大香伊蕉在人线观看热2| 欧美亚洲专区| 久久久999精品视频| 欧美mv日韩mv国产网站| 欧美日韩精品一区二区在线播放 | 亚洲无线观看| 欧美在线视频导航| 美女黄网久久| 国产精品一区二区a| 欧美国产第一页| 亚洲精品中文字| 中日韩视频在线观看| 久久―日本道色综合久久| 欧美午夜寂寞影院| 精品粉嫩aⅴ一区二区三区四区| 亚洲精品一区二区三区婷婷月 | 国产伦精品一区二区三区照片91| 国户精品久久久久久久久久久不卡| 亚洲国产黄色| 久久久国产精品一区二区三区| 亚洲欧洲精品天堂一级| 久久精选视频| 国产亚洲欧洲| 久久精品成人| 亚洲综合色激情五月| 欧美日韩国产一区二区| 亚洲福利在线看| 久久婷婷国产综合尤物精品| 亚洲综合第一| 国产手机视频一区二区| 亚洲欧美日韩爽爽影院| 亚洲国产精品日韩| 欧美14一18处毛片| 巨乳诱惑日韩免费av| 国产欧美日韩一区二区三区在线| 亚洲片区在线| 亚洲伦理在线观看| 欧美麻豆久久久久久中文| 亚洲免费电影在线观看| 最新中文字幕一区二区三区| 免费成人在线观看视频| 亚洲精选在线观看| 亚洲天堂黄色| 国产综合久久久久久| 欧美a级理论片| 欧美先锋影音| 免费在线观看精品| 欧美电影在线观看完整版| 午夜久久久久久| 狂野欧美激情性xxxx| 妖精视频成人观看www| 亚洲自拍偷拍网址| 亚洲精品乱码久久久久久按摩观| 亚洲精品欧美在线| 亚洲福利视频三区| 性欧美18~19sex高清播放| 久久国产精品黑丝| 一本色道88久久加勒比精品| 午夜国产精品影院在线观看 | 亚洲——在线| 亚洲电影欧美电影有声小说| 亚洲精品麻豆| 亚洲国产成人在线视频| 亚洲一区二区三区视频| 亚洲理伦电影| 模特精品裸拍一区| 久久午夜av| 欧美日韩免费精品| 麻豆成人综合网| 好看的av在线不卡观看| 亚洲午夜电影网| 亚洲自拍电影| 国产精品视频精品视频| 99精品视频免费| 一本色道久久综合精品竹菊 | 国产精品主播| 9久re热视频在线精品| 亚洲精品视频在线看| 欧美本精品男人aⅴ天堂| 久久亚洲风情| 亚洲高清资源| 欧美成人免费小视频| 亚洲欧洲精品一区二区三区| 亚洲精品国产精品国自产观看| 久久久www成人免费毛片麻豆| 欧美国产免费| 亚洲美女黄色| 国产日本亚洲高清| 欧美一级视频一区二区| 麻豆国产va免费精品高清在线| 激情伊人五月天久久综合| 久久久五月天| 夜夜躁日日躁狠狠久久88av| 亚洲欧美日韩天堂| 一区久久精品| 欧美性猛交视频| 久久女同精品一区二区| 亚洲第一视频网站| 午夜视频久久久久久| 亚洲国产成人午夜在线一区| 国产精品成人免费精品自在线观看| 欧美亚洲免费电影| 亚洲精品一区二区三| 久久久精品网| 欧美诱惑福利视频| 日韩午夜激情av| 国产亚洲欧美另类一区二区三区| 女女同性精品视频| 久久一区二区三区超碰国产精品|