FasdUAS 1.101.10 k l   flac2aac 0.3 (2006-04-24) 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  boovfals /o 0 with_ipod-01 0l2 2IC The standard ReplayGain level is 83dB, but I prefer 92dB for iPods134 3r56 5mS 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 !] ] Folder\^ ^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.appPPTpp|0()J(O;xנ}MACSalisfUntitledH+ Finder.appCpg~5 CoreServices=gą /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 2kJ5567 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 GI 9I8 9 0 flac2aiffIJ7 Jo 6 60shellified_flac78HKL Kl5454LMN MrOP OmQ Q: PnRS R13 3 txdl S12 2 ascrNTU Tr+VW VI)1X0 1.sysoexecTEXTTEXT Xb%YZ Yb#[\ [b]^ ]o/ /0 shell_path ^m_ _ echo  \n"`a `1 ". . strq al b- bn cd c4 ,e , citm em++ dlf* fcgh go) ) 0a_flac hm( ( TEXT*- Zm#$i i | sed -e 's%flac$%aiff%'0 Wo' ' 0the_nameUjk jr,6lm l4,4&n & psxf nl.3o% oc.3pq pl.1r$ rb.1st so./# #0 output_dir to/0" " 0the_name$ qm12! ! TEXT% mo 0the_aiffkuv ul77w w60set track_artwork to read the_artwork as picturevxy xr7Gz{ zI7E| 0 strip_equals|} }I8A~ .sysoexecTEXTTEXT ~b8= b8; o89 0 shell_path m9: 2,metaflac --no-utf8-convert --show-tag=ALBUM  o;< 0shellified_flac {o 0 track_albumy rHZ IHX 0 strip_equals IIT .sysoexecTEXTTEXT bIP bIN oIJ 0 shell_path mJM 3-metaflac --no-utf8-convert --show-tag=ARTIST  oNO 0shellified_flac o 0 track_artist r[m I[k 0 strip_equals I\g  .sysoexecTEXTTEXT b\c b\a o\] 0 shell_path m]` 4.metaflac --no-utf8-convert --show-tag=COMMENT  oab 0shellified_flac   o 0 track_comment rn In~ 0 strip_equals Ioz .sysoexecTEXTTEXT bov bot oop 0 shell_path mps 71metaflac --no-utf8-convert --show-tag=DISCNUMBER  otu 0shellified_flac o 0 track_disc r I 0 strip_equals I .sysoexecTEXTTEXT b b o 0 shell_path m 2,metaflac --no-utf8-convert --show-tag=TITLE  o 0shellified_flac o 0 track_name r c I 0 strip_equals I .sysoexecTEXTTEXT b b o 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 =1TY  pEnc >o 0preferred_encoder<?@ ?r\gAB Al\eC Cn\eDE D1ae  pnam E2\a  cEnc Bo 0available_encoders@FG FXhHI HZ|JKL J=|MN Mn|OP O1  pFmt P4|Q  cEnc Qo 0anencanEnc NmR R AAC KkSSTU TrVW V4X  cEnc Xo 0anencanEnc W1  pEncUY YS LkZZ[\ [I]^ .sysodlogaskrTEXT ]m_ _-'Cannot continue. Error setting encoder.^`a  btns `Jbbc cmd d Cancelaef  dflt emfg  disp gm\h hRi .ascrerr ********ij  errn jm 0anencanEnc Iokl 0available_encodersGkl krmn mIo .hookConvcTrk@obj ocpq po 0the_aiff qm  alis no 0the_aaclrs rrtu tlv vnwx w4y  cobj ym xo  0the_aac uo~ ~ 0 the_tracksz{ zO/|} |k.~~ r o} }0 track_album 1| | pAlb r o{ {0 track_artist 1z z pArt r oy y0 track_comment 1x x pCmt r ow w0 track_year 1v v pYr  r ou u0 track_name 1 t t pnam r ls c or r0 track_vol_adj mq q longs lp 1o o pAdjp r& l n c  om m0 track_disc ml l longn lk 1 %j j pDsNki r'. o'(h h0 track_number 1(-g g pTrNi }of f 0 the_track{ l00ee " re-instate original encoderd r07 o01c c0preferred_encoder 116b b pEncd 1m=@null) iTunes.appPPTpp|0()J(O;xנ}hookalis@UntitledH+) iTunes.app9"l Applications=m8<) Untitled:Applications:iTunes.app iTunes.appUntitledApplications/iTunes.app// I9Ha` a.sysoexecTEXTTEXT b9D b9> o9:_ _0 shell_path m:=  rm  n>C 1AC^ ^ strq n>A 1?A] ] psxp o>?\ \ 0the_aiff`[ lIIZZ )# End Doug's AppleScripts for iTunes[0 lYXYX lWW RL Adapted from Scott Brown's xACT - http://groups.yahoo.com/group/xACT-users/ i IVU V 0 flac2aiffT oS S 0a_flacTU k6 r m / n 1R R txdl 1Q Q ascr r l P n  4 O O citm m NN l M c  oL L 0a_flac mK K TEXTMP oJ J 0the_name r m . n 1I I txdl 1H H ascr r b lG n 4F F citm mEE oD D 0the_nameG m  .aiff oC C 0the_name r% l#B n# 1!#A A strq l!@ b! o? ?0 output_dir o > > 0the_name@B o= = 0outfile l&&<;<; I&3:9 :.sysoexecTEXTTEXT b&/ b&- b&+ b&) o&'8 80 shell_path m'( %flac -s -d --force-aiff-format  o)*7 7 0a_flac m+,   -o  o-.6 6 0outfile95 L46 o454 4 0the_name5 l3232 i   I1 0 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 '() .aevtoappnull****();@LMW]_ g q z  0 with_ipodS 0desired_loudness 0 shell_path 0 output_dir .sysoexecTEXTTEXT  btns  dflt .sysodlogaskrTEXT  bhit 0 the_button  prmp .sysostdfalisnull  alis .aevtodocnullalis .sysostflalisnullkfEOEOEOEO%%%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 0 check_file11 0the_file 0file_extension/ 0the_file 0file_extension0Yf$23 0 get_file_list44 0 the_folder 0file_extension2 0 the_folder 0file_extension 0 the_files 0 file_list 0new_file 0the_file3   cfol  cobj  kocl .corecnte********  TEXT 0process_folder 0 check_file^jvEO */-EUOF[l kh& )&k+Y!)&l+EOf&kv%EYh[OYO%256 0make_aac77 0a_flac5 0a_flac 0shellified_flac 0the_name 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_track6CQ_i'(:R_d  alis  psxp  strq 0 flac2aiff  ascr  txdl 0 shell_path  TEXT  citm .sysoexecTEXTTEXT  psxf 0 output_dir 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  pTrNK&,,EO*k+O,FO%&i/,%%j EO*΢%&/EO*%%j k+EO*a%%j k+EO*a%%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/,a0*a*/*a),FOY&a1a2a3kva4ka5ja6 7O)a8a9lh[OYO&j :E^O]a-k/E^O]I*a;,FO*a<,FO*a=,FO*a>,FO*a+,FOa&*a?,FOa&*a@,FO*aA,FUO*a),FUOaB%,,%j OP&89 0 flac2aiff:: 0a_flac8~ 0a_flac  0the_name ~ 0outfile9 }|{zyxwv } ascr | txdl { TEXT z citm y0 output_dir x strq w0 shell_path v.sysoexecTEXTTEXT7,FO&i/EO,FOk/%EOǡ%,EO%%%%j O'u ts;