FasdUAS 1.101.10 k l   flac2aac 0.2 (2004-08-23) 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**** kb  !" !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 FileCJK  dflt JmKL  disp Lm  ;o 0 the_button9M MZ+bNOP N=+2QR Qo+. 0 the_button Rm.1S S File OI5JT .aevtodocnullalis TJ5FUUV Vl5DW Wc5DXY Xl5@Z ZI5@[ .sysostdfalisnull[\  prmp \m9<] ]& Select a FLAC to convert to AAC: Ym@C  alis PIMb^ .aevtodocnullalis ^JM^__` `cM\ab alMXc cIMXd .sysostflalisnullde  prmp emQTf f'!Select a directory full of FLACs: bmX[  alisgh glhij iikl kIm .aevtodocnullalis mo 0 the_files lYCnop nk>qqrs rrtu tcvw vnxy x4z  cobj zo 0i yo 0 the_files wm  TEXT uo 0the_files{ {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 om pI .corecnte******** o 0 the_filesj 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_folderz oy y0file_extensionz| k] r Jxx ow w 0 the_files O r  n  2 v v cobj 4 u u cfol o t t0 the_folder os s 0 file_list mnull Finder.app07@ ()( `MACSalisfUntitledtH+ Finder.app2T. CoreServices~ /Untitled:System:Library:CoreServices:Finder.app Finder.appUntitled&System/Library/CoreServices/Finder.app/ XZr Z#Uq D#( l#&p c#& o#$o o 0new_file m$%n n TEXTp m&' : n+3 I,3ml m0process_folderk c,/ o,-j j 0new_file m-.i i TEXTkl f+,q k6U r6A l6?h n6? I7?gf g0 check_file l7:e c7: o78d d 0new_file m89c c TEXTeb o:;a a0file_extensionbf f67h o` ` 0the_file_ ZBU ^] >BE   oBC\ \ 0the_file  mCD[ [ boovfals  rHQ   bHO oHIZ Z 0 the_files JINY cIL oIJX X 0new_file mJKW W TEXTY  oV V 0 the_files^]_ r 0new_file oU U 0 file_listT L[] o[\S S 0 the_filesT lRR # End Make MP3 Audio Book code lQPQP i ION O 0make_aac M  oL L 0a_flacMN k!!"# "r $% $n&' &1K K strq 'n() (1J J psxp )l*I *c+, +oH H 0a_flac ,mG G alisI %oF F0shellified_flac#-. -l EDED./0 /I C1B C 0 flac2aiff12A 2o @ @0shellified_flacAB034 3l?>?>456 5r78 7m9 9: 8n:; :1= = txdl ;1< < ascr6<= <r)>? >I';@: ;.sysoexecTEXTTEXT @b#AB Ab!CD CbEF Eo9 90 shell_path FmG G echo  Dl H8 Hn IJ I4 7K 7 citm Km66 JlL5 LcMN Mo4 4 0a_flac Nm3 3 TEXT58 Bm!"O O | sed -e 's%flac$%aiff%': ?o2 2 0the_name=PQ Pr*4RS R4*21T 1 psxf Tl,1U0 Uc,1VW Vl,/X/ Xb,/YZ Yo,-. .0 output_dir Zo-.- - 0the_name/ Wm/0, , TEXT0 So+ + 0the_aiffQ[\ [l55*)*)\]^ ]r5E_` _I5C(a' (0 strip_equalsab& bI6?%c$ %.sysoexecTEXTTEXT cb6;de db69fg fo67# #0 shell_path gm78h h%metaflac --show-vc-field=ALBUM  eo9:" "0shellified_flac$&' `o! !0 track_album^ij irFXkl kIFV m 0 strip_equalsmn nIGRo .sysoexecTEXTTEXT obGNpq pbGLrs roGH 0 shell_path smHKt t& metaflac --show-vc-field=ARTIST  qoLM 0shellified_flac lo 0 track_artistjuv urYkwx wIYiy 0 strip_equalsyz zIZe{ .sysoexecTEXTTEXT {bZa|} |bZ_~ ~oZ[ 0 shell_path m[^ '!metaflac --show-vc-field=COMMENT  }o_` 0shellified_flac xo 0 track_commentv rl~ Il| 0 strip_equals Imx  .sysoexecTEXTTEXT bmt bmr omn 0 shell_path mnq %metaflac --show-vc-field=TITLE  ors 0shellified_flac  o 0 track_name r c I 0 strip_equals I .sysoexecTEXTTEXT b b o 0 shell_path m +%metaflac --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 5/metaflac --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 Z ? o 0 track_vol_adj m r l I .sysorondlongdoub l ] md l \ m l ^ l a m l ^ d l o 0 track_vol_adj m 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 $metaflac --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   1*/  pEnc  o 0preferred_encoder   r2=   l2; n2; 17;  pnam 227  cEnc o 0available_encoders  X> ZR =R` nR\ 1X\  pFmt 4RX  cEnc oVW 0anencanEnc m\_  AAC kcq !  rco"# "4ci$  cEnc $ogh 0anencanEnc #1in  pEnc!% %Spq kt&&'( 'It)* .sysodlogaskrTEXT )mtw+ +-'Cannot continue. Error setting encoder.*,-  btns ,Jz../ /mz}0 0 Cancel-12  dflt 1m23  disp 3m(4 4R5 .ascrerr ********56  errn 6m 0anencanEnc oAB 0available_encoders78 7r9: 9I; .hookConvcTrk@obj ;c<= <o 0the_aiff =m  alis :o 0the_aac8>? >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\_` _rab alc ccde do 0 track_vol_adj em  long blf f1  pAdj`gh grij io 0 track_number j1  pTrNhk kl Io 0 the_trackGlm lln n" re-instate original encodermo orpq po 0preferred_encoder q1~ ~ pEnc mrrnull* iTunes.app07@()( `hookalis@UntitledtH+* iTunes.app9~ט Applications* Untitled:Applications:iTunes.app iTunes.appUntitledApplications/iTunes.app/st sI}u| }.sysoexecTEXTTEXT ub vw vbxy xo{ {0 shell_path ymz z rm  wn {| {1  z z strq |n }~ }1 y y psxp ~ox x 0the_aiff|tw lvv )# End Doug's AppleScripts for iTunesw lutut lss RL Adapted from Scott Brown's xACT - http://groups.yahoo.com/group/xACT-users/ i Irq r 0 flac2aiffp oo o 0a_flacpq k0 r m / n 1n n txdl 1m m ascr r l l n  4 k k citm m jj l i c  oh h 0a_flac mg g TEXTil of f 0the_name r m . n 1e e txdl 1d d ascr r b lc n 4b b citm maa o` ` 0the_namec m  .aiff o_ _ 0the_name l^]^] I-\[ \.sysoexecTEXTTEXT b) b' b% b# b! oZ Z0 shell_path m  %flac -s -d --force-aiff-format  o!"Y Y 0a_flac m#$   -o  o%&X X0 output_dir o'(W W 0the_name[V L.0 o./U U 0the_nameV lTSTS i IRQ R0 strip_equalsP oO O0name_value_pairPQ k  r m = n 1N N txdl 1M M ascrL L  l K l J n  4 I I citm m HH oG G0name_value_pairJKLF lEE  End xACT codeF DDCBA@?>=< C.aevtoappnull**** B.aevtodocnullalis A0process_folder @0 check_file ?0 get_file_list > 0make_aac = 0 flac2aiff <0 strip_equals;:98 ;.aevtoappnull****:9%7*6675A4GI3210/.S-],+*f) 70 shell_path 60 output_dir 5.sysoexecTEXTTEXT 4 btns 3 dflt 2 disp1 0.sysodlogaskrTEXT / bhit .0 the_button - prmp ,.sysostdfalisnull + alis *.aevtodocnullalis ).sysostflalisnull8cEOEO%%%j EOlvlk ,E`O_a*aal a&kvj Y*aal a&kvj (l'&% (.aevtodocnullalis ' 0 the_files&$#" $ 0 the_files #0i " 0the_file !  !.corecnte********  cobj  TEXT 0process_folder 0 check_file  alis  0make_aac%DBkj 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[OYO 0make_aac 0a_flac 0a_flac 0shellified_flac 0the_name 0the_aiff 0 track_album 0 track_artist 0 track_comment 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>9GOhtr+0z  alis  psxp  strq 0 flac2aiff  ascr  txdl 0 shell_path  TEXT  citm .sysoexecTEXTTEXT  psxf 0 output_dir 0 strip_equals  long  nmbrd  .sysorondlongdoub .miscactvnullnull  cPly  pEnc  cEnc  pnam  kocl  cobj .corecnte********  pFmt  btns  dflt  disp .sysodlogaskrTEXT  errn .hookConvcTrk@obj  pAlb  pArt  pCmt  pYr  pAdj  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+a&EO*a%%a%j k+a&EOajEY:jaka'a!$l! j EYakaa!$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 6EOa)k/E^O]?*a7,FO*a8,FO*a9,FO*a:,FO*a',FOa&*a;,FO*a<,FOPUO*a%,FUOa=%,,%j OP 0 flac2aiff 0a_flac 0a_flac 0the_name   ascr  txdl  TEXT  citm 0 shell_path 0 output_dir .sysoexecTEXTTEXT1,FO&i/EO,FOk/%EO%%%%%j O 0 strip_equals 0name_value_pair 0name_value_pair  ascr  txdl  citm ,FOi/Eascr ޭ