- compiled script - xmms-wrapper.zip should be in this directory - starting X11 app and passing dropable filennames to it - like xmms: from - http://www.sccs.swarthmore.edu/users/00/ceg/computer/drop_xmms.html on open these_items tell application "Finder" --Launch X11 and bring to front launch application "X11" --String that will be executed by the do shell script command --First set the display --Remove the -e if you'd rather not append to the playlist, but replace it set theCommand to "DISPLAY=:0.0; export DISPLAY; /sw/bin/xmms -e " --Process each file dropped on the droplet, appending the --POSIX path of the file to the end of "theCommand" set theFiles to these_items as string repeat with i from 1 to the count of these_items set thefile to POSIX path of (item i of these_items as string) set theFiles to these_items as string set theCommand to theCommand & " \"" & thefile & "\"" end repeat -- Finish theCommand string -- Pipe output to stdout and stderr so the command -- returns and AppleScript won't wait around for -- stdout and stderr to close set theCommand to theCommand & " > /dev/null 2>&1 &" do shell script theCommand end tell end open -- OSX doesn't like the mojo applescript uses so we add a CFbundleIdentifier manually it should look like this when done: hints - http://forums.macosxhints.com/archive/index.php/t-32748.html CFBundleAllowMixedLocalizations CFBundleDevelopmentRegion English CFBundleDocumentTypes CFBundleTypeExtensions mp3 MP3 .MP3 .mp3 CFBundleTypeOSTypes **** fold CFBundleExecutable droplet CFBundleIconFile droplet CFBundleIdentifier org.binary.xmms-wrapper CFBundleInfoDictionaryVersion 6.0 CFBundleName xmms-wrapper CFBundlePackageType APPL CFBundleSignature dplt LSRequiresCarbon NSAppleScriptEnabled WindowState name ScriptWindowState positionOfDivider 274 savedFrame 28 514 439 460 0 0 1280 1002 selectedTabView result then run ls register: Kirara:~ binary$ /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -f /Applications/xmms-wrapper it should allow association after that. zipping/deleteing/unzipping the wrapper may be needed. yay xmms in OSX