This video shows how to select points from an X-ray fluorescence map and set up XAS measurements at those selected points. XAS scans use a classic XAFS energy grid though the data are collected continuously. This also shows how to build "macros" for sequences of data collection such as running XAS scans or maps at several positions defined from the Sample Stage or from previous XRF maps. Content: Introduction and review of XRF map (0:00) Moving to saved positions from map, verifying results (0:49) Defining XAS (XANES and EXAFS) scans (2:40) Commands for moving the energy (4:49) Running an XAS scan (6:32) Selecting data columns to plot (8:07) Setting up a macro to run scans at multiple saved positions (9:43) Adding other commands ("close_shutter()", "move_to_fe()", etc) (12:40) Running a macro or sequence of commands (13:44) Viewing and editing the queue of commands (14:45)