FasdUAS 1.101.10 k l ! flac2aac 0.3c (2007-05-10) 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]9'7ʗ8d֐\5XƗ7ʗ$"ƗlMACSalisr Macintosh HDBH+ Finder.appES P CoreServices  f e3Macintosh HD:System:Library:CoreServices:Finder.app Finder.app Macintosh HD&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 2k15567 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!" !l.<# #n.<$% $47<&  cobj &m:; %n.7'( '137  pnam (2.3  cPly "o 0 the_playlist )* )r?F+, +1?D  pEnc ,o 0preferred_encoder*-. -rGR/0 /lGP1 1nGP23 21LP  pnam 32GL  cEnc 0o 0available_encoders.45 4XS67 6Zg89: 8=gu;< ;ngq=> =1mq  pFmt >4gm?  cEnc ?okl 0anencanEnc <mqt@ @ AAC 9kxAABC BrxDE D4x~F  cEnc Fo|} 0anencanEnc E1~  pEncCG GS :kHHIJ IIKL .sysodlogaskrTEXT KmM M-'Cannot continue. Error setting encoder.LNO  btns NJPPQ QmR R CancelOST  dflt SmTU  disp UmJV VRW .ascrerr ********WX  errn Xm 0anencanEnc 7oVW 0available_encoders5YZ Yr[\ [I] .hookConvcTrk@obj ]c^_ ^o 0the_aiff _m  alis \o 0the_aacZ`a `rbc bld dnef e4g  cobj gm fo 0the_aac co 0 the_trackahi hOjk jkllmn mrop oo 0 track_album p1  pAlbnqr qrst so 0 track_artist t1  pArtruv urwx wo 0 track_comment x1~ ~ pCmtvyz yr{| {o} }0 track_year |1| | pYr z}~ }r o{ {0 track_name 1z z pnam~ r ly c ox x0 track_vol_adj mw w longy lv 1u u pAdjv r  lt c os s0 track_disc mr r longt lq 1 p p pDsNqo r on n0 track_number 1m m pTrNo kol l 0 the_tracki lkk " re-instate original encoderj r oi i0preferred_encoder 1h h pEncj m"%null iTunes.app]9'7ʗ8֐\5XƗ7ʗ$"ƗlhookalisL Macintosh HDBH+ iTunes.app9 ApplicationsM$Macintosh HD:Applications:iTunes.app iTunes.app Macintosh HDApplications/iTunes.app/ I /gf g.sysoexecTEXTTEXT b + b % o !e e0 shell_path m!$  rm  n%* 1(*d d strq n%( 1&(c c psxp o%&b b 0the_aifffa l00`` )# End Doug's AppleScripts for iTunesa0 l_^_^ l]] RL Adapted from Scott Brown's xACT - http://groups.yahoo.com/group/xACT-users/ i I\[ \ 0 flac2aiffZ oY Y 0a_flacZ[ kD r m / n 1X X txdl 1W W ascr r l V n  4 U U citm m TT l S c  oR R 0a_flac mQ Q TEXTSV oP P 0the_name r m . n 1O O txdl 1N N ascr r b lM n 4L L citm mKK oJ J 0the_nameM m  .aiff oI I 0the_name r+ l)H I)GF G.sysoexecTEXTTEXT b% b# b! oE E0 shell_path m   echo ' o!"D D 0the_name m#$ ' | sed -e "s/'//g"FH oC C 0the_name r,3 l,1B n,1 1/1A A strq l,/@ b,/ o,-? ?0 output_dir o-.> > 0the_name@B o= = 0outfile l44<;<; I4A:9 :.sysoexecTEXTTEXT b4= b4; b49 b47 o458 80 shell_path m56 ("flac -s -d -f --force-aiff-format  o787 7 0a_flac m9:   -o  o;<6 6 0outfile95 LBD oBC4 4 0the_name5 l3232 i I10 10 strip_equals /  o. .0name_value_pair/0 k      r   m = n 1- - txdl 1, , 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  0 with_ipod 0desired_loudness 0 shell_path 0 output_dir 0 the_button ' &' .aevtoappnull****  &' ;@LMW]_gqz 0 with_ipod\ 0desired_loudness 0 shell_path 0 output_dir .sysoexecTEXTTEXT  btns  dflt .sysodlogaskrTEXT  bhit 0 the_button  prmp .sysostdfalisnull  alis .aevtodocnullalis .sysostflalisnull keEOEOEOEO%%%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 01 0 get_file_list22 0 the_folder 0file_extension0 0 the_folder 0file_extension 0 the_files 0 file_list 0new_file 0the_file1   cfol  cobj  kocl .corecnte********  TEXT 0process_folder 0 check_file^jvEO */-EUOF[l kh& )&k+Y!)&l+EOf&kv%EYh[OYO!234 0make_aac55 0a_flac3 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_track4?Mmy@MR~}|  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  pnam  cobj  pEnc  cEnc  kocl .corecnte********  pFmt  btns  dflt  disp .sysodlogaskrTEXT  errn .hookConvcTrk@obj  pAlb  pArt  pCmt  pYr ~ pAdj } pDsN | pTrN2&,,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%,a&k/EO*a',EO*a(-a%,EO^[a)a&l *kh*a(/a+,a,*a(/*a',FOY&a-a.a/kva0ka1ja2 3O)a4a5lh[OYO&j 6EOa&k/E^O]I*a7,FO*a8,FO*a9,FO*a:,FO*a%,FOa&*a;,FOa&*a<,FO*a=,FUO*a',FUOa>%,,%j OP"{zy67x { 0 flac2aiffzw8w8v v 0a_flacy6uts u 0a_flac t 0the_name s 0outfile7rqponmlk r ascr q txdl p TEXT o citm n0 shell_path m.sysoexecTEXTTEXT l0 output_dir k strqxE,FO&i/EO,FOk/%EO%%%j EOˡ%,EO%%%%j O#jih9:g j0 strip_equalsif;f;e e0name_value_pairh9d d0name_value_pair:cba c ascr b txdl a citmg ,FOi/E " boovtrue!\$<<,/Users/jkaufman/Music/%==File ascr ޭ