FasdUAS 1.101.10 k l ! flac2aac 0.3d (2007-08-21) 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 WMGWould you like to process a directory full of FLACs or select one FLAC?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.appUЗ9'Gї8$~6X$͗Gї$P2͗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 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/ /nAJ01 01FJ  pnam 12AF  cEnc .o 0available_encoders,23 2XM45 4Za678 6=ao9: 9nak;< ;1gk  pFmt <4ag=  cEnc =oef 0anencanEnc :mkn> > AAC 7kr??@A @rr~BC B4rxD  cEnc Dovw 0anencanEnc C1x}  pEncAE ES 8kFFGH GIIJ .sysodlogaskrTEXT ImK K-'Cannot continue. Error setting encoder.JLM  btns LJNNO OmP P CancelMQR  dflt QmRS  disp SmHT TRU .ascrerr ********UV  errn Vm 0anencanEnc 5oPQ 0available_encoders3WX WrYZ YI[ .hookConvcTrk@obj [c\] \o 0the_aiff ]m  alis Zo 0the_aacX^_ ^r`a `lb bncd c4e  cobj em do 0the_aac ao 0 the_track_fg fOhi hkjjkl krmn mo 0 track_album n1  pAlblop orqr qo 0 track_artist r1  pArtpst sruv uo 0 track_comment v1  pCmttwx wryz yo 0 track_year z1  pYr x{| {r}~ }o~ ~0 track_name ~1} } pnam| r l| c o{ {0 track_vol_adj mz z long| ly 1x x pAdjy r lw c ov v0 track_disc mu u longw lt 1s s pDsNtr r o q q0 track_number 1 p p pTrNr ioo o 0 the_trackg lnn " re-instate original encoderm r ol l0preferred_encoder 1k k pEncm m"%null iTunes.appUЗ9'Gї8\~6X$͗Gї$P2͗lhookalisL Macintosh HDBH+ iTunes.app9 ApplicationsM$Macintosh HD:Applications:iTunes.app iTunes.app Macintosh HDApplications/iTunes.app/ I)ji j.sysoexecTEXTTEXT b% b oh h0 shell_path m  rm  n$ 1"$g g strq n" 1 "f f psxp o e e 0the_aiffid l**cc )# End Doug's AppleScripts for iTunesd0 lbaba l`` 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 1Z Z ascr r l Y n  4 X X citm m WW l V c  oU U 0a_flac mT T TEXTVY oS S 0the_name r m . n 1R R txdl 1Q Q ascr r b lP n 4O O citm mNN oM M 0the_nameP m  .aiff oL L 0the_name r+ l)K I)JI J.sysoexecTEXTTEXT b% b# b! oH H0 shell_path m   echo ' o!"G G 0the_name m#$ ' | sed -e "s/'//g"IK oF F 0the_name r,3 l,1E n,1 1/1D D strq l,/C b,/ o,-B B0 output_dir o-.A A 0the_nameCE o@ @ 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;<9 9 0outfile<8 LBD oBC7 7 0the_name8 l6565 i I43 40 strip_equals2 o1 10name_value_pair23 k    r   m  =  n 10 0 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_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/0 0make_aac11 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_track0>Mmy>KP  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  cPly  pnam  cobj  pEnc  cEnc  kocl .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"*a#-a$,a%k/EO*a&,EO*a'-a$,EO^[a(a%l )kh*a'/a*,a+*a'/*a&,FOY&a,a-a.kva/ka0ja1 2O)a3a4lh[OYO&j 5EOa%k/E^O]I*a6,FO*a7,FO*a8,FO*a9,FO*a$,FOa&*a:,FOa&*a;,FO*a<,FUO*a&,FUOa=%,,%j OP 23 0 flac2aiff44 0a_flac2 0a_flac 0the_name 0outfile3~}|  ascr  txdl  TEXT  citm 0 shell_path ~.sysoexecTEXTTEXT }0 output_dir | strqE,FO&i/EO,FOk/%EO%%%j EOˡ%,EO%%%%j O!{zy56x {0 strip_equalszw7w7v v0name_value_pairy5u u0name_value_pair6 tsr t ascr s txdl r citmx ,FOi/Eascr ޭ