FasdUAS 1.101.10 k l l   Podcast Shutdown.scpt l  l d^ Podcast Shutdown: An AppleScript that stop recording, closed down the applications, and fades  l  out your outro music. l l 3- Author: Brandon Fuller (brandon@fuller.name) l l UO See http://brandon.fuller.name/archives/hacks/mtenclosures/ for documentation, l A; installation instructions, version history, and donations. l !" !l# #=7 This is version 1.0.0.0 published on October 17, 2004."$% $l%&' &l( ((" Copyright (c) 2004 Brandon Fuller')* )l*+, +l- -=7 License: http://creativecommons.org/licenses/LGPL/2.1/,./ .l/01 0l2 2D> This library is free software; you can redistribute it and/or134 3l5 5A; modify it under the terms of the GNU Lesser General Public467 6l8 8C= License as published by the Free Software Foundation; either79: 9l; ;IC version 2.1 of the License, or (at your option) any later version.:<= <l=>? >l@ @F@ This library is distributed in the hope that it will be useful,?AB AlC CE? but WITHOUT ANY WARRANTY; without even the implied warranty ofBDE DlF FJD MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU EGH GlI I60 Lesser General Public License for more details.HJK JlKLM LlMNO NlPQ PjR 0the_output_mode RmS SInternal Speakers Q& output device to switch back toOTU TlVW VjX 0the_song XmY Y Final Hour W song to play on fade outUZ[ Zl\] \j^ 0the_wait ^m ]+% seconds to wait before starting fade[_` _lab aj c 0tick cm  b0* lower volume level by this many each loop`de dlfg fj h 0thismany hm ii? g=7 seconds to wait before making next increment to volumeejk jlklm lln n Play the fade out musicmop olxq qOxrs rkwttuv ulvwx wI .hookStopnullnullxyz yl z{| {r }~ }m d ~1   pVol| l r' c% l# 6# n 2  cTrk 4  cLiP m E" 1  pnam o! 0the_song m#$  list l o 0matching_tracks r(. n(, 4),  cobj m*+ o() 0matching_tracks o 0my_track I/4 .hookPlaynullobj o/0 0my_track l55 I5> .sysodelanullnmbr o5: 0the_wait l?? T?o kDj ZDR BDJ lDH eDH 1DH  pVol mHI SMN rS` lS\ \S\ 1SV  pVol oV[ 0tick 1\_  pVol Iaj .sysodelanullnmbr oaf 0thismany lpp rpu mpq 1qt  pVol lvv smnull߀ iTunes.app@07p0i)( jhookalisP My Hard Drive{H+ iTunes.appMpn ApplicationsY %My Hard Drive:Applications:iTunes.app iTunes.app My Hard DriveApplications/iTunes.app/p l l  Stop the recording ly Oy I} .miscactvnullnull myznull߀  Audacity.app@07p0i)( jauDyalish My Hard Drive{H+  Audacity.app QfZ AudacityYQ  0My Hard Drive:Applications:Audacity:Audacity.app Audacity.app My Hard Drive"Applications/Audacity/Audacity.app/ l O O I .prcskprsnullutxt m s 4  prcs m Audacity mnullwSystem Events.app7pi)( jsevsalis My Hard Drive{H+wSystem Events.appa CoreServicesY< won;My Hard Drive:System:Library:CoreServices:System Events.app$System Events.app My Hard Drive-System/Library/CoreServices/System Events.app/ l l  Bring up the sound applet l O k I .aevtquitnullnull I .sysodelanullnmbr m I .miscactvnullnull~ r 4} } xppb m com.apple.preference.sound 1| | xpcp~ mnullߟ System Preferences.app7p0i)( jsprfalis My Hard Drive{H+ System Preferences.appa?^ ApplicationsY  1My Hard Drive:Applications:System Preferences.app.System Preferences.app My Hard Drive#Applications/System Preferences.app/ l{z{z lyy *$ Change back to original output mode lTx OT OS kR Iwv w.sysodelanullnmbr muuvt OR kQ Isr s.prcsclicuieluiel 4q q radB mppr Ion o.sysodelanullnmbr mmmnl OQ   Y P k  j  ZKih l2g =2 l,f n, 1(,e e valL n( 4#(d d txtf m&'cc 4#b b crow o!"a a0if o,1` `0the_output_modeg k5G r5A m56_ _ boovtrue n 1<@^ ^ selE  46<]! ] crow !o:;\ \0i"[ "IBGZ#Y Z.sysodelanullnmbr #mBCXXY[ih k0i  mWW  l$V $IU%T U.corecnte******** %2S S crowTVj  n&' &4R( R tabB (mQQ '4P) P scra )mOOl n*+ *4N, N tabg ,mMM +4L- L cwin -mKKt 4J. J pcap .m/ /System Preferences mx01 0lIHIH123 2lG4G 4 Kill sound applet356 5lUa7F 7OUa89 8I[`EDC E.aevtquitnullnullDC 9mUXF6:; :lBABA;<= <l@>@ >% Kill the apps we are done with=?@ ?lblA? AOblBC BIfk>=< >.aevtquitnullnull=< Cmbc?@DE DlmF; FOmGH GIs~:9I :.aevtquitnullnull9I8J7 8 savo Jmwz6 6 savono 7 HmmpKKnull߀ GarageBand.app07p0i)( jbandalis` My Hard Drive{H+ GarageBand.appμ ApplicationsY  )My Hard Drive:Applications:GarageBand.appGarageBand.app My Hard DriveApplications/GarageBand.app/;ELM Ll5454MNO Nl3P3 P Save as MP3OQR QlS2 SOTU TI10/ 1.miscactvnullnull0/ Um2RVW VlAX. XOAYZ YO@[\ [k?]]^_ ^l-,-,_`a `Obc bOde dOfg fI+h* +.prcsclicuieluiel h4)i ) menI imj jExport as MP3...* g4(k ( menE kml l File e4'm ' mbri mmn n File c4&o & mbar om%%apq pl$#$#qrs rI"t! ".sysodelanullnmbr tm  !suv ulvwx wO=yz yk<{{|} |r~ ~l I .misccurdldt null o 0thedatetheDate} I .prcskprsnullutxt l c l n 1  year o 0thedatetheDate m  TEXT I .prcskprsnullutxt m - I .prcskprsnullutxt n  I  "0getpaddedstringgetPaddedString n I  0getmonthnumbergetMonthNumber o 0thedatetheDate f  f I .prcskprsnullutxt m - I' .prcskprsnullutxt l# c# l n 1  day o 0thedatetheDate m"  TEXT I(/ .prcskprsnullutxt m(+  --Podcast I0< .prcsclicuieluiel 408  butT m47  Save z4  cwin m  Savex l>> \4  prcs m Audacity Zm.W l i I "0getpaddedstringgetPaddedString o 0anumberaNumber Z A o 0anumberaNumber m L  b  m 0 l  c  o 0anumberaNumber m  TEXT L l c o 0anumberaNumber m  TEXT l i I 0getmonthnumbergetMonthNumber o 0adateaDate Z = n m  mnth o 0adateaDate m  jan L  m  =  n  m  mnth o  0adateaDate m  feb  L m = n m  mnth o 0adateaDate m  mar  L"$ m"# =', n'* m(*  mnth o'( 0adateaDate m*+  apr  L/1 m/0 =49 n47 m57  mnth o45 0adateaDate m78  may  L<> m<= =AF nAD mBD  mnth oAB 0adateaDate mDE  jun  LIK mIJ =NS   nNQ   mOQ  mnth  oNO 0adateaDate  mQR  jul    LVX mVW =[` n[^ m\^  mnth o[\ 0adateaDate m^_  aug  Lce mcd =hm nhk mik  mnth ohi 0adateaDate mkl  sep  Lpr! !mpq  "# "=u|$% $nux&' &mvx  mnth 'ouv 0adateaDate %mx{  oct #() (L* *m )+, +=-. -n/0 /m  mnth 0o 0adateaDate .m  nov ,12 1L3 3m 245 4=67 6n89 8m  mnth 9o 0adateaDate 7m  dec 5: :L; ;m  <SYi=>?< 0the_output_mode 0the_song 0the_wait 0tick 0thismany "0getpaddedstringgetPaddedString 0getmonthnumbergetMonthNumber .aevtoappnull**** =@A "0getpaddedstringgetPaddedStringBB 0anumberaNumber@ 0anumberaNumberA  TEXT &%Y&>CD 0getmonthnumbergetMonthNumberEE 0adateaDateC 0adateaDateD~}|{z  mnth  jan  feb  mar  apr   may   jun   jul   aug   sep   oct ~ } nov | { dec z ,kY,lY,mY,Yw,Yj,Y],YP,YC,Y6,a aY%,a aY,a aYh?yFxwGHv y.aevtoappnull**** FkAIIoJJKKLLMMNN5OO?PPDQQQRRVuuxwGt t0iH?srqpoSnmlkjihgfedcba/`_^]\[ZYXWVKUTSRnQlPjONMLKJIH s.hookStopnullnullrd q pVol p cLiP o cTrkS n pnam m list l0matching_tracks k cobj j 0my_track i.hookPlaynullobj h.sysodelanullnmbr g.miscactvnullnull f prcs e.prcskprsnullutxt d.aevtquitnullnull c xppb b xpcp a pcap ` cwin _ tabg ^ radB ].prcsclicuieluiel \ scra [ tabB Z crow Y.corecnte******** X txtf W valL V selE U savo T savono S mbar R mbri Q menE P menI O.misccurdldt null N0thedatetheDate M year L TEXT K 0getmonthnumbergetMonthNumber J"0getpaddedstringgetPaddedString I day H butTvBu*j O*,FO*k/-[,\Zb@1&EOk/EOj Obj O/hZ*,EjYhO*,b*,FObj [OYOj*,FOPUO*j UOa*aa/ aj UUOa"*j Okj O*j O*aa/*a,FUOa*aa/|kj O*ak/ak/g*al/j Okj O*a k/a!k/GDk*a"-j #kh*a"/a$k/a%,be*a"/a&,FOkj Yh[OYUUUUOa*j UO*j UOa' *a(a)l UO*j UOa*aa*/*a+k/&*a,a-/*a.a//*a0a1/j UUUOlj O*aa2/b*j 3E`4O_4a5,a6&j Oa7j O))_4k+8k+9j Oa:j O_4a;,a6&j Oa/j UOPUUascr ޭ