sprout-flashplayer-bundle 9.115.6 → 9.115.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -171,7 +171,8 @@ module Sprout
|
|
171
171
|
end
|
172
172
|
|
173
173
|
def run(tool, version, swf)
|
174
|
-
|
174
|
+
path_to_exe = Sprout.get_executable(tool, nil, version)
|
175
|
+
target = User.clean_path(path_to_exe)
|
175
176
|
@player_pid = nil
|
176
177
|
|
177
178
|
thread_out = $stdout
|
@@ -184,22 +185,19 @@ module Sprout
|
|
184
185
|
else
|
185
186
|
require 'open4'
|
186
187
|
@player_pid, stdin, stdout, stderr = Open4.popen4(command)
|
187
|
-
focus_player_on_mac(thread_out)
|
188
|
+
focus_player_on_mac(thread_out, path_to_exe)
|
188
189
|
stdout.read
|
189
190
|
end
|
190
191
|
}
|
191
192
|
end
|
192
193
|
|
193
|
-
def focus_player_on_mac(out)
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
if(process.name == "Flash Player")
|
199
|
-
#out.puts "Focusing Flash Player now"
|
200
|
-
process.frontmost = true
|
201
|
-
end
|
194
|
+
def focus_player_on_mac(out, exe)
|
195
|
+
begin
|
196
|
+
if(User.new.is_a?(OSXUser))
|
197
|
+
require 'appscript'
|
198
|
+
Appscript.app(exe).activate
|
202
199
|
end
|
200
|
+
rescue
|
203
201
|
end
|
204
202
|
end
|
205
203
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout-flashplayer-bundle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.115.
|
4
|
+
version: 9.115.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pattern Park
|
@@ -9,7 +9,7 @@ autorequire: sprout/flashplayer
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-02-
|
12
|
+
date: 2008-02-12 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -31,7 +31,6 @@ extra_rdoc_files: []
|
|
31
31
|
|
32
32
|
files:
|
33
33
|
- lib
|
34
|
-
- pkg
|
35
34
|
- rakefile.rb
|
36
35
|
- samples
|
37
36
|
- test
|