Created
November 24, 2008 08:34
-
-
Save mkhl/28423 to your computer and use it in GitHub Desktop.
Appscript ⁄ ScriptingBridge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# A tiny appscript example in Python. | |
import appscript | |
appscript.app("iTunes").current_track.artist.get() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# A tiny ScriptingBridge prelude in Python. | |
from Foundation import * | |
from ScriptingBridge import * | |
app = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wkU | |
# A tiny appscript example in Ruby. | |
require 'rubygems' | |
require 'appscript' | |
Appscript.app("iTunes").current_track.artist.get |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wkU | |
# A tiny ScriptingBridge prelude in Ruby. | |
require 'osx/cocoa' | |
include OSX | |
require_framework 'ScriptingBridge' | |
app = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment