######### Copy Highlighted Address to Clipboard #########
import os
doc = Document.getCurrentDocument()
adr = doc.getCurrentAddress()
os.system("echo '%X' | tr -d '\n' | pbcopy" % adr)

0c84d2fd9f35da3ceaaa371141788c1eaa6ee4f3
<mask token>

<mask token>
os.system("""echo '%X' | tr -d '
' | pbcopy""" % adr)

<mask token>
doc = Document.getCurrentDocument()
adr = doc.getCurrentAddress()
os.system("""echo '%X' | tr -d '
' | pbcopy""" % adr)

import os
doc = Document.getCurrentDocument()
adr = doc.getCurrentAddress()
os.system("""echo '%X' | tr -d '
' | pbcopy""" % adr)

######### Copy Highlighted Address to Clipboard #########
import os
doc = Document.getCurrentDocument()
adr = doc.getCurrentAddress()
os.system("echo '%X' | tr -d '\n' | pbcopy" % adr)
