Get iOS Device Name?
In another thread I posited the idea of a workflow to create an Evernote note with a table of workflows in it.
It occurs to me - based on my own experience - that I don't have all the workflows on all the iOS devices Editorial runs on.
So I'd like the Evernote note to contain some machine identifier. I don't know if that would be an IMEI number, what iTunes calls the device, or some other identifier. For my purposes it doesn't matter much.
So, is there a way of getting the name of the device? Probably this would be Python and that's more than OK.
omz last edited by
Here's a snippet of Python that prints the network name of the device, which is usually pretty similar to what you see in iTunes (e.g. something like
import platform print platform.node()
Excellent! And your English is probably good enough, @omz, to parse "that probably is enough disambiguation". :-)
By the way I'm going to work platform.node() into a simple example of how to insert "Written on Martin Packer's iPad" into the document text, perhaps with some markdown sugaring.
This example will go into my upcoming blog post on why Editorial plays a key role in my writing toolset.
the_buch last edited by
This Evernote note of workflows sounds intriguing, sir.