FasdUAS 1.101.10 k l ! flac2aac 0.2d (2005-02-26) 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 i I .aevtoappnull**** k\  !" !r#$ #m% %)#export PATH=:/usr/local/bin:$PATH;  $o 0 shell_path"&' &r() (m* *~/Music/ )o 0 output_dir'+, +r-. -I/ .sysoexecTEXTTEXT /b01 0b 23 2b 45 4o 0 shell_path 5m 6 6 echo  3o 0 output_dir 1m 7 7 | sed -e "s%~%${HOME}%" .o 0 output_dir,89 8r&:; :n$<= <1"$  bhit =l"> >I"?@ .sysodlogaskrTEXT ?mA ANHWould you like to process a directory full of FLACs or select one FLACs?@BC  btns BJDDEF EmG G FolderFH HmI I FileCJ  dflt Jm ;o 0 the_button9K KZ'\LMN L=',OP Oo'( 0 the_button Pm(+Q Q File MI/DR .aevtodocnullalis RJ/@SST Tl/>U Uc/>VW Vl/:X XI/:Y .sysostdfalisnullYZ  prmp Zm36[ [& Select a FLAC to convert to AAC: Wm:=  alis NIG\\ .aevtodocnullalis \JGX]]^ ^cGV_` _lGRa aIGRb .sysostflalisnullbc  prmp cmKNd d'!Select a directory full of FLACs: `mRU  alisef elfgh giij iIk .aevtodocnullalis ko 0 the_files jYClmn lk>oopq prrs rctu tnvw v4x  cobj xo 0i wo 0 the_files um  TEXT so 0the_fileqy yZ>z{| zD}~ }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 mm nI .corecnte******** o 0 the_filesh 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 l D o 0the_file o 0file_extension L o 0the_file L m  boovfals l i I~ 0 get_file_list o} }0 the_folder| o{ {0file_extension|~ k] r Jzz oy y 0 the_files O r  n  2 x x cobj 4 w w cfol o v v0 the_folder ou u 0 file_list mnull Finder.app07@ Kp()( `LMACSalisfUntitledtH+ Finder.app2T. CoreServices~ /Untitled:System:Library:CoreServices:Finder.app Finder.appUntitled&System/Library/CoreServices/Finder.app/ XZt Z#Us D#( l#&r c#& o#$q q 0new_file m$%p p TEXTr m&' : n+3 I,3on o0process_folderm c,/ o,-l l 0new_file m-.k k TEXTmn f+,s k6U r6A l6?j n6? I7?ih i0 check_file l7:g c7: o78f f 0new_file m89e e TEXTgd o:;c c0file_extensiondh f67j ob b 0the_filea ZBU`_ >BE oBC^ ^ 0the_file  mCD] ] boovfals rHQ   bHO   oHI\ \ 0 the_files  JIN[ cIL oIJZ Z 0new_file mJKY Y TEXT[  oX X 0 the_files`_a t 0new_file oW W 0 file_listV L[] o[\U U 0 the_filesV lTT # End Make MP3 Audio Book code lSRSR i IQP Q 0make_aacO oN N 0a_flacOP k !  r "# "n$% $1M M strq %n&' &1L L psxp 'l(K (c)* )oJ J 0a_flac *mI I alisK #oH H0shellified_flac!+, +l G-G - set the_artwork to do shell script shell_path & "echo " & quoted form of (a_flac as string) & " | sed -e 's/\\(.*\\):.*/\\1/'",./ .l F0F 0B< set the_artwork to ((the_artwork & ":.cover.jpg") as alias)/12 1I E3D E 0 flac2aiff34C 4o B B0shellified_flacCD256 5lA@A@678 7r9: 9m; ;: :n<= <1? ? txdl =1> > ascr8>? >r+@A @I)=B< =.sysoexecTEXTTEXT Bb%CD Cb#EF EbGH Go; ;0 shell_path HmI I echo  Fn"JK J1 ": : strq Kl L9 Ln MN M4 8O 8 citm Om77 NlP6 PcQR Qo5 5 0a_flac Rm4 4 TEXT69 Dm#$S S | sed -e 's%flac$%aiff%'< Ao3 3 0the_name?TU Tr,6VW V4,42X 2 psxf Xl.3Y1 Yc.3Z[ Zl.1\0 \b.1]^ ]o.// /0 output_dir ^o/0. . 0the_name0 [m12- - TEXT1 Wo, , 0the_aiffU_` _l77+a+ a60set track_artwork to read the_artwork as picture`bc br7Gde dI7E*f) *0 strip_equalsfg( gI8A'h& '.sysoexecTEXTTEXT hb8=ij ib8;kl ko89% %0 shell_path lm9:m m71metaflac --no-utf8-convert --show-vc-field=ALBUM  jo;<$ $0shellified_flac&() eo# #0 track_albumcno nrHZpq pIHX"r! "0 strip_equalsrs sIITt .sysoexecTEXTTEXT tbIPuv ubINwx woIJ 0 shell_path xmJMy y82metaflac --no-utf8-convert --show-vc-field=ARTIST  voNO 0shellified_flac ! qo 0 track_artistoz{ zr[m|} |I[k~ 0 strip_equals~ I\g .sysoexecTEXTTEXT b\c b\a o\] 0 shell_path m]` 93metaflac --no-utf8-convert --show-vc-field=COMMENT  oab 0shellified_flac }o 0 track_comment{ rn In~ 0 strip_equals Ioz .sysoexecTEXTTEXT bov bot oop 0 shell_path mps <6metaflac --no-utf8-convert --show-vc-field=DISCNUMBER  otu 0shellified_flac o 0 track_disc r I  0 strip_equals I .sysoexecTEXTTEXT b b o 0 shell_path m 71metaflac --no-utf8-convert --show-vc-field=TITLE  o 0shellified_flac o 0 track_name r c I 0 strip_equals I .sysoexecTEXTTEXT b b o 0 shell_path m =7metaflac --no-utf8-convert --show-vc-field=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 GAmetaflac --no-utf8-convert --show-vc-field=REPLAYGAIN_TRACK_GAIN  o 0shellified_flac m  | cut -d' ' -f1 m  nmbr o 0 track_vol_adj Z = o 0 track_vol_adj m  r m o 0 track_vol_adj r l I .sysorondlongdoub l ] m l \ m l ^ l a m l ^ o 0 track_vol_adj m m o 0 track_vol_adj r c I 0 strip_equals I .sysoexecTEXTTEXT b b b o 0 shell_path m 60metaflac --no-utf8-convert --show-vc-field=DATE  o 0shellified_flac m %| cut -d'-' -f1 | cut -d'.' -f1 m  long o 0 track_year l l a[ From Doug's AppleScripts for iTunes - http://www.malcolmadams.com/itunes/itinfo/info02.php O k  I  .miscactvnullnull r 4  cPly m  Library o 0 the_playlist r% 1#  pEnc o 0preferred_encoder r&1 l&/ n&/ 1+/  pnam 2&+  cEnc o 0available_encoders   X2   ZF   =FT nFP 1LP  pFmt 4FL  cEnc oJK 0anencanEnc mPS  AAC kWe rWc 4W]  cEnc o[\ 0anencanEnc 1]b  pEnc Sde kh Ih ! .sysodlogaskrTEXT  mhk" "-'Cannot continue. Error setting encoder.!#$  btns #Jns%%& &mnq' ' Cancel$()  dflt (mvw)*  disp *mz{+ +R, .ascrerr ********,-  errn -m 0anencanEnc  o56 0available_encoders ./ .r01 0I2 .hookConvcTrk@obj 2c34 3o 0the_aiff 4m  alis 1o 0the_aac/56 5r78 7l9 9n:; :4<  cobj <m ;o 0the_aac 8o 0 the_track6=> =O?@ ?kAABC BrDE Do 0 track_album E1  pAlbCFG FrHI Ho 0 track_artist I1  pArtGJK JrLM Lo 0 track_comment M1  pCmtKNO NrPQ Po 0 track_year Q1  pYr ORS RrTU To 0 track_name U1  pnamSVW VrXY XlZ Zc[\ [o 0 track_vol_adj \m  long Yl] ]1  pAdjW^_ ^r`a `lb bccd co 0 track_disc dm  long ale e1  pDsN_f frgh go 0 track_number h1  pTrN @o 0 the_track>ij ilk k" re-instate original encoderjl lrmn mo 0preferred_encoder n1  pEnc m oonull* iTunes.app07@ZKp()( `Lhookalis@UntitledtH+* iTunes.app9~ט Applications* Untitled:Applications:iTunes.app iTunes.appUntitledApplications/iTunes.app/pq pIr .sysoexecTEXTTEXT rbst sbuv uo 0 shell_path vmw w rm  tn xy x1   strq yn z{ z1   psxp {o 0the_aiffq| |l} })# End Doug's AppleScripts for iTunes~ ~l~~ l}} RL Adapted from Scott Brown's xACT - http://groups.yahoo.com/group/xACT-users/ i I|{ | 0 flac2aiffz oy y 0a_flacz{ k6 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 n# 1!#g g strq l!f b! oe e0 output_dir o d d 0the_namefh oc c 0outfile l&&baba I&3`_ `.sysoexecTEXTTEXT b&/ b&- b&+ b&) o&'^ ^0 shell_path m'( %flac -s -d --force-aiff-format  o)*] ] 0a_flac m+,   -o  o-.\ \ 0outfile_[ L46 o45Z Z 0the_name[ lYXYX i IWV W0 strip_equalsU oT T0name_value_pairUV k  r m = n 1S S txdl 1R R ascrQ L  l P l O n  4 N N citm m MM oL L0name_value_pairOPQK lJJ  End xACT codeKI%HGFEDICBA@?>=<;:987654 C.aevtoappnull**** B.aevtodocnullalis A0process_folder @0 check_file ?0 get_file_list > 0make_aac = 0 flac2aiff <0 strip_equals ;0 shell_path :0 output_dir 90 the_button876543210 3.aevtoappnull****21%/*.67-A,GI+*)('Q&[%$#d" /0 shell_path .0 output_dir -.sysoexecTEXTTEXT , btns + dflt* ).sysodlogaskrTEXT ( bhit '0 the_button & prmp %.sysostdfalisnull $ alis #.aevtodocnullalis ".sysostflalisnull0]EOEO%%%j EOlvk ,EOa*aal a&kvj Y*aal a&kvj !j  !.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_extensionYf 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[OYO 0make_aac 0a_flac 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_track?;ISmyo"'w  alis  psxp  strq 0 flac2aiff  ascr  txdl 0 shell_path  TEXT  citm .sysoexecTEXTTEXT  psxf 0 output_dir 0 strip_equals  long  nmbr  .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*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&EOajEYakaa!$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.a/kva0ka1ja2 3O)a4a5lh[OYO&j 6E^O]a)k/E^O]I*a7,FO*a8,FO*a9,FO*a:,FO*a',FOa&*a;,FOa&*a<,FO*a=,FUO*a%,FUOa>%,,%j OP 0 flac2aiff 0a_flac 0a_flac 0the_name 0outfile   ascr  txdl  TEXT  citm 0 output_dir  strq 0 shell_path .sysoexecTEXTTEXT7,FO&i/EO,FOk/%EOǡ%,EO%%%%j O 0 strip_equals 0name_value_pair 0name_value_pair  ascr  txdl  citm ,FOi/E,/Users/jkaufman/Music/ FolderHGFEDascr ޭ