                          (.getModifiers f) java.lang.reflect.Modifier/STATIC))]
       [(keyword (.getName f)) (.get f obj)])))
 
-(defmacro apply-member [& args]
-  `(~@(drop-last args) ~@(eval (last args))))
+(defmacro apply* [& args]
+  `(~@(butlast args) ~@(eval (last args))))
 
 (defn rekey
   ([m kold knew]

    )))

(defn run-acquisition-from-settings [^SequenceSettings settings]
  (def orig-settings settings)
  (run-acquisition (convert-settings settings)))


    (for [[axis pos] (get-in event [:position :axes])]
      [axis #(apply set-stage-position axis pos)])
    (for [prop (get-in event [:channel :properties])]
      [(prop 0) #(apply* .setProperty mmc prop)]))))

(defn send-device-action [dev action]
  (send-off (device-agents dev) (fn [_] (action))))
