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

逛奔的蝸牛

我不聰明,但我會很努力

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

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>
            国产精品一区二区女厕厕| 狼人天天伊人久久| 久久久一二三| 国产私拍一区| 久久一区亚洲| 亚洲尤物在线| 国产精品久久久久一区二区| 亚洲靠逼com| 亚洲欧美一区二区三区在线| 欧美视频一区| 麻豆乱码国产一区二区三区| 欧美波霸影院| 日韩亚洲精品电影| 欧美日韩国产另类不卡| 欧美成人免费观看| 国产久一道中文一区| 国产九色精品成人porny| 国产日韩欧美在线播放| 在线观看视频一区| 中国亚洲黄色| 久久人人爽人人爽| 亚洲精品视频免费| 午夜精品婷婷| 欧美日韩福利视频| 激情小说亚洲一区| 亚洲综合社区| 91久久精品国产91性色| 99精品国产热久久91蜜凸| 亚洲欧美视频一区| 欧美精品二区| 国产欧美婷婷中文| 这里只有精品丝袜| 你懂的成人av| 久久成人人人人精品欧| 欧美日韩成人一区二区三区| 国产一区欧美| 亚洲在线视频一区| 91久久久亚洲精品| 久久综合影音| 国产视频欧美| 亚洲欧美日韩一区二区三区在线观看| 久久艳片www.17c.com| 亚洲视频在线免费观看| 欧美电影在线观看| 一色屋精品视频免费看| 欧美伊人精品成人久久综合97| 亚洲日韩成人| 久久久国产亚洲精品| 国产欧美日韩亚洲一区二区三区| 夜夜嗨av一区二区三区网页 | 一区二区三区导航| 久久偷看各类wc女厕嘘嘘偷窃| 国产精品美女久久久免费| 一本色道久久综合一区| 亚洲成人在线免费| 亚洲在线观看视频网站| 欧美日韩三级视频| 欧美日本韩国一区二区三区| 午夜精彩视频在线观看不卡| 欧美1区2区3区| 黑人操亚洲美女惩罚| 久久www免费人成看片高清| 亚洲无限av看| 国产精品久久久久aaaa| 亚洲欧美欧美一区二区三区| avtt综合网| 欧美视频你懂的| 亚洲无线一线二线三线区别av| 亚洲精品一区二区三区樱花 | 亚洲精品久久久久久久久久久久久| 久久女同互慰一区二区三区| 欧美在线免费观看亚洲| 国产一区二区激情| 欧美aaa级| 欧美国产精品v| 亚洲视频导航| 亚洲一区国产精品| 国产一区二区三区观看| 久久亚洲欧洲| 麻豆av一区二区三区久久| 亚洲精选一区| 亚洲美女精品成人在线视频| 国产精品久久久久久久app| 欧美自拍偷拍午夜视频| 亚洲欧美精品在线观看| 在线观看的日韩av| 亚洲国产精品成人综合色在线婷婷| 欧美日韩国产在线观看| 亚洲在线视频观看| 欧美在线免费视屏| 亚洲精品综合在线| 一区二区av| 国产日韩精品一区二区| 亚洲第一福利视频| 欧美午夜剧场| 久久激情久久| 欧美精品二区| 午夜欧美大片免费观看| 美日韩免费视频| 欧美一区二区三区精品电影| 蜜桃视频一区| 欧美专区在线播放| 欧美日韩国产va另类| 久久久久久噜噜噜久久久精品| 久久综合免费视频影院| 亚洲欧美视频| 欧美大片91| 久热精品视频在线免费观看| 国产精品久久国产愉拍| 最近中文字幕mv在线一区二区三区四区 | 久久美女性网| 欧美日韩精品是欧美日韩精品| 久久精品女人| 欧美在线国产| 欧美日韩国产一级| 美女精品一区| 国产毛片久久| 9色精品在线| 亚洲美女视频在线观看| 欧美专区第一页| 午夜精品美女自拍福到在线| 欧美激情第9页| 久久频这里精品99香蕉| 国产精品黄页免费高清在线观看| 久久综合激情| 国产一区二区福利| 亚洲欧美欧美一区二区三区| 亚洲视频在线一区| 欧美理论在线| 亚洲乱码国产乱码精品精98午夜| 亚洲国产欧美日韩精品| 久久一区二区三区av| 久久久一区二区| 国产欧美一区二区三区沐欲| 一本色道久久综合亚洲精品按摩 | 欧美日韩午夜在线| 亚洲精品国产精品国产自| 亚洲全黄一级网站| 免费看黄裸体一级大秀欧美| 欧美不卡在线| 亚洲激情在线激情| 男人插女人欧美| 亚洲国产精品成人精品| 亚洲日本va在线观看| 欧美va亚洲va日韩∨a综合色| 免费日韩一区二区| 91久久国产自产拍夜夜嗨| 欧美激情欧美狂野欧美精品| 亚洲国产天堂网精品网站| 亚洲毛片一区二区| 欧美色道久久88综合亚洲精品| 亚洲视频成人| 久久久久国产精品厨房| 亚洲第一页在线| 欧美a级一区| 99re热这里只有精品视频| 午夜精品www| 精品91在线| 欧美精品一区二区三| 亚洲一区二区三区免费视频| 久久av一区二区| 亚洲国产精品高清久久久| 欧美黄免费看| 亚洲欧美成人一区二区三区| 久热精品视频在线观看一区| 亚洲日本国产| 国产精品萝li| 麻豆精品视频| 亚洲免费人成在线视频观看| 欧美va亚洲va国产综合| 99热这里只有成人精品国产| 国产精品稀缺呦系列在线| 久久综合久色欧美综合狠狠| 日韩一级黄色av| 欧美综合激情网| 亚洲精品少妇| 国产专区欧美精品| 欧美日韩精品在线| 欧美亚洲视频在线观看| 亚洲黄色av| 久久亚洲精品网站| 亚洲五月婷婷| 久久久高清一区二区三区| 亚洲最快最全在线视频| 亚洲第一中文字幕| 日韩一区二区免费高清| 欧美r片在线| 在线亚洲免费视频| 蜜桃av噜噜一区| 亚洲一区999| 亚洲高清资源| 国产午夜亚洲精品理论片色戒| 欧美日韩成人| 噜噜噜在线观看免费视频日韩| 亚洲一区日韩在线| 亚洲精品一区二区三区蜜桃久| 老鸭窝毛片一区二区三区| 午夜视频在线观看一区| 一区二区日韩免费看| 亚洲破处大片|