Can anybody tell me how to execute a command (e.g., beep) implemented in /System/Library/ScriptingAdditions/StandardAdditions.osax from a Ruby script using the appscript library? What I thought might work was
method launch_application in connect.rb at line 76
method local_app in connect.rb at line 76
method by_path in aem.rb at line 116
method send in appscript.rb at line 47
method connect in appscript.rb at line 47
method reference_by_name in appscript.rb at line 82
method method_missing in appscript.rb at line 522
at top level in untitled document at line 8
Can anybody tell me how to execute a command (e.g., beep) implemented
in /System/Library/ScriptingAdditions/StandardAdditions.osax from a
Ruby script using the appscript library?
Yeah, I could do that. But it would kind of spoil the fun. As I see it, the whole idea of the appscript library is make the sort of thing you suggest unnecessary. The appscript library works pretty good for replacing the AppleScript I tend to use. I much prefer writing
</code>
tell app "Finder"
set onDesk to count desktop's files
set drives to (disks whose local volume is true)
set drives to drives's length
{onDesk, drives}
end tell
</code>
I just wish I knew how to access the the standard scripting additions.
Regards, Morton
···
On Aug 17, 2007, at 10:23 PM, Vasil Vangelovski wrote:
a workaround for this:
1. Execute applescript in shell command
2. Execute shell command in ruby
Can anybody tell me how to execute a command (e.g., beep) implemented
in /System/Library/ScriptingAdditions/StandardAdditions.osax from a
Ruby script using the appscript library?