FasdUAS 1.101.10 k l ! flac2aac 0.3b (2006-09-12) l  +% Jason Kaufman   l  '! http://thebadlands.org/flac2aac/  l )# "Yes it sucks, but so does iTunes" l l ]W Adapted from Jonathan Nathan's Make MP3 Audio Book - http://homepage.mac.com/jonn8/as/ p 0 output_dir p 0 shell_path p 0 with_ipod p!! 0desired_loudness "# "l#$% $i&' &I .aevtoappnull**** 'kj(()* )l+ +OI If you're only going to be using these AACs on an iPod, set this to true*,- ,r./ .m  boovtrue /o 0 with_ipod-01 0l2 2IC The standard ReplayGain level is 83dB, but I prefer 92dB for iPods134 3r56 5m\ 6o 0desired_loudness478 7r 9: 9m ; ;)#export PATH=:/usr/local/bin:$PATH;  :o 0 shell_path8<= <r >? >m @ @~/Music/ ?o 0 output_dir=AB ArCD CIE .sysoexecTEXTTEXT EbFG FbHI HbJK Jo 0 shell_path KmL L echo  Io 0 output_dir GmM M | sed -e "s%~%${HOME}%" Do 0 output_dirBNO Nr2PQ Pn.RS R1*.  bhit Sl*T TI*UV .sysodlogaskrTEXT UmW WNHWould you like to process a directory full of FLACs or select one FLACs?VXY  btns XJ $ZZ[\ [m !] ] Directory\^ ^m!"_ _ FileY`  dflt `m%& Qo 0 the_buttonOa aZ3jbcd b=3:ef eo36 0 the_button fm69g g File cI=Rh .aevtodocnullalis hJ=Niij jl=Lk kc=Llm ll=Hn nI=Ho .sysostdfalisnullop  prmp pmADq q& Select a FLAC to convert to AAC: mmHK  alis dIUjr .aevtodocnullalis rJUfsst tcUduv ulU`w wIU`x .sysostflalisnullxy  prmp ymY\z z'!Select a directory full of FLACs: vm`c  alis%{| {l|}~ }i I .aevtodocnullalis o 0 the_files YC k> r c n 4  cobj o 0i o 0 the_files m  TEXT o 0the_file Z> D o 0the_file m : n# I# 0process_folder o 0the_file f Z&> >&/ n&- I'- 0 check_file o'( 0the_file m() flac f&' m-.  boovfals n2: I3: 0make_aac c36 o34 0the_file m45  alis f23 0i m I .corecnte******** o 0 the_files~ l i I 0process_folder o 0 the_folder k( r n I 0 get_file_list o 0 the_folder m flac f o 0 the_flacs Y ( n# I# 0make_aac c n 4  cobj o 0i o 0 the_flacs m  alis f 0i m  I .corecnte******** o 0 the_flacs l i  I 0 check_file o~ ~ 0the_file} o| |0file_extension} Z { lz D oy y 0the_file ox x0file_extensionz L ow w 0the_file{ L m v v boovfals lutut i Isr s0 get_file_list oq q0 the_folderp oo o0file_extensionpr k] r Jnn om m 0 the_files O r  n  2 l l cobj 4 k k cfol o j j0 the_folder oi i 0 file_list mnull  Finder.app^9IǗHW}6hg×<Ǘ${v×|MACSalisfUntitledDH+  Finder.appCؿ CoreServices6n  /Untitled:System:Library:CoreServices:Finder.app Finder.appUntitled&System/Library/CoreServices/Finder.app/ XZh Z#Ug D#( l#&f c#& o#$e e 0new_file m$%d d TEXTf m&' : n+3 I,3cb c0process_folder a  c,/   o,-` ` 0new_file  m-._ _ TEXTab f+,g k6U     r6A l6?^ n6? I7?]\ ]0 check_file l7:[ c7: o78Z Z 0new_file m89Y Y TEXT[X o:;W W0file_extensionX\ f67^ oV V 0the_fileU ZBUTS >BE oBCR R 0the_file mCDQ Q boovfals rHQ !  bHO"# "oHIP P 0 the_files #JIN$$%O %cIL&' &oIJN N 0new_file 'mJKM M TEXTO !oL L 0 the_filesTSU h 0new_file oK K 0 file_list(J (L[]) )o[\I I 0 the_filesJ*+ *lH,H ,# End Make MP3 Audio Book code+-. -lGFGF./0 /i12 1IE3D E 0make_aac34C 4oB B 0a_flacCD 2k+5567 6r 89 8n:; :1A A strq ;n<= <1@ @ psxp =l>? >c?@ ?o> > 0a_flac @m= = alis? 9o< <0shellified_flac7AB Al ;C; C set the_artwork to do shell script shell_path & "echo " & quoted form of (a_flac as string) & " | sed -e 's/\\(.*\\):.*/\\1/'"BDE Dl :F: FB< set the_artwork to ((the_artwork & ":.cover.jpg") as alias)EGH Gl 9898HIJ Ir KL Km M M: LnNO N1 7 7 txdl O1 6 6 ascrJPQ Pl5454QRS RrTU T43V 3 psxf VlW2 WcXY XlZ1 Zb[\ [o0 00 output_dir \I/]. / 0 flac2aiff]^- ^o, ,0shellified_flac-.1 Ym+ + TEXT2 Uo* * 0the_aiffS_` _l )a) a60set track_artwork to read the_artwork as picture`bc br 0de dI .(f' (0 strip_equalsfg& gI!*%h$ %.sysoexecTEXTTEXT hb!&ij ib!$kl ko!"# #0 shell_path lm"#m m2,metaflac --no-utf8-convert --show-tag=ALBUM  jo$%" "0shellified_flac$&' eo! !0 track_albumcno nr1Apq pI1? r 0 strip_equalsrs sI2;t .sysoexecTEXTTEXT tb27uv ub25wx wo23 0 shell_path xm34y y3-metaflac --no-utf8-convert --show-tag=ARTIST  vo56 0shellified_flac qo 0 track_artistoz{ zrBR|} |IBP~ 0 strip_equals~ ICL .sysoexecTEXTTEXT bCH bCF oCD 0 shell_path mDE 4.metaflac --no-utf8-convert --show-tag=COMMENT  oFG 0shellified_flac }o 0 track_comment{ rSe ISc 0 strip_equals IT_  .sysoexecTEXTTEXT bT[ bTY oTU 0 shell_path mUX 71metaflac --no-utf8-convert --show-tag=DISCNUMBER  oYZ 0shellified_flac  o 0 track_disc rfx Ifv 0 strip_equals Igr .sysoexecTEXTTEXT bgn bgl ogh 0 shell_path mhk 2,metaflac --no-utf8-convert --show-tag=TITLE  olm 0shellified_flac o 0 track_name ry cy Iy 0 strip_equals Iz .sysoexecTEXTTEXT bz bz oz{ 0 shell_path m{~ 82metaflac --no-utf8-convert --show-tag=TRACKNUMBER  o 0shellified_flac m  long o 0 track_number r l c I 0 strip_equals I .sysoexecTEXTTEXT b b b o 0 shell_path m B  pEnc (o 0preferred_encoder&)* )rAL+, +lAJ- -nAJ./ .1FJ  pnam /2AF  cEnc ,o 0available_encoders*01 0XM23 2Za456 4=ao78 7nak9: 91gk  pFmt :4ag;  cEnc ;oef 0anencanEnc 8mkn< < AAC 5kr==>? >rr~@A @4rxB  cEnc Bovw 0anencanEnc A1x}  pEnc?C CS 6kDDEF EIGH .sysodlogaskrTEXT GmI I-'Cannot continue. Error setting encoder.HJK  btns JJLLM MmN N CancelKOP  dflt OmPQ  disp QmFR RRS .ascrerr ********ST  errn Tm 0anencanEnc 3oPQ 0available_encoders1UV UrWX WIY .hookConvcTrk@obj YcZ[ Zo 0the_aiff [m  alis Xo 0the_aacV\] \r^_ ^l` `nab a4c  cobj cm bo 0the_aac _o 0 the_track]de dOfg fkhhij irkl ko 0 track_album l1  pAlbjmn mrop oo 0 track_artist p1  pArtnqr qrst so 0 track_comment t1  pCmtruv urwx wo 0 track_year x1  pYr vyz yr{| {o 0 track_name |1~ ~ pnamz}~ }r l} c o| |0 track_vol_adj m{ { long} lz 1y y pAdjz~ r lx c ow w0 track_disc mv v longx lu 1t t pDsNus r o r r0 track_number 1 q q pTrNs gop p 0 the_tracke loo " re-instate original encodern r om m0preferred_encoder 1l l pEncn m"%null@ iTunes.app^9IǗHrW}6hg×<Ǘ${v×|hookalis@UntitledDH+@ iTunes.app0' Applications'Z@ Untitled:Applications:iTunes.app iTunes.appUntitledApplications/iTunes.app/ I)kj k.sysoexecTEXTTEXT b% b oi i0 shell_path m  rm  n$ 1"$h h strq n" 1 "g g psxp o f f 0the_aiffje l**dd )# End Doug's AppleScripts for iTunese0 lcbcb laa RL Adapted from Scott Brown's xACT - http://groups.yahoo.com/group/xACT-users/ i I`_ ` 0 flac2aiff^ o] ] 0a_flac^_ kD r m / n 1\ \ txdl 1[ [ ascr r l Z n  4 Y Y citm m XX l W c  oV V 0a_flac mU U TEXTWZ oT T 0the_name r m . n 1S S txdl 1R R ascr r b lQ n 4P P citm mOO oN N 0the_nameQ m  .aiff oM M 0the_name r+ l)L I)KJ K.sysoexecTEXTTEXT b% b# b! oI I0 shell_path m   echo ' o!"H H 0the_name m#$ ' | sed -e "s/'//g"JL oG G 0the_name r,3 l,1F n,1 1/1E E strq l,/D b,/ o,-C C0 output_dir o-.B B 0the_nameDF oA A 0outfile l44@?@? I4A>= >.sysoexecTEXTTEXT b4= b4; b49 b47 o45< <0 shell_path m56 ("flac -s -d -f --force-aiff-format  o78; ; 0a_flac m9:   -o  o;<: : 0outfile=9 LBD oBC8 8 0the_name9 l7676 i I54 50 strip_equals3 o2 20name_value_pair34 k  r   m  =  n   11 1 txdl  10 0 ascr/ L  l . l - n  4 , , citm m ++ o* *0name_value_pair-./) l((  End xACT code ) ''&%$#"!  &.aevtoappnull**** %.aevtodocnullalis $0process_folder #0 check_file "0 get_file_list ! 0make_aac 0 flac2aiff 0 strip_equals' ! .aevtoappnull**** !;@LMW]_gq z  0 with_ipod\ 0desired_loudness 0 shell_path 0 output_dir .sysoexecTEXTTEXT  btns  dflt .sysodlogaskrTEXT  bhit 0 the_button  prmp .sysostdfalisnull  alis .aevtodocnullalis .sysostflalisnullkeEOEOEOEO%%%j EOlvk a,E`O_a*aal a&kvj Y*aal a&kvj  "# .aevtodocnullalis  0 the_files"  0 the_files 0i  0the_file#  .corecnte********  cobj  TEXT 0process_folder 0 check_file  alis 0make_aacDBkj kh/&EO )k+Y)l+f )&k+Yh[OY$% 0process_folder&& 0 the_folder$ 0 the_folder 0 the_flacs 0i% 0 get_file_list .corecnte********  cobj  alis 0make_aac))l+EOkj kh)/&k+[OY'( 0 check_file)) 0the_file 0file_extension' 0the_file 0file_extension(Yf*+ 0 get_file_list,, 0 the_folder 0file_extension* 0 the_folder 0file_extension 0 the_files 0 file_list 0new_file 0the_file+   cfol  cobj  kocl .corecnte********  TEXT 0process_folder 0 check_file^jvEO */-EUOF[l kh& )&k+Y!)&l+EOf&kv%EYh[OYO2-. 0make_aac// 0a_flac- 0a_flac 0shellified_flac 0the_aiff 0 track_album 0 track_artist 0 track_comment 0 track_disc 0 track_name 0 track_number 0 track_vol_adj 0 track_year 0 the_playlist 0preferred_encoder 0available_encoders 0anencanEnc 0the_aac 0 the_track.@Mmy$<IN  alis  psxp  strq  ascr  txdl  psxf 0 output_dir 0 flac2aiff  TEXT 0 shell_path .sysoexecTEXTTEXT 0 strip_equals  long  nmbr 0 with_ipod 0desired_loudnessS .sysorondlongdoub .miscactvnullnull  cPly  pEnc  cEnc  pnam  kocl  cobj .corecnte********  pFmt  btns  dflt  disp .sysodlogaskrTEXT  errn .hookConvcTrk@obj  pAlb  pArt  pCmt  pYr  pAdj  pDsN  pTrN,&,,EO,FO**k+%&/EO*%%j k+ EO*%%j k+ EO*%%j k+ EO*a%%j k+ EO*a%%j k+ EO*a%%j k+ a&EO*a%%a%j k+ a&EOajEYO_e(aka_aa!$l! a!j EY!aka_aa!$l! j EO*a %%a!%j k+ a&EOa"*j #O*a$a%/EO*a&,EO*a'-a(,EO^[a)a*l +kh*a'/a,,a-*a'/*a&,FOY&a.a/a0kva1ka2ja3 4O)a5a6lh[OYO&j 7EOa*k/E^O]I*a8,FO*a9,FO*a:,FO*a;,FO*a(,FOa&*a<,FOa&*a=,FO*a>,FUO*a&,FUOa?%,,%j OP01 0 flac2aiff22 0a_flac0 0a_flac 0the_name 0outfile1~}|  ascr  txdl  TEXT  citm 0 shell_path ~.sysoexecTEXTTEXT }0 output_dir | strqE,FO&i/EO,FOk/%EO%%%j EOˡ%,EO%%%%j O{zy34x {0 strip_equalszw5w5v v0name_value_pairy3u u0name_value_pair4 tsr t ascr s txdl r citmx ,FOi/Eascr ޭ