lib/webconsole/lib/module.rb in webconsole-0.1.12 vs lib/webconsole/lib/module.rb in webconsole-0.1.13
- old
+ new
@@ -46,9 +46,16 @@
result = self.run_applescript(WINDOW_ID_FOR_PLUGIN_SCRIPT, [name])
result.chomp!
return result
end
+ CREATE_WINDOW_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "create_window.scpt")
+ def self.create_window
+ result = self.run_applescript(CREATE_WINDOW_SCRIPT)
+ result.chomp!
+ return result
+ end
+
# Shared Resources
RESOURCE_PATH_FOR_PLUGIN_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, "resource_path_for_plugin.scpt")
def self.resource_path_for_plugin(name)
result = self.run_applescript(RESOURCE_PATH_FOR_PLUGIN_SCRIPT, [name])