Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
AppleScript that passes variables to a script, executes it to generate a podcast-ready mp3
set title to text returned of (display dialog "Episode Title?" default answer "Episodentitel") as string
set summary to text returned of (display dialog "Description?" default answer "Interessante Beschreibung") as string
tell application "Finder"
set theFile to (get selection) as alias
set theFile to (POSIX path of theFile) as string
end tell
set theLameCommand to ("/bin/bash /path/to/ -t \"" & title & "\" -s \"" & summary & "\" \"" & theFile & "\"")
tell application "Terminal"
delay 1
tell application "System Events"
keystroke "n" using {command down}
keystroke theLameCommand
keystroke (key code 36) - Return Key
end tell
end tell

This comment has been minimized.

Copy link
Owner Author

@tschoof tschoof commented Mar 21, 2015

The I'm referencing is a fork of Marco Arment's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.