If your iMac supports Bluetooth, you can connect the SoundLink Micro to the computer via Bluetooth and play your music from there! In case you need a hand setting this up, we do have a guide HERE that will walk you through this process!
Let me know if you have any further questions!
Feel more. Do more. Be more. New to the community? Check out the Getting Started board. Help others find answers to your questions by clicking on 'Accept as Solution' at the bottom of a reply. If you see a post you like, make sure to give it a thumbs up!