You need to use iTunes. When you connect it, it does not appear in the iTunes sidebar, under DEVICES? If the sidebar (along left side of window) is hidden, from the iTunes menu bar, under View, select Show Sidebar.
Are you using the original USB cable that came with the shuffle? The cable for the 3rd and 4th gen shufffle does not work with the 2nd gen shuffle; the connector is different.
When you connect it, does the light on the shuffle come on, either flashing or solid color?
No it does not appear under devices. And yes I am using the same cable which came with the ipod shuffle 2nd gen. When I connect it the light is solid . its not flashing. I tried syncing with a much older version of itunes using my moms windows pc. it worked. why is the latest itunes not recognising it ?
If the light initially flashes and then becomes solid, iTunes may be seeing it.
No it does not appear under devices.
When the shuffle is the only device connected, do you see the heading DEVICES in the iTunes sidebar with nothing listed below? (The heading DEVICES should not be there, if iTunes sees no devices connected.) If the heading is there with nothing listed below, it may be toggled to hide the list of devices. Move your mouse pointer over DEVICES and Show (or Hide) appears to the right. If it says Show, the list is currently hidden, so click Show.
If that doesn't help, I would go through some basic trouble-shooting steps, if you have not already. Shut down (power off) the Mac. Disconnect all USB devices (except for standard keyboard and mouse if normally used). Do this to Reset the shuffle
Start up the Mac, run iTunes, and try connecting the shuffle to a direct USB port on the Mac.
If DEVICES does not appear as a heading in the sidebar, iTunes is not seeing any devices connected.
I tried resetting too. No luck
What about the other things I mentioned, such as shutting down (powering off) the Mac and disconnecting other USB devices? There could be a USB conflict that is causing the shuffle to not connect properly.
Also, try the USB port you are using on the Mac with something else, preferably something similar like a USB flash drive, to make sure it is working properly. Since you tried the shuffle and its cable with another computer, we'll assume those are working fine.
You can also connect the shuffle with iTunes NOT running. Instead, run Disk Utility. Does the shuffle's disk appear in the Disk Utility sidebar?