R
Richard Fairbanks
Greetings, folks!
This one will be so obvious to you all, but it has had me baffled for
hours. (Script appended below.)
Please enlighten me! Thank you!
Richard Fairbanks
----
# the following is called with:
# do shell script "arch -i386 ruby '/Users/me/Desktop/Tests.rb'"
# Thank you, has!!
require "appscript"; include Appscript
require 'osax'; include OSAX
module Y; def self.z; 0; end; end
osax.say(Y.z) #=> "zero"
if p(Y.z): 0 # I assume this is the culprit!
osax.say(Y.z) #=> silence
end
osax.set_the_clipboard_to(Y.z) #=> {integer:0}
This one will be so obvious to you all, but it has had me baffled for
hours. (Script appended below.)
Please enlighten me! Thank you!
Richard Fairbanks
----
# the following is called with:
# do shell script "arch -i386 ruby '/Users/me/Desktop/Tests.rb'"
# Thank you, has!!
require "appscript"; include Appscript
require 'osax'; include OSAX
module Y; def self.z; 0; end; end
osax.say(Y.z) #=> "zero"
if p(Y.z): 0 # I assume this is the culprit!
osax.say(Y.z) #=> silence
end
osax.set_the_clipboard_to(Y.z) #=> {integer:0}