FasdUAS 1.101.10 k l ! flac2aac 0.2c (2004-11-20) 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@ @()( `MACSalisfUntitledH+ Finder.app2 K 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 E/E / set the_artwork to do shell script shell_path & "echo " & quoted form of (a_flac as string) & " | sed -e 's/\\(.*\\):.*/\\1/'".01 0l D2D 2B< set the_artwork to ((the_artwork & ":.cover.jpg") as alias)134 3I C5B C 0 flac2aiff56A 6o @ @0shellified_flacAB478 7l?>?>89: 9r;< ;m= =: <n>? >1= = txdl ?1< < ascr:@A @r+BC BI);D: ;.sysoexecTEXTTEXT Db%EF Eb#GH GbIJ Io9 90 shell_path JmK K echo  Hn"LM L1 "8 8 strq Ml N7 Nn OP O4 6Q 6 citm Qm55 PlR4 RcST So3 3 0a_flac Tm2 2 TEXT47 Fm#$U U | sed -e 's%flac$%aiff%': Co1 1 0the_nameAVW Vr,6XY X4,40Z 0 psxf Zl.3[/ [c.3\] \l.1^. ^b.1_` _o./- -0 output_dir `o/0, , 0the_name. ]m12+ + TEXT/ Yo* * 0the_aiffWab al77)c) c60set track_artwork to read the_artwork as picturebde dr7Gfg fI7E(h' (0 strip_equalshi& iI8A%j$ %.sysoexecTEXTTEXT jb8=kl kb8;mn mo89# #0 shell_path nm9:o o%metaflac --show-vc-field=ALBUM  lo;<" "0shellified_flac$&' go! !0 track_albumepq prHZrs rIHX t 0 strip_equalstu uIITv .sysoexecTEXTTEXT vbIPwx wbINyz yoIJ 0 shell_path zmJM{ {& metaflac --show-vc-field=ARTIST  xoNO 0shellified_flac so 0 track_artistq|} |r[m~ ~I[k 0 strip_equals I\g .sysoexecTEXTTEXT b\c b\a o\] 0 shell_path m]` '!metaflac --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 %metaflac --show-vc-field=TITLE  otu 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 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   pEnc o 0preferred_encoder r l n 1  pnam 2  cEnc o 0available_encoders X~ Z3y =3A n3= 19=  pFmt  439  cEnc  o78 0anencanEnc m=@  AAC kDR     rDP 4DJ  cEnc oHI 0anencanEnc 1JO  pEnc SQR kUy IUn .sysodlogaskrTEXT mUX -'Cannot continue. Error setting encoder.  btns J[` m[^  Cancel  dflt mcd  disp  mgh! !Roy" .ascrerr ********"#  errn #msv 0anencanEnc o"# 0available_encoders$% $r&' &I( .hookConvcTrk@obj (c)* )o 0the_aiff *m  alis 'o 0the_aac%+, +r-. -l/ /n01 042  cobj 2m 1o 0the_aac .o 0 the_track,34 3O56 5k7789 8r:; :o 0 track_album ;1  pAlb9<= <r>? >o 0 track_artist ?1  pArt=@A @rBC Bo 0 track_comment C1  pCmtADE DrFG Fo 0 track_year G1  pYr EHI HrJK Jo 0 track_name K1  pnamILM LrNO NlP PcQR Qo 0 track_vol_adj Rm  long OlS S1  pAdjMTU TrVW Vo 0 track_number W1  pTrNUX Xl 6o 0 the_track4YZ Yl[ [" re-instate original encoderZ\ \r]^ ]o 0preferred_encoder ^1  pEnc m__null iTunes.app07@Z@()( `hookalis@UntitledH+ iTunes.app+O{ ApplicationsQ Untitled:Applications:iTunes.app iTunes.appUntitledApplications/iTunes.app/`a `Ib .sysoexecTEXTTEXT bbcd cbef eo 0 shell_path fmg g rm  dnhi h1  strq injk j1  psxp ko 0the_aiffal llm m)# End Doug's AppleScripts for iTunesno nlopq plr rRL Adapted from Scott Brown's xACT - http://groups.yahoo.com/group/xACT-users/qst siuv uIw 0 flac2aiffwx xo 0a_flac vk6yyz{ zr|} |m~ ~/ }n 1  txdl 1  ascr{ r l  n  4 ~ ~ citm m }} l | c  o{ { 0a_flac mz z TEXT| oy y 0the_name r m . n 1x x txdl 1w w ascr r b lv n 4u u citm mtt os s 0the_namev m  .aiff or r 0the_name r% l#q n# 1!#p p strq l!o b! on n0 output_dir o m m 0the_nameoq ol l 0outfile l&&kjkj I&3ih i.sysoexecTEXTTEXT b&/ b&- b&+ b&) o&'g g0 shell_path m'( %flac -s -d --force-aiff-format  o)*f f 0a_flac m+,   -o  o-.e e 0outfilehd L46 o45c c 0the_namedt lbaba i I`_ `0 strip_equals^ o] ]0name_value_pair^_ k  r m = n 1\ \ txdl 1[ [ ascrZ L  l Y l X n  4 W W citm m VV oU U0name_value_pairXYZT lSS  End xACT codeTR%QPONMRLKJIHGFEDCBA@?>= L.aevtoappnull**** K.aevtodocnullalis J0process_folder I0 check_file H0 get_file_list G 0make_aac F 0 flac2aiff E0 strip_equals D0 shell_path C0 output_dir B0 the_buttonA@?>=<;:9 <.aevtoappnull****;:%8*7676A5GI43210/S.]-,+f* 80 shell_path 70 output_dir 6.sysoexecTEXTTEXT 5 btns 4 dflt 3 disp2 1.sysodlogaskrTEXT 0 bhit /0 the_button . prmp -.sysostdfalisnull , alis +.aevtodocnullalis *.sysostflalisnull9cEOEO%%%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==KUo{_ g  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  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&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.kva/ka0ja1 2O)a3a4lh[OYO&j 5EOa(k/E^O]?*a6,FO*a7,FO*a8,FO*a9,FO*a&,FOa&*a:,FO*a;,FOPUO*a$,FUOa<%,,%j OPv 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/FileQPONMascr ޭ