Background:
I'm writing a webOS app to wirelessly sync playlists to a device using MCWS. To uniquely identify files on the device compared to those appearing in one or more playlists I'm downloading them and naming them [key]-[date modified].[extension] e.g. 17404-1299850178.jpg. This then gets used when processing playlists and figuring out what needs downloading.
Problem(s):
I'm looking at a way of sideloading files (over USB to save potentially syncing 10GB+ on an initial wirelesss sync) onto the device using a copy operation in MC. I need to be able to rename files in the copy operation to match the naming convention above but I'm now stuck as I cannot get the filename rule in the Rename, Move & Copy Files dialog to generate the same naming convention.
#1 - I can't find a way to get a files "Key" value as returned from MCWS using Playlist/Files.
#2 - Similarly, I can't find a way to get a files "Date Modified" value as returned from MCWS using Playlist/Files.
My feeble attempts:
#1 has me stuck. Perhaps the Key field isn't exposed within MC itself? I've been through the list of fields and tried using the Fields function on all the permutations I could think of for the internal value e.g. "Key", "key", "_key", "ID" and so on.
#2 I've been trying out using the Field(Date Modified,0) function which does return a numerical value but it's not the same as the corresponding MCWS value e.g. MCWS returns "1302599881" while the Field function returns "40268.65937449999956344". I can't figure out how to turn one in to the other. The results are the same for each version in Setup below for both files stored in a local library and those accessed over Media Network. All files are stored on NTFS volumes... if that makes any odds.
Setup:
MC 15.0.174, 16.0.60 and 16.0.64.
So, in a nutshell: is there a way to get the Key and Date Modified values as returned by MCWS within MC itself?