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

逛奔的蝸牛

我不聰明,但我會很努力

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

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 逛奔的蝸牛 閱讀(224) 評論(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>
            中文精品视频| 性欧美超级视频| 在线日韩av片| 一区二区三区四区五区在线| 亚洲激情女人| 久久久久一区二区三区| 久久丁香综合五月国产三级网站| 欧美日韩国产不卡在线看| 免费视频一区二区三区在线观看| 国产亚洲毛片在线| 亚洲欧美清纯在线制服| 亚洲欧美一区二区三区极速播放| 欧美日韩国产综合久久| 亚洲国产天堂久久综合| 一区二区在线观看av| 久久高清免费观看| 久久久精彩视频| 国产亚洲在线| 欧美在线视屏| 麻豆精品91| 亚洲大胆av| 久久久久久亚洲精品中文字幕| 久久网站热最新地址| 国产一区二区精品在线观看| 午夜在线不卡| 开元免费观看欧美电视剧网站| 国产一区二区三区在线免费观看| 欧美一区二区三区在线播放| 久久午夜电影网| 狠狠久久综合婷婷不卡| 快播亚洲色图| 亚洲国产精品黑人久久久| 亚洲美女视频在线观看| 欧美日韩另类字幕中文| 亚洲一区二区精品| 久久久久免费视频| 亚洲电影在线看| 欧美美女福利视频| 一区二区三区日韩欧美精品| 亚洲欧美在线aaa| 韩国美女久久| 欧美69视频| 日韩亚洲欧美高清| 欧美一区二区三区在线看| 国产在线播放一区二区三区| 久久久久久久久久码影片| 亚洲黄色免费网站| 中文在线资源观看网站视频免费不卡| 欧美亚州在线观看| 性伦欧美刺激片在线观看| 欧美xxx在线观看| 在线视频精品一区| 国产精品一区二区久久国产| 久久久久久一区| 日韩午夜三级在线| 久久久蜜桃精品| 亚洲美女中文字幕| 国产亚洲人成a一在线v站| 另类av一区二区| 亚洲小视频在线| 亚洲大片在线| 午夜欧美大尺度福利影院在线看| 尤物网精品视频| 欧美人与禽性xxxxx杂性| 午夜精品成人在线视频| 欧美激情一二三区| 欧美在线首页| 亚洲精品乱码久久久久久久久| 国产精品爽黄69| 欧美国产欧美综合 | 亚洲高清视频一区| 国产精品福利在线观看| 久久影院亚洲| 亚洲综合欧美| 亚洲日本国产| 麻豆国产精品va在线观看不卡| 制服丝袜亚洲播放| 影音先锋中文字幕一区| 国产精一区二区三区| 欧美精品1区2区| 美脚丝袜一区二区三区在线观看| 亚洲一区在线观看视频| 亚洲精品视频免费观看| 欧美91视频| 久久婷婷av| 久久福利影视| 欧美一级专区免费大片| 一本色道久久综合亚洲精品不| 尤物yw午夜国产精品视频明星| 国产精品资源| 国产精品你懂得| 欧美视频在线观看免费| 欧美女人交a| 欧美国产综合视频| 欧美韩国日本一区| 欧美刺激午夜性久久久久久久| 久久久久久久久久久久久女国产乱 | 可以看av的网站久久看| 久久国产精品高清| 欧美在线免费视频| 小嫩嫩精品导航| 欧美一级久久久久久久大片| 亚洲综合视频1区| 中文av字幕一区| 亚洲一品av免费观看| 亚洲免费在线电影| 亚洲欧洲av一区二区三区久久| 亚洲一区欧美二区| 亚洲欧美另类国产| 欧美影院一区| 久久精品视频导航| 久久久亚洲高清| 欧美va亚洲va香蕉在线| 亚洲电影第1页| 最新日韩欧美| 一区二区三区精品| 亚洲免费一在线| 欧美伊人久久久久久久久影院| 久久精品五月婷婷| 美女主播精品视频一二三四| 麻豆久久久9性大片| 欧美精品一区二区三区蜜桃| 国产精品多人| 国产日韩一区二区三区在线播放 | 久久综合网络一区二区| 嫩草成人www欧美| 欧美日韩国产综合视频在线观看| 欧美性做爰猛烈叫床潮| 国产午夜精品久久| 91久久国产综合久久91精品网站| 亚洲精品一二三| 亚洲小视频在线| 久久久噜噜噜久久中文字幕色伊伊| 美女网站久久| 日韩一级免费| 欧美一区二区三区在线观看视频 | 久热成人在线视频| 欧美日韩亚洲一区二区三区四区| 国产伦精品一区二区三区在线观看 | 男女精品网站| 国产精品视频观看| 亚洲激情视频在线播放| 亚洲一区二区三区乱码aⅴ蜜桃女| 久久久久久9| 日韩视频中文字幕| 久久国产手机看片| 欧美日韩hd| 在线日本欧美| 性刺激综合网| 亚洲人成网站在线观看播放| 亚洲免费综合| 欧美精品久久久久久| 国产午夜精品久久久| 中文av字幕一区| 欧美韩日一区| 欧美影院在线| 国产精品久久久久久久久久三级| 亚洲国产一区在线| 久久久久久网| 亚洲一区二区精品| 欧美日韩国产首页| 在线观看中文字幕不卡| 欧美与黑人午夜性猛交久久久| 亚洲国产成人porn| 久久久精彩视频| 国产精品永久免费在线| 亚洲私人影院在线观看| 亚洲国产高清一区| 久久久久久久97| 国产视频一区三区| 性色一区二区三区| 一区二区三区国产盗摄| 欧美猛交免费看| 日韩视频免费观看| 亚洲高清激情| 毛片一区二区三区| 在线日本成人| 免费中文日韩| 久久天天综合| 永久久久久久| 免费观看成人| 久久久爽爽爽美女图片| 国内自拍视频一区二区三区 | 亚洲人精品午夜在线观看| 免费看精品久久片| 亚洲国产欧美一区二区三区久久| 久久久综合香蕉尹人综合网| 午夜一区二区三区在线观看| 国产精品一区二区久久国产| 亚洲欧美日韩系列| 亚洲一区二区在线免费观看| 国产精品久久毛片a| 先锋影音网一区二区| 亚洲综合精品四区| 国产视频精品va久久久久久| 久久久久久有精品国产| 久久精品一区二区三区不卡| 在线观看视频一区二区| 欧美成人免费全部| 欧美日本免费|