Class: TimeBuffer::OsaScript
- Inherits:
-
Object
- Object
- TimeBuffer::OsaScript
- Defined in:
- lib/time_buffer/osa_script.rb
Class Method Summary collapse
Class Method Details
.app_data ⇒ Object
6 7 8 9 10 11 |
# File 'lib/time_buffer/osa_script.rb', line 6 def app_data current_app_bundle_id = `osascript -e 'id of application (path to frontmost application as text)'`.strip app = OsaScriptAppBuilder.build(current_app_bundle_id) puts "app name: #{app.name} | bundle id: #{app.bundle_id} | class: #{app.class}" app end |