_1 [Ruby] Macã§iTunesã®ã©ã¤ãã©ãªãæä½ (scripting bridgeç·¨) Snow Leopardã«ãããrubyOSAãã¤ã³ã¹ãã¼ã«åºæ¥ãªããªã£ãã®ã§ã Scripting Bridge ã使ã£ã¦ã¿ãã Re: iTunes Scripting Bridge examples?ãè¦ãã¾ã§ãgetãåãããªãã£ãã require 'osx/cocoa' include OSX OSX.require_framework 'ScriptingBridge' exp = ARGV.shift iTunes = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes") iTunes.selection.get.each do |t| p t.name eval exp end ã«å¯¾ãã¦ã %
{{#tags}}- {{label}}
{{/tags}}